Variant

Variant represents one version of the product.

Properties

  • Name
    id
    Type
    number
    Description

    Unique identification of a variant.

  • Name
    title
    Type
    string
    Description

    Title of the variant.

  • Name
    price
    Type
    number
    Description

    Price of the variant. Use money filter to display price:

    {{ variant.price | money }}
    
  • Name
    option1, option2, option3
    Type
    strings
    Description

    The custom properties that were used to define product variants.

  • Name
    image_id
    Type
    number (optional)
    Description

    Unique id that is used as a primary image for given variant.

  • Name
    available_count
    Type
    number
    Description

    Number of items available in stock for given variant. Value might be null if variants are not tracked.

  • Name
    sku
    Type
    string (optional)
    Description

    A unique identifier for the product variant in the shop.