ProductCategory - Liquid Object Reference
On this page
Description
The ProductCategory object contains information about a category of products. ProductCategories can be nested several levels deep.
:::note
This object supports custom data via the data attribute.
:::
Backed by
This drop renders the s_c__Product_Category__c Salesforce object. A theme writes it as product_category.
| Liquid attribute | Salesforce field |
|---|---|
google_product_category |
s_c__Google_Product_Category__c |
meta_description |
s_c__Meta_Description__c |
meta_keywords |
s_c__Meta_Keywords__c |
meta_title |
s_c__Meta_Title__c |
name |
s_c__Display_Name__c |
position |
s_c__Position__c |
subtitle |
s_c__Subtitle__c |
title |
s_c__Title__c |
Every other attribute on this drop is derived by StoreConnect rather than read straight from one field. The Attributes section lists them all.
Fields you add yourself are not listed above. Expose one with a Custom Data Mapping record, then read it from product_category.data. See custom data fields in Liquid.
Attributes
| Attribute | Type | Description |
|---|---|---|
ancestors |
List[ProductCategory] | Returns a list of ancestors of this ProductCategory |
children |
List[ProductCategory] | Returns a list of child ProductCategories |
google_product_category |
String | Returns the Google Product Category for this ProductCategory |
hidden? |
Boolean | Returns true if this ProductCategory is hidden |
id |
String | Returns the unique id for this ProductCategory |
identifier |
String | Returns the value of the Identifier attribute |
image |
Image | Returns the Image linked to this ProductCategory |
information_content |
String | Returns the value of the Information attribute as rich text |
introduction_content |
String | Returns the value of the Introduction attribute as rich text |
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 |
name |
String | Returns the value of the Name attribute |
navigation_children |
List[ProductCategory] | Returns a list of child ProductCategories that are enabled to appear in navigation menus |
path |
String | Returns the url path for this ProductCategory |
position |
Number | Returns the position of this ProductCategory in the list of ProductCategories |
products |
PaginatedList[Product] | Returns a Lookup list of Products in this ProductCategory |
social_image |
Image | Returns the image to be used when sharing this ProductCategory |
subtitle |
String | Returns the value of the Subtitle attribute |
title |
String | Returns the value of the Title attribute |
url |
String | Returns the complete url for this ProductCategory |
Available on
- ContentBlock - Liquid Object Reference —
product_categories - Discount - Liquid Object Reference —
product_category - Global - Liquid Object Reference —
all_product_categories,current_product_category - Location - Liquid Object Reference —
categories - LocationGroup - Liquid Object Reference —
categories - Membership - Liquid Object Reference —
product_category - MenuItem - Liquid Object Reference —
product_category - Product - Liquid Object Reference —
categories - ProductApproval - Liquid Object Reference —
product_category - PromotionScope - Liquid Object Reference —
category - Store - Liquid Object Reference —
navigation_categories
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.