

Out of stock: your own store-wide message, here with a link, in the badge style with the default icon and colour.
WooCommerce tells shoppers “Out of stock” and leaves it there. Stockline lets you say something useful instead: “Only 2 left, order soon”, “Made to order, ships in 2–3 weeks”, “Sold out, ask us about restocking”.
Your own message for every stock state
Leave any message empty to keep WooCommerce’s text, with your icon and colour. Other plugins can add states of their own, such as a “Pre-order” state, and they get a message, icon and colour on the same screen.
Looks right in your theme
Works everywhere WooCommerce shows stock
Classic themes, block themes (the Add to Cart form block) and variable products, where the message updates as shoppers pick options. Stockline hooks the final stock HTML that WooCommerce itself builds, so there are no template overrides to go stale after WooCommerce updates.
Placeholders and light HTML
Use {qty} for the units left and {product} for the product name. Bold text and links are allowed, e.g. Sold out, <a href="/contact">ask us about restocking</a>.
For developers
stockline_stock_html filters the final markup ($html, $product, $state).stockline_states, stockline_state and stockline_placeholders let other plugins add a state with its own message, icon and colour, and placeholders for it. Preorderline uses them for a “Pre-order” state with {date}.stockline_product_settings lets a plugin give a product or variation its own message, icon or colour, and stockline_page_colors adds the colours it uses to the page’s stylesheet.stockline_enqueue_styles loads the small stylesheet beyond product pages, e.g. for a Single Product block on a landing page.stockline_loaded fires once Stockline has loaded, for add-ons.Stockline Pro
Stockline’s messages are store-wide. If some products need their own (“Back mid-November”, or “Size S is back in December” for one variation), the separate Stockline Pro add-on adds a message, icon and colour per product and per variation, a preview dialog on the product screen, and columns for them in the Gridline bulk editor. Everything described above works without it. See extendiment.com/plugins/stockline. Stockline Pro is sold under our Terms and Privacy Policy.