Product Variant
Describes a product variant.
product_id
Returns the product id.
measure_unit
Returns the measure unit name
weight_unit
Returns the weight unit name
unit
Returns the product quantity unit
image
Returns the image of the product variant.
previous_prices
Returns information about the previous prices if such records are found.
previous_lower_price
Returns information about the previous lower price if such is recorded in the last 30 days.
is_new
Returns true if products in considered as new.
option1
Returns the first option.
{
"option": "color",
"value": "red"
}option2
Returns the second option.
{
"option": "size",
"value": "large"
}option3
Returns the third option.
{
"option": "material",
"value": "cotton"
}options
Returns all options.
[
{
"option": "color",
"value": "red"
},
{
"option": "size",
"value": "large"
},
{
"option": "material",
"value": "cotton"
}
]id
Returns the id.
title
Returns the title.
has_customizations_with_price
Returns true if some of the customizations are increasing product price.
customizations
Returns product customizations.
in_preview
Returns true if product is in preview.
is_available
Returns true if product is available for purchase.
is_directly_buyable
Returns true if product can be bought without selecting any attributes.
gtin
Returns the GTIN number.
model_number
Returns the model number.
rate
Returns the tax rate.
bundle_contents
Returns the bundle contents. Each rows has the values of:
- product
- options:
- image
- name
- value
- quantity: quantity included
discount_information
Returns the discount if any.
promotion
Returns the promotion if any.
bulk_rates
Returns the bulk rates if any.
original_net_price
Returns the original net price without any discounts
original_price
Returns the original price without any discounts
net_price
Returns the net price
price
Returns the price
tax
Returns the tax amount
is_out_of_stock
Returns true if product is out of stock
stock_alarm
Returns true if product is low on stock.
discontinued_product
Returns true if product won’t be restocked when it runs out of stock.
inventory_management
Returns the inventory management.
inventory_policy
Returns the inventory policy, continue or deny.
attribute_based_inventory?
Returns true if inventory is based on attributes rather than on product itself.
stock
Returns the stock quantity
sku
Returns the SKU
deliverytime
Returns the delivery object
{
"min": {
"days": 7,
"weeks": 1,
"years": 0.019178082191780823
},
"max": {
"days": 14,
"weeks": 2,
"years": 0.038356164383561646
}
}
## weight
Returns the weight
## length
Returns the length
## height
Returns the height
## width
Returns the width
## rating
Returns the rating
## review_count
Returns the review count
## max_rating
Returns the maximum rating
## reviews
Returns the [reviews](/reference/liquid/objects/store/review/)
## in_customers_wishlist?
Returns true if products is in customers wishlist.
## customer_has_reviewed
Returns true if customer has reviewed the product.
## customer_can_review
Returns true if customer can review the product.
## customer_has_purchased
Returns true if customer has purchased the product.
## created_at
Returns the creation date.
## updated_at
Returns the last updated date.