Menu Object Reference
On this page
Overview
Menus are a collection of ordered menu items that can are usually used for Headers and Footers. Once created, you display them by setting a Header and Footer Content Block that reference the Menu item.
| Property | Value |
|---|---|
| API Name | s_c__Menu__c |
| Label | Menu |
| Plural Label | Menus |
| Type | Custom Object |
Fields
| Field Label | API Name | Type | Required | Description |
|---|---|---|---|---|
| Identifier | s_c__Identifier__c |
Text(255) | No | The identifier for this menu (unique per store). |
| Store | s_c__Store_Id__c |
Lookup (s_c__Store__c) | Yes | The store that this menu applies to |
| Style Class Names | s_c__Style_Class_Names__c |
Text(255) | No | CSS style class names that will be added to this menu when it is rendered. Separate the class names with a space. |
| Unique Store and Identifier | s_c__Unique_Store_Identifier__c |
Text(255) | No | Ensure a store can only have one menu with the same identifier |
| StoreConnect External ID | s_c__sC_Id__c |
Text(36) | No | StoreConnect External ID, do not modify in Salesforce |
Relationships
| Field | Type | Related Object | Relationship Name |
|---|---|---|---|
s_c__Store_Id__c |
Lookup | s_c__Store__c | Menus |
Referenced by
These objects hold a lookup or master-detail relationship to Menu (s_c__Menu__c). Where the referring record exists to join things together, Also links to shows what it connects this object to.
| Object | Field | Type | Relationship Name | Also links to |
|---|---|---|---|---|
| s_c__Menu_Item__c | s_c__Menu_Id__c |
Lookup | Menu_Menu_Item | — |
| s_c__Store__c | s_c__Footer_Menu_Id__c |
Lookup | Store_Footer_Menu | — |
| s_c__Store__c | s_c__Header_Menu_Id__c |
Lookup | Store_Header_Menu | — |
On the storefront
Storefront templates read this object through the Menu Liquid object, written as menu in a theme.
| Salesforce field | Liquid attribute |
|---|---|
s_c__Identifier__c |
menu.identifier |
s_c__Style_Class_Names__c |
menu.style_classes |
Fields you add yourself are not listed above. Expose one with a Custom Data Mapping record, then read it from menu.data. See custom data fields in Liquid.
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.