Stock Location Object Reference
On this page
Overview
Represents a specific location where stock is held to be sold.
| Property | Value |
|---|---|
| API Name | s_c__Stock_Location__c |
| Label | Stock Location |
| Plural Label | Stock Locations |
| Type | Custom Object |
Fields
| Field Label | API Name | Type | Required | Description |
|---|---|---|---|---|
| Active | s_c__Active__c |
Checkbox | No | Is this stock location active and holding stock. |
| Address Line 1 | s_c__Address1__c |
Text(255) | No | The first line street address of the Stock_Location__c displayed to the end user if Stock_Location__c.Online_Fulfillment_Options__c is set to Click and Collect only or Shipping with Click and Collect. |
| Address Line 2 | s_c__Address2__c |
Text(255) | No | The second line street address of the Stock_Location__c displayed to the end user if Stock_Location__c.Online_Fulfillment_Options__c is set to Click and Collect only or Shipping with Click and Collect. |
| Backorderable Default | s_c__Backorderable_Default__c |
Checkbox | No | Sets the value for Stock_Level__c.Backorderable__c to match when auto created for this Stock Location. Does not change any existing Stock Level. |
| City | s_c__City__c |
Text(255) | No | The city address of the Stock_Location__c displayed to the end user if Stock_Location__c.Online_Fulfillment_Options__c is set to Click and Collect only or Shipping with Click and Collect. |
| Contact Name | s_c__Contact_Name__c |
Text(255) | No | The name of the contact for the Stock_Location. |
| Country | s_c__Country_Id__c |
Lookup (s_c__Country__c) | No | The country within which this stock location is located, this is associated with the Country__c object so that Stock Locations and Taxes and Shipping are all referencing the same object for calculations. |
| Days to Restock | s_c__Days_To_Restock__c |
Number(5,2) | No | If this item is out of stock at this location, how many days for the item to get into stock, this is then shown to the customer if they wish to click and collect from this location. |
| [DEPRECATED] Default | s_c__Default__c |
Checkbox | No | [DEPRECATED] This fields is for a future release |
| Display Name | s_c__Display_Name__c |
Text(255) | No | The name displayed to the customer if click and collect is enabled for this stock location. |
s_c__Email__c |
Text(80) | No | The email address of the Stock_Location. | |
| Geolocation | s_c__Geolocation__c |
Location | No | The geolocation of this stock location, used for where to buy search if enabled on your store. |
| Hide From Search Default | s_c__Hide_From_Search__c |
Checkbox | No | Sets the value for Stock_Level__c.Hide_From_Search__c to match when auto created for this Stock Location. Does not change any existing Stock Level. |
| Logo | s_c__Media_Id__c |
Lookup (s_c__Media__c) | No | The image of this stock location. |
| Online Fulfillment Options | s_c__Online_Fulfillment_Options__c |
Picklist | No | Should the stock location support shipping, click and collect, both, or none? |
| Phone | s_c__Phone__c |
Phone | No | |
| [DEPRECATED] Priority Location? | s_c__Priority__c |
Checkbox | No | [DEPRECATED] When enabled, orders will be fullfilled from this location first. Enabling this will disable any other location from being the priority. |
| Create Stock Levels for New Products | s_c__Propagate_All_Variants__c |
Checkbox | No | When true, this stock location will automatically create a Stock_Level__c record for every product created and will recreate any missing Stock_Level__c object that gets deleted. |
| Require Stock for Click & Collect | s_c__Require_Stock_For_Pickup__c |
Checkbox | No | If true, this location will not be available for click and collect if there is no stock available for the product at this location. |
| State/Province | s_c__State__c |
Text(255) | No | The state address of the Stock_Location__c displayed to the end user if Stock_Location__c.Online_Fulfillment_Options__c is set to Click and Collect only or Shipping with Click and Collect. |
| Stock Import Filename | s_c__Stock_Import_Filename__c |
Text(255) | No | The file name used to import stock levels into this stock location if used within your store. Contact support@getstoreconnect.com for usage. |
| Import ID | s_c__Stock_Import_Id__c |
Text(255) | No | The stock import ID last used to import stock levels into this stock location if used within your store. Contact support@getstoreconnect.com for usage. |
| Stock Import Last Completed At | s_c__Stock_Import_Last_Completed_At__c |
DateTime | No | The date the most recent stock import to import stock levels into this stock location was completed if used within your store. Contact support@getstoreconnect.com for usage. |
| Stock Import Last Started At | s_c__Stock_Import_Last_Started_At__c |
DateTime | No | The date the most recent stock import to import stock levels into this stock location was started if used within your store. Contact support@getstoreconnect.com for usage. |
| Website | s_c__Website__c |
Text(255) | No | The website of this stock location if it exists. |
| Zip/Postal Code | s_c__Zip_Code__c |
Text(20) | No | The zip code of the Stock_Location__c displayed to the end user if Stock_Location__c.Online_Fulfillment_Options__c is set to Click and Collect only or Shipping with Click and Collect. |
| 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__Country_Id__c |
Lookup | s_c__Country__c | Stock_Locations_Countries |
s_c__Media_Id__c |
Lookup | s_c__Media__c | Logo |
Referenced by
These objects hold a lookup or master-detail relationship to Stock Location (s_c__Stock_Location__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 |
|---|---|---|---|---|
| Asset | s_c__Stock_Location_Id__c |
Lookup | Assets | OrderItem, s_c__Stock_Level__c |
| s_c__Cart__c | s_c__Collection_Point_Stock_Location_Id__c |
Lookup | Cart_Collection_Point_Stock_Locations | — |
| s_c__Collection_Point__c | s_c__Stock_Location_Id__c |
MasterDetail | Stock_Location_Collection_Points | — |
| s_c__Manual_Stock_Adjustment__c | s_c__Stock_Location_Id__c |
Lookup | Manual_Stock_Adjustment_Stock_Locations | — |
| s_c__Outlet_Stock_Location__c | s_c__Stock_Location_Id__c |
Lookup | Outlet_Stock_Locations | s_c__Outlet__c |
| s_c__Shipment__c | s_c__Stock_Location_Id__c |
Lookup | Shipments | — |
| s_c__Stock_Level__c | s_c__Stock_Location_Id__c |
MasterDetail | Stock_Location_Level | Product2 |
| s_c__Stock_Transfer__c | s_c__Destination_Id__c |
Lookup | Destination_Stock_Transfers | — |
| s_c__Stock_Transfer__c | s_c__Origin_Id__c |
Lookup | Origin_Stock_Transfers | — |
| s_c__Store_Stock_Location__c | s_c__Stock_Location_Id__c |
Lookup | Stock_Locations | s_c__Store__c |
On the storefront
Storefront templates read this object through the StockLocation Liquid object, written as stock_location in a theme.
| Salesforce field | Liquid attribute |
|---|---|
s_c__Address1__c |
stock_location.address1 |
s_c__Address2__c |
stock_location.address2 |
s_c__City__c |
stock_location.city |
s_c__Days_To_Restock__c |
stock_location.days_to_restock |
s_c__Display_Name__c |
stock_location.name |
s_c__Online_Fulfillment_Options__c |
stock_location.online_fulfillment_options |
s_c__Phone__c |
stock_location.phone |
s_c__State__c |
stock_location.state |
s_c__Website__c |
stock_location.website |
s_c__Zip_Code__c |
stock_location.zip_code |
Fields you add yourself are not listed above. Expose one with a Custom Data Mapping record, then read it from stock_location.data. See custom data fields in Liquid.
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.