Stock Remaining
Shows availability messaging for the selected variant. Two modes: Text (styled messages per state) and Slots (connect your own component instances). Four states: Select Options, Sold Out, Low Stock, and Available.
What it does
AP_StockRemaining shows availability messaging for the selected variant on a PDP. It has two modes:
- Text mode – built-in styled messages per state
- Slots mode – connect your own designed components per state
Four stock states are supported:
- Select Options – when no variant is selected
- Sold Out – when the selected variant is unavailable
- Low Stock – when quantity is at or below a configurable threshold
- Available – when in stock above the low-stock threshold
Use this component to clearly communicate stock status and urgency to shoppers directly on the product page.
How to set it up
- Place on your PDP
- Add AP_StockRemaining to your product detail page layout.
- Set Product ID to match the Shopify product you want to track.
- Choose a mode
- Mode: Text
- Configure message copy for each state: Available, Low Stock, Sold Out, and Select Options.
- Optionally include the live quantity using the {{count}} placeholder.
- Style each state's text box independently (font, color, background, border, padding, border radius), with a shared Base Box for common styling.