Schema Liquid Variables
Reference for all Liquid objects and properties available inside Adsgun discount schema templates. These variables are resolved at render time and give you access to product, variant, promotion, cart, and line item data.
product
The product object represents a Shopify product. Use it in schema templates to access product-level data such as pricing, images, and metadata.
The unique numeric ID of the product.
The product title (e.g. "Blush Whisper Dress").
The URL-friendly slug used in product URLs.
The brand or vendor name.
Product description as raw HTML.
The product type label.
Lowest variant price in the currency's subunit (cents).
price_min. All prices are in subunits — for example, 14900 represents $149.00 USD.
money filter to output a formatted price: {{ product.price | money }}
The lowest price of any variant in subunits.
The highest price of any variant in subunits.
The original compare-at price in subunits.
Lowest compare-at price across variants.
Highest compare-at price across variants.
Returns true if any variant is available for purchase.
URL of the product's featured image.
All product image URLs.
The option names, e.g. ["Color", "Size"].
All variants of the product.
Tags assigned to the product.
variant
The variant object represents a single product variant. Each product has one or more variants defined by option combinations.
The unique numeric ID of the variant.
Full variant title, e.g. "Blush Pink / 4-5 Years (110cm)".
Value of the first option.
Value of the second option.
Value of the third option, or null.
The variant SKU.
Variant price in subunits.
money filter: {{ variant.price | money }}
Compare-at price in subunits, or null.
Whether this variant is available for purchase.
Current inventory count.
Whether this variant requires shipping.
promotion
The promotion object contains data about the currently active Adsgun promotion, including discount codes and status.
The promotion title and code label, e.g. "ADSGUNTESTINGSDISC".
Either "active" or "inactive".
List of discount codes attached to this promotion.
Full discount node data keyed by code string.
DiscountCodeNode data including status, usage count, customer selection, and discount value.
cart
The cart object represents the current Shopify cart state, including totals, discounts, and Adsgun-specific attributes.
Final cart total after discounts, in subunits.
money filter: {{ cart.total_price | money }}
Cart total before any discounts, in subunits.
Total discount amount applied, in subunits.
Total number of items in the cart.
ISO currency code, e.g. "USD".
All line items in the cart.
The Adsgun discount code applied to this cart.
The Adsgun promotion link identifier.
line_item
A line_item represents a single item in the cart, including its product info, pricing breakdown, and discount details.
Unique line item ID.
Full item title including variant name.
Product name only.
Variant name only.
Unit price in subunits.
Original unit price before discount.
Price per unit after discount.
Total line price (price × quantity).
Total discount applied to this line.
Quantity of this item in the cart.
Variant SKU.
Product vendor name.
Product URL handle.
Full product URL with variant query param.
Featured image URL for this line item.
Whether this item requires shipping.