How to access it

  • Use {{ shop }}  in any task, at any time

What it contains

  • Every property from the Shopify API
  • An index of collection objects: {{ shop.collections[1234567890] }}, {% for collection in shop.collections %}, or use shop.custom_collections or shop.smart_collections to only return custom/smart collections
  • An index of product objects: {{ shop.products[1234567890] }}, {% for product in shop.products.published %}
  •  An index of order objects: {{ shop.orders[1234567890] }}, {% for order in shop.orders.paid %}
  •  An index of draft order objects: {{ shop.draft_orders[1234567890] }}, {% for draft_order in shop.draft_orders.invoice_sent %}
  • An index of customer objects: {{ shop.customers[1234567890] }}, {{ shop.customers["jdoe@example.com"] }}, {{ for customer in shop.customers }} 
  • An index of price rule objects: {{ shop.price_rules[1234567890] }}, {{ for price_rule in shop.price_rules }} 
  • An index of discount code objects: {{ shop.discount_codes[1234567890] }}, {{ shop.discount_codes["SUMMERTIME"] }}, {{ for discount_code in shop.discount_codes }} 
  • The related metafields object: {{ shop.metafields }} 
Did this answer your question?