Developer forum

Forum » Ecommerce - Standard features » Filtering variants

Filtering variants

Martin Nielsen
Reply

Hi guys,

We have a customer that would like to implement filters for the variants.
What they'd like is to have filters where they can show products that have a specific variant (size) in stock.

Fx.

They have 5 T-shirts in the sizes XS, S, M, L, XL, and one of the t-shirts is not in stock in XL.
What they'd like here is to only show 4 T-shirts when i filter on XL.

 

I tried on a DW8.4 to test this but it doesn't seem like Stock is part of the filter logic yet.

My settings filter setting:

My result when i have a product with size variants. L has a stock of "-5" in Ecom.

 

I'd expect L(0) since it's not in stock, but it just ignores stock.

 

Is this the current behaviour, or am i missing a setting somewhere?

 

// Martin

 

 

 

 

 

 


Replies

 
Thomas Schroll
Reply

Hi Martin

You need to either filter on stock presence or set the ecom to only show products in stock (either exclude them in your template or check "Only show variants that are in stock" in Management Center - > Advanced Configuration -> General.

Regards Thomas

 

You must be logged in to post in the forum