Skip to content

liquid_page_variant

Myroslava Stavnycha edited this page Sep 3, 2018 · 1 revision

Variant attributes

  • id
  • name
  • price (the original price of variant, how store owner specified it)
  • discount price (price with discount if discount exists. Otherwise: nil)
  • discount? (whether discount exists)
  • discount_period? (whether discount has a period of time specified)
  • discount_start (start date of discount)
  • discount_end (end date of discount)
  • current_price (price, which should actually take place for end-user. If any discount exists, it already contains a discount)
  • compare_at (market price)
  • available?
  • sku
  • stock
  • weight
  • width
  • height
  • depth
  • digital
  • url
  • options (collection of values of variant attributes)
  • image - primary variant image
  • images - collection of variant images
  • attributes - collection of variant attributes
  • json
  • cached_json