Hide Variants that are Out of Stock

Hi guys,



Does anyone have a solution to hide the variants of an option that are not in stock?



For example:



Product: Dress

Option: Size

Variants:

Small - 4 in stock

Medium - 0 in stock (hide this option or grey it out)

Large - 6 - in stock



The reason this feature would be good is if someone sets up a global option with every single size in their store.



XXS

XS

S

M

L

XL

XXL



They can then assign this global option to every single product in the store - but if there is a product that doesn’t actually have an XXL at all, they can set the stock level of that to 0 to have it not show up.



I am running CS Cart 2.4.5



NOTE: Currently CS Cart does not include this functionality, I contacted there support team and they said that it would have to be extra development.