Cart Object Reference
On this page
Overview
The customer’s shopping cart holding Cart Items. The record is often generated from the Store website.
| Property | Value |
|---|---|
| API Name | s_c__Cart__c |
| Label | Cart |
| Plural Label | Carts |
| Type | Custom Object |
Fields
| Field Label | API Name | Type | Required | Description |
|---|---|---|---|---|
| Abandoned | s_c__Abandoned__c |
Checkbox | No | Determines whether the cart was abandoned. |
| Account | s_c__Account_Id__c |
Lookup (Account) | No | The Account associated with this cart. |
| Assisted By User | s_c__Assisted_By_User_Id__c |
Lookup (User) | No | The User who assisted with this cart. |
| Billing City | s_c__Billing_City__c |
Text(40) | No | The city of the customer’s billing address. |
| Billing Country Code | s_c__Billing_Country_Code__c |
Text(80) | No | The country code of the customer’s billing address. |
| Billing Country | s_c__Billing_Country__c |
Text(80) | No | The country of the customer’s billing address. |
| Billing Postal Code | s_c__Billing_Postal_Code__c |
Text(20) | No | The postal code of the customer’s billing address. |
| Billing State Code | s_c__Billing_State_Code__c |
Text(80) | No | The state code of the customer’s billing address. |
| Billing State | s_c__Billing_State__c |
Text(80) | No | The state of the customer’s billing address. |
| Billing Street | s_c__Billing_Street__c |
Text(255) | No | The street of the customer’s billing address. |
| Browser Country | s_c__Browser_Country__c |
Text(255) | No | The country of the customer’s browser. |
| Browser Device Type | s_c__Browser_Device_Type__c |
Text(255) | No | The device type of the customer’s browser. |
| Browser Geolocation | s_c__Browser_Geolocation__c |
Location | No | The geolocation of the customer’s browser. |
| Browser Ip Address | s_c__Browser_Ip_Address__c |
Text(255) | No | The IP address of the customer’s browser. |
| Browser Language | s_c__Browser_Language__c |
Text(255) | No | The language of the customer’s browser. |
| Browser Name | s_c__Browser_Name__c |
Text(255) | No | The name of the customer’s browser. |
| Browser Platform | s_c__Browser_Platform__c |
Text(255) | No | The platform of the customer’s browser. |
| Browser Screen Resolution | s_c__Browser_Screen_Resolution__c |
Text(255) | No | The screen resolution of the customer’s browser. |
| Browser Timezone | s_c__Browser_Timezone__c |
Text(255) | No | The timezone of the customer’s browser. |
| Browser User Agent | s_c__Browser_User_Agent__c |
Text(255) | No | The user agent of the customer’s browser. |
| Checkout Deposit Amount | s_c__Checkout_Deposit_Amount__c |
Currency(18,2) | No | The deposit amount the customer chose to pay now at web checkout, with the balance collected later. Blank when no deposit is set. |
| Checkout Email | s_c__Checkout_Email__c |
Text(255) | No | The email used during checkout. |
| Checkout Phone | s_c__Checkout_Phone__c |
Text(255) | No | The phone number used during checkout. |
| Checkout Shipping Email | s_c__Checkout_Shipping_Email__c |
Text(255) | No | The shipping email used during checkout. |
| Checkout Shipping Phone | s_c__Checkout_Shipping_Phone__c |
Text(255) | No | The shipping phone number used during checkout. |
| Collection Point | s_c__Collection_Point_Id__c |
Lookup (s_c__Collection_Point__c) | No | The Collection_Point__c associated with this cart. |
| Collection Point Stock Location | s_c__Collection_Point_Stock_Location_Id__c |
Lookup (s_c__Stock_Location__c) | No | The Stock_Location__c associated with this cart. |
| Contact | s_c__Contact_Id__c |
Lookup (Contact) | No | The Contact associated with this cart. |
| Customer Notes | s_c__Customer_Notes_Long__c |
LongTextArea(10000) | No | Holds any notes supplied by the customer during checkout. |
| Discount Amount | s_c__Discount_Amount__c |
Currency(18,2) | No | The discount amount (dollar value) for the cart-wide discount. |
| Discount Mode | s_c__Discount_Mode__c |
Picklist | No | The mode of cart-wide discount applied. Can be: amount or percentage. |
| Discount Percentage | s_c__Discount_Percentage__c |
Number(18,2) | No | The discount percentage for the cart-wide discount. |
| Order | s_c__Order_Id__c |
Lookup (Order) | No | The Order associated with this cart. |
| Pricebook | s_c__Pricebook_Id__c |
Lookup (Pricebook2) | No | The Pricebook that this cart belongs to. |
| Promotion | s_c__Promotion_Id__c |
Lookup (s_c__Promotion__c) | No | The Promotion__c associated with this cart. |
| Ship To Account | s_c__Ship_To_Account_Id__c |
Lookup (Account) | No | The Account the cart’s order will ship to. |
| Ship To Contact | s_c__Ship_To_Contact_Id__c |
Lookup (Contact) | No | The Contact the cart’s order will ship to. |
| Shipping Carrier Product | s_c__Shipping_Carrier_Product_Id__c |
Lookup (s_c__Shipping_Carrier_Product__c) | No | The Shipping_Carrier_Product__c associated with this cart. |
| Shipping City | s_c__Shipping_City__c |
Text(40) | No | The city of the customer’s shipping address. |
| Shipping Country Code | s_c__Shipping_Country_Code__c |
Text(80) | No | The country code of the customer’s shipping address. |
| Shipping Country | s_c__Shipping_Country__c |
Text(80) | No | The country of the customer’s shipping address. |
| Shipping Postal Code | s_c__Shipping_Postal_Code__c |
Text(20) | No | The postal code of the customer’s shipping address. |
| Shipping Rate | s_c__Shipping_Rate_Id__c |
Lookup (s_c__Shipping_Rate__c) | No | The Shipping_Rate__c associated with this cart. |
| Shipping State Code | s_c__Shipping_State_Code__c |
Text(80) | No | The state code of the customer’s shipping address. |
| Shipping State | s_c__Shipping_State__c |
Text(80) | No | The state of the customer’s shipping address. |
| Shipping Street | s_c__Shipping_Street__c |
Text(255) | No | The street of the customer’s shipping address. |
| Source | s_c__Source__c |
Picklist | No | Where the cart was created. Can be: web, pos, api, or manual. |
| Status | s_c__Status__c |
Picklist | No | The current step of the cart, can be: open, customer, shipping, terms_and_conditions, payment, payment_processing, paid, complete, failed, quotation_requested. |
| Store | s_c__Store_Id__c |
Lookup (s_c__Store__c) | No | The Store__c associated with this cart. |
| Tax Provider Error | s_c__Tax_Provider_Error__c |
Text(255) | No | The error returned from the tax provider service. |
| Test Order | s_c__Test_Order__c |
Checkbox | No | Determines whether the cart is a test order. |
| 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__Account_Id__c |
Lookup | Account | Cart_Accounts |
s_c__Assisted_By_User_Id__c |
Lookup | User | Cart_Assisted_By_Users |
s_c__Collection_Point_Id__c |
Lookup | s_c__Collection_Point__c | Cart_Collection_Points |
s_c__Collection_Point_Stock_Location_Id__c |
Lookup | s_c__Stock_Location__c | Cart_Collection_Point_Stock_Locations |
s_c__Contact_Id__c |
Lookup | Contact | Cart_Contacts |
s_c__Order_Id__c |
Lookup | Order | Cart_Orders |
s_c__Pricebook_Id__c |
Lookup | Pricebook2 | Cart_Pricebooks |
s_c__Promotion_Id__c |
Lookup | s_c__Promotion__c | Cart_Promotions |
s_c__Ship_To_Account_Id__c |
Lookup | Account | Cart_Ship_To_Accounts |
s_c__Ship_To_Contact_Id__c |
Lookup | Contact | Cart_Ship_To_Contacts |
s_c__Shipping_Carrier_Product_Id__c |
Lookup | s_c__Shipping_Carrier_Product__c | Cart_Shipping_Carrier_Products |
s_c__Shipping_Rate_Id__c |
Lookup | s_c__Shipping_Rate__c | Cart_Shipping_Rates |
s_c__Store_Id__c |
Lookup | s_c__Store__c | Cart_Stores |
Referenced by
These objects hold a lookup or master-detail relationship to Cart (s_c__Cart__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__Audit_Log__c | s_c__Cart_Id__c |
Lookup | Audit_Logs_Cart | — |
| s_c__Cart_Campaign__c | s_c__Cart_Id__c |
Lookup | Cart_Campaigns | — |
| s_c__Cart_Fulfillment__c | s_c__Cart_Id__c |
Lookup | Cart_Fulfillments | — |
| s_c__Cart_Item__c | s_c__Cart_Id__c |
Lookup | Cart_Cart_Items | — |
| s_c__Cart_Promotion2__c | s_c__Cart_Id__c |
Lookup | Cart_Promotions_v2_Cart | s_c__Promotion2__c |
On the storefront
Storefront templates read this object through the Cart Liquid object, written as cart in a theme.
| Salesforce field | Liquid attribute |
|---|---|
s_c__Discount_Mode__c |
cart.discount_mode |
Fields you add yourself are not listed above. Expose one with a Custom Data Mapping record, then read it from cart.data. See custom data fields in Liquid.
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.