# 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:

  1. stock- - Which will be the stock of the variant
  2. available-stock- - Which will be the available stock of the variant
  3. is-available-{yes|no} - Which will be 'yes' if the variant is available and 'no' if it is not, according to the Shopware logic
  4. is-closeout-{yes|no} - Which will be 'yes' if the variant is a closeout and 'no' if it is not