
Managing how your products appear to customers based on inventory levels is crucial for setting expectations and driving conversions. Our system offers four distinct Stock Modes to handle everything from everyday essentials to high-demand pre-orders.
This is the default setting for most products. It provides a clear, honest look at what is currently in the warehouse.
Stock > 0: Product shows as Available with the current quantity.
Stock = 0: Product shows as Sold Out. The "Add to Cart" button is automatically hidden to prevent overselling.
Best for: General inventory where you do not plan to take orders until new stock physically arrives.
This is the for products that you do not expect to re-stock. It provides a clear, honest look at what is currently in the warehouse.
Stock > 0: Product shows as Available with the current quantity.
Stock = 0: When last item is sold, product is disables, so it no longer shows on your website.
Best for: Items that are limited, clearance, or last of kind, and you do not want to show then on your site after the last one sells.
This mode is designed for flexibility, allowing you to capture sales even when physical stock is low or arriving soon.
Stock > 0: Standard "Add to Cart" functionality.
Stock < 1: The "Add to Cart" button remains visible, but the status updates to show a Lead Time/ETA. Items in the cart will clearly display this ETA so customers know when to expect delivery.
Best for: High-demand items, incoming shipments, or products with a short, reliable lead time.
Unmanaged mode removes the complexity of stock tracking for the end user.
Functionality: The website will not show a stock quantity. The "Add to Cart" button is always visible, regardless of internal counts.
Best for: Small, low-cost items, "evergreen" stock, or products that are easily and quickly replenished where a "Sold Out" state is unlikely.
Think about what you want the customer to see on the page, then pick the corresponding variable to use in a If/Else block condition:
Use {$prodstock_forsale}. This is your "Master Switch." It returns true if the item can be purchased right now, regardless of whether it's currently in the warehouse or available via back-order. If this is false, you should probably hide your buy buttons.
To show a "Ready to Ship" badge: Use {$prodstock_instock}. This tells you if there is physical stock sitting on the shelf (or if you aren't tracking stock levels at all).
To show a "Sold Out" warning: Use {$prodstock_notinstock}. This is the exact opposite of the above; it triggers when the shelf is empty and the item isn't "Unmanaged."
To check if back-ordering is even allowed: Use {$prodstock_canbackorder}. This lets you know the product is configured to accept orders even when empty.
To show a "Shipping Delay" notice: Use {$prodstock_mustbackorder}. This is the most helpful tag for customers. It only triggers if the item is out of stock but still for sale. Use this to display a message like "Note: This item is on back-order and may take longer to ship." You can also show the lead time with {$prodsimplestocklead} to show an ETA/lead time.
Use {$prodstock_qty}. This provides the specific number of items left (e.g., "15"). Keep in mind that if the product is "Unmanaged" or "Out of Stock," this will simply return 0.
Scenario: A customer is looking at a popular toaster.If the toaster is on the shelf: {$prodstock_instock} is true. If the toaster is sold out, but you allow back-orders: {$prodstock_forsale} is true, but {$prodstock_mustbackorder} is also true.If the toaster is sold out and discontinued: {$prodstock_forsale} is false, and {$prodstock_notinstock} is true.