> For the complete documentation index, see [llms.txt](https://ta-product-labels-and-badges.tech-arms.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ta-product-labels-and-badges.tech-arms.io/label/create-a-text-label/how-basic-variables-are-rendered-on-different-product-views.md).

# How Basic Variables Are Rendered on Different Product Views

This article explains in detail how each basic variable is displayed depending on the context: product form, product card, product, and variant.

<table data-full-width="true"><thead><tr><th width="151">Variable</th><th>Product detail</th><th></th><th>Product card</th><th></th></tr></thead><tbody><tr><td></td><td><strong>Without variants</strong></td><td><strong>With Variant</strong></td><td><strong>Without variants</strong></td><td><strong>With Variant</strong></td></tr><tr><td>{inventory}</td><td>Displays the inventory status of the product</td><td>Displays the inventory status of the variant</td><td>Displays the inventory status of the product.</td><td>Displays the inventory status of the product (summing all variants).</td></tr><tr><td>{inventory_quantity}</td><td>Displays the total inventory quantity of the product.</td><td>Displays the total inventory quantity of the variant</td><td>Displays the total inventory quantity of the product.</td><td>Displays the total inventory quantity of the product (summing all variants)</td></tr><tr><td>{sale}</td><td>Displays the discount percentage of the product.</td><td>Displays the discount percentage of the variant.</td><td>Displays the discount percentage of the product.</td><td>Displays the the highest discount percentage among all variants</td></tr><tr><td>{sale_amount}</td><td>Displays the amount discounted from the product price</td><td>Displays the amount discounted from the variant price.</td><td>Displays the amount discounted from the product price</td><td>Displays the highest discount amount among all variants.</td></tr><tr><td>{min_price}</td><td>Displays the lowest price among all variants.</td><td>Displays the lowest price among all variants.</td><td>Displays the lowest price among all variants.</td><td>Displays the lowest price among all variants.</td></tr><tr><td>{max_price}</td><td>Displays the highest price among all variants.</td><td>Displays the highest price among all variants.</td><td>Displays the highest price among all variants.</td><td>Displays the highest price among all variants.</td></tr><tr><td>{MM/DD/YYYY}</td><td>Displays the date</td><td>Displays the date</td><td>Displays the date</td><td>Displays the date</td></tr></tbody></table>

#### **Explanation**:

* **Product Detail** refers to the main product information block on the product page.
* **Product Card** refers to the product information card displayed in a product grid. It usually appears on the homepage, collection page, search results page, “You May Also Like” section, etc.
