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 %}
- Every property from the DiscountCode resource in the Shopify REST Admin API
- The related price rule object:
{{ price_rule.discount_codes }}