Adding Quantity Available to Product Page
Overview
Qty Available (or qty) can be added to the product page in 3 ways:
- 1 - Using the Only X Left feature
- 2 - In the Product Block "Additional Attributes" settings
- 3 - With a Product Attribute block

Only X Left
Also called the "Low Stock Notice", Only X Left is turned on in Web Settings > Product Settings > Only X Left: set Show Only X left to Yes. Click Set Per Customer Group under it to show it to some customer groups only.

Only X left Threshold
This setting determines WHEN the low stock notice will appear on the product page. For example, if set to "10", the Only X Left will only show when the qty on the product is 10 or fewer.
The product page will automatically show Only X Left. To show it on Category Pages or product lists, open Theme, edit the Category template in the Visual Design Editor (VDE), click the category products block and choose Edit Category Product List. Tick Show Low Stock Notice and click Submit. Use Low Stock Notice Customer Groups to show it to some customer groups only (leave it blank for all groups). Product List blocks on other pages have the same two settings.

Show Message If Threshold Is Not Met
When Show Message If Threshold Is Not Met is set to Yes, a custom message can be displayed through Over Threshold Message when the available stock is greater than the threshold.
For example:
- Only X Left Threshold = 5
- Show Message If Threshold Is Not Met = Yes
- Over Threshold Message = "In Stock"
When there is 5 or less of a product in stock, it will display "Only 5 Left".
If there is more than 5 available, a quantity will not be shown. Just "In Stock" will be displayed on the storefront.
The message shows on product pages, and on category pages where the Category Products List block has Show Low Stock Notice turned on. To stop showing "In Stock" when stock is above the threshold, set Show Message If Threshold Is Not Met to No.

Maximum Inventory To Show
This will be the maximum quantity shown as available. For example, if you put 49 and there is a qty of 60 left in stock, it will say "49+". Set to 0 to always show the true count of inventory.
Apply Variation Qty to Threshold
When set to Yes, the "Only X Left" low stock notification will appear only when the combined qty of all child products is greater than the threshold. Child products then can't set their own Only X Left Threshold on the product.
Only Show X Left for Selected Variation
When set to Yes, the Only X Left stock quantity will display only for the variation selected.
Only X Left for Inventory Locations
An Inventory Location will display its stock quantity to customers in the drop-down menu on the product page. Each warehouse option shows its available quantity if Show Available Stock Qty is enabled in the Products > Inventory Location specific settings.
When Enable for Inventory Locations is set to Yes in the Only X Left settings, the stock quantity for the warehouses will be replaced with Only X Left or the above threshold message.
Attributes for Low Stock Table
Click Add Attribute to choose up to 2 product attributes to show as extra columns in the table of variation quantities on configurable products (see below).
How it works for Configurable Products
On configurable product pages, the Only X Left notification will be a link that, when clicked, will expand to show the available quantity for all variations.

Translating Low Stock Message
The message (Only X Left) can be translated in Web Settings > Translations
- Original:
Only %s left - Sample Translation:
Seuls %s restantsor%s Available - Original:
Only %s left in total. Click to see additional information. - Sample Translation:
Seuls %s restants. Cliquez pour voir des informations supplémentaires.

%s will display the number value of the quantityFor example: %s Available or Available Stock: %s. If there are 5 in stock, the translation will display at 5 Available or Available Stock: 5.
Product Essentials
Using the Product Essentials: Additional Attributes setting on the Product template, you can add the "Quantity" qty attribute to the Product Essentials block:
- Open Theme, edit the Product template in the Visual Design Editor (VDE), click the product details block and choose Edit Product Essentials.
- Under Additional Attributes, click Add Attribute, type
qtyand choose Use "Quantity" (qty). - Choose Show Label or Hide Label, enter a label such as
Quantity Available, and pick where it shows: Above Price, Below Price, Next to Availability Message, Above Product Options, Next to QTY Label, Below Add to Cart Button or Below Price (In Table). - Optionally pick customer groups (leave blank for all groups), then click Submit and save the template.

Product Attribute
You can also put the Quantity qty attribute into other locations on the Product Page template using a Product Attribute block from the +Add Menu > Products.


Enter "qty" into the Attribute field. Then you can specify the label, and if you want it to only display to specific customer groups. Leave blank for all customer groups.

Updated 22 minutes ago
