#
Variant stock classes
#
Variant stock classes
This plugin does not add styling. It will only loop over all product variants and add relevant 'stock' classes to each variant. This is done in a very performant way. The class allows you to style the out of stock options as you wish using css.
#
Variant stock classes
The variant stock classes are:
- stock- - Which will be the stock of the variant
- available-stock- - Which will be the available stock of the variant
- is-available-{yes|no} - Which will be 'yes' if the variant is available and 'no' if it is not, according to the Shopware logic
- is-closeout-{yes|no} - Which will be 'yes' if the variant is a closeout and 'no' if it is not