Price rule object
How to access it
Look up specific price rules by ID, using
{{ shop.price_rules[12345] }}
Loop through all price rules:
{% for price_rule in shop.price_rules %}
What it contains
An index of related discount code objects:
{{ price_rule.discount_codes }}
Related articles
Last updated