Mechanic
Ask or search…
K

Discount code object

How to access it
  • Look up specific discount codes by price rule ID and discount code ID, using {{ shop.price_rules[12345].discount_codes[67890] }}
  • Look up a single discount code by its code, using {{ shop.discount_codes["DISCOUNTABC123"] }}
  • Loop through all discount codes for a single: {% for discount_code in price_rule.discount_codes %}

What it contains