Skip to main content

Stock Status

Stock Status

In stock, low, or out. The state travels in an attribute, so styling never rests on colour alone.

Props

PropTypeDefaultWhat it does
Font sizetext0.9375rem
Stock labeltext{this.fecommerce.stock_label}Comes from the product being shown. Inside a loop it follows each product by itself when the loop’s item is called «this»; with any other name, bind it to that name.
Stock statetext{this.fecommerce.stock_state}Comes from the product being shown. Inside a loop it follows each product by itself when the loop’s item is called «this»; with any other name, bind it to that name.

Variables of its own

VariableDefaultWhat it controls
--fe-woo-stock-sizevar(--fe-woo-text-l, 0.94rem)How big the line is.
--fe-woo-stock-low-colorvar(--fe-woo-warning, #b45309)«Only a few left»: the text and its «!».
--fe-woo-stock-out-colorvar(--fe-woo-danger, #b91c1c)«Out of stock»: the text and its «✕».
--fe-woo-stock-backorder-colorvar(--fe-woo-muted, #6b7280)«Available on backorder»: the text and its «⟳».