Membership - Liquid Object Reference
On this page
Description
A Membership represents an method of grouping Accounts to give them access to special pricing or products.
:::note
This object supports custom data via the data attribute.
:::
Backed by
This drop renders the s_c__Membership__c Salesforce object. A theme writes it as membership.
| Liquid attribute | Salesforce field |
|---|---|
name |
s_c__Display_Name__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 membership.data. See custom data fields in Liquid.
Attributes
| Attribute | Type | Description |
|---|---|---|
accounts |
List[Account] | Returns a list of Accounts belonging to this Membership |
articles |
List[Article] | Returns a list of Articles associated with this Membership |
id |
String | Returns the unique id for this Membership |
name |
String | Returns the value of the Name attribute |
pages |
List[Page] | Returns a list of Pages associated with this Membership |
pricebook |
Pricebook | Returns the Pricebook for this Membership |
product |
Product | Returns the main Product for this Membership |
product_category |
ProductCategory | Returns the Product Category for this Membership |
products |
List[Product] | Returns a list of Products for this Membership |
Available on
- Account - Liquid Object Reference —
membership - Contact - Liquid Object Reference —
membership - Discount - Liquid Object Reference —
membership - Global - Liquid Object Reference —
current_membership - Product - Liquid Object Reference —
memberships - PromotionScope - Liquid Object Reference —
membership
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.