Developer forum

Forum » Rapido » Only show variants option in advanced configuration

Only show variants option in advanced configuration

Søren Bremholm Jakobsen
Reply

Hi,

I'm working on a rapido solution and I'm trying to use the "Only Show Variants" option under setting -> ecommerce -> Advanced configuration -> General. I have selected the "That are in stock"  option but variants with stock level 0 will get displayed. And combinations that aren't activated/saved will get displayed grayed out.

in below example size 46 has stock level 0 and I have expected that it had been greyed out - size 37 is grayed out but the product is not activated/saved in the variant combination list. How is this supposed to work?

 


Replies

 
Nicolai Pedersen
Reply

Hi Søren

These settings does not work when you run on indexes - as it is the index that handles these criterias in order to match the right counters on facets.

So you need to find the query instead (Settings, Repositories) and change the criterias to handle stock > 0.

In your dump above the size 37 is still defined - the grey icon only indicates that you have not overwritten any properties for that variant compared to the master (it does not have its own record in EcomProducts table). You can only get rid of that if you delete that variant combination or change the template to not render options out of stock.

By checking the checkbox you mention AND editing the variant 37 and overwriting the stock to 0 (otherwise it inherits the master products stock level) might also remove it...

Hope this is understandable!

BR Nicolai

 

You must be logged in to post in the forum