StockLocation - Liquid Object Reference
On this page
Description
The StockLocation object contains information about a Stock Location.
:::note
This object supports custom data via the data attribute.
:::
Backed by
This drop renders the s_c__Stock_Location__c Salesforce object. A theme writes it as stock_location.
| Liquid attribute | Salesforce field |
|---|---|
address1 |
s_c__Address1__c |
address2 |
s_c__Address2__c |
city |
s_c__City__c |
days_to_restock |
s_c__Days_To_Restock__c |
name |
s_c__Display_Name__c |
online_fulfillment_options |
s_c__Online_Fulfillment_Options__c |
phone |
s_c__Phone__c |
state |
s_c__State__c |
website |
s_c__Website__c |
zip_code |
s_c__Zip_Code__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 stock_location.data. See custom data fields in Liquid.
Attributes
| Attribute | Type | Description |
|---|---|---|
active? |
Boolean | Returns whether this StockLocation is active |
address1 |
String | Returns the first address line for this StockLocation |
address2 |
String | Returns the second address line for this StockLocation |
city |
String | Returns the city for this StockLocation |
country |
String | Returns the country for this StockLocation |
days_to_restock |
Number | Returns the number of days in normally takes to restock items at this StockLocation |
id |
String | Returns the unique id for this StockLocation |
latitude |
String | Returns the latitude for this StockLocation |
logo |
Medium | Returns the medium for this StockLocation |
longitude |
String | Returns the longitude for this StockLocation |
name |
String | Returns the name of this StockLocation |
online_fulfillment_options |
String | Returns the online fulfillment options for this StockLocation |
phone |
String | Returns the phone number for this StockLocation |
require_stock_for_pickup? |
Boolean | Returns whether stock is required to enable pickups at this StockLocation |
state |
String | Returns the state for this StockLocation |
website |
String | Returns the website address for this StockLocation |
zip_code |
String | Returns the zip/postal code for this StockLocation |
Available on
- CollectionPoint - Liquid Object Reference —
stock_location - Fulfillment - Liquid Object Reference —
stock_location - PickupOption - Liquid Object Reference —
stock_location - Product - Liquid Object Reference —
pickup_locations
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.