Nastavení pluginu

woocommerce_stock_manager_qty_class

$class = apply_filters( ‘woocommerce_stock_manager_qty_class’, $class, $stock );

  • if $stock < 1 class = outofstock
  • if $stock < 5 class = lowstock
  • if $stock >= 5 class = instock

Filter enable manipulate with css class for qty input color.

Další pluginy pro WooCommerce od Toret