Product Liquid Object Reference - 0.9.5

Object Name Product
Version 0.9.5

Description

The Product object contains information about a product that the Store sells.

Attributes

Attribute Type Description
add_to_cart_text String Returns the text to show on the ‘Add to Cart’ button
barcode String Returns the value of the Barcode attribute
brand Brand Returns the Brand of this Product
buy_it_now_text String Returns the text to show on the ‘Buy it Now’ button
can_add_to_cart? Boolean Indicates whether the Product can be added to the Cart
can_pickup? Boolean Indicates whether the Product is enabled for pickup, ie Click and Collect
can_purchase? Boolean Indicates whether the Product can be purchased. Accounts for stock levels, discontinued products, and general availability
can_request_quote? Boolean Indicates whether the Product can be included in a quote request (if enabled on the Store)
condition String Returns the value of the Condition attribute
content_blocks List[ContentBlock] Returns a list of ContentBlocks belonging to this Product
discontinued? Boolean Indicates whether this Product has been discontinued
documents List[Document] Returns a list of Documents belonging to this Product
id String Returns the unique id for this Product
identifier String Returns the value of the Identifier attribute
image Image Returns the main image for this Product
images List[Image] Returns a list of Images for this Product
location_groups List[LocationGroup] Returns a list of LocationGroups for this Product
maximum_quantity Number Returns the maximum quantity of this Product that can purchased in a single Order
name String Returns the value of the Name attribute
path String Returns the url path for this Product
pricing ProductPricing Returns the Pricing object for this Product
product_code String Returns the value of the Product Code attribute
related_products List[Product] Returns a list of Related Products
slug String Returns the value of the Slug attribute
supplier_code String Returns the value of the Suplier Code attribute
title String Returns the value of the Title attribute
unavailable_text String Returns the text to display when the Product is unavailable
upc String Returns the value of the UPC attribute
url String Returns the complete url for this Product

Bundles

Attribute Type Description
product_features List[ProductFeature] Returns a list of any ProductFeatures for this Product

Rich Content Sections

Attribute Type Description
downloads_content String Returns the content of the Downloads section as rich text
downloads_label String Returns the label to use for the Downloads section
features_content String Returns the content of the Features section as rich text
features_label String Returns the label to use for the Features section
specifications_content String Returns the content of the Specifications section as rich text
specifications_label String Returns the label to use for the Specifications section
summary_content String Returns the content of the Summary section as rich text
summary_label String Returns the label to use for the Summary section
support_content String Returns the content of the Support section as rich text
support_label String Returns the label to use for the Support section
warranty_content String Returns the content of the Warranty section as rich text
warranty_label String Returns the label to use for the Warranty section

SEO

These are some attributes that are useful for SEO purposes

Attribute Type Description
meta_description String Returns the value of the Meta Description attribute
meta_keywords String Returns the value of the Meta Keywords attribute
meta_title String Returns the value of the Meta Title attribute

Shipping

If the Store is enabled for Shipping, Products that can ship will have been assigned to one of the Store’s shipping methods

Attribute Type Description
can_ship? Boolean Indicates whether the Product is able to be shipped via one of the Store’s shipping methods
shipping_methods List[String] Returns a list of shipping methods that are available for this Product

Stock

Attribute Type Description
out_of_stock_text String Returns the text to display when the Product is out of stock
total_available_to_sell Number Returns the total quantity of this Product available to sell
track_inventory? Boolean Indicates whether this Product tracks stock or not. If true, it means it is possible for this Product to be out of stock

Subscriptions

Attribute Type Description
fixed_term_subscription? Boolean Indicates whether the subscription is a fixed-term subscription
subscription? Boolean Indicates whether this Product is purchaseable as a subscription

Traits

Attribute Type Description
trait_groups List[TraitGroup] Returns a list of TraitGroups for this Product
traits List[Trait] Returns a list of Traits for this Product

Variants

Attribute Type Description
master Product Returns the master Product for this Product. If this Product is the master, it will return itself
master? Boolean Indicates whether this Product is a master Product
variant_title String Returns the value of the Variant Title attribute
variant_types List[VariantType] Returns a list of VariantTypes for this Product
variants List[Product] Returns a list of variant Products for which this Product is the master

Objects that return Products

Back to Object List

Back to Liquid Reference for 0.9.5

 

 
Back to Documentation