Schemas
Stencil theme object schemas describe the data available to Handlebars templates on BigCommerce storefronts. Each schema documents the properties of a global or page-specific object.
banners
Elements of marketing banners at page’s top and/or bottom.
global {{banners}} object
Handlebars Expressions
{{banners}},{{{banners}}}
Handlebars Formatting Exception
Where a banner contains HTML, the banner helper must be placed in triple braces, as in this example {{{banners}}}.
(Double braces would escape the HTML.)
Limits
{{banners}}will only return the first 50 banners on each page.
Properties:
bottomarray— Array of HTML content/strings, for custom bottom-banner content; banners are populated from the BigCommerce control paneltoparray— Array of HTML content/strings, for custom top-banner content; banners are populated from the BigCommerce control panel
blog
Blog-specific properties for the blog feature within BigCommerce storefronts. These objects are called on the default templates/components/blog/post.html partial.
global and template {{blog}} objects
Handlebars Expression
{{blog}}
Template blog object
{{blog}} object available to blog and blog post templates and components
Properties:
descriptionstring— Blog description.namestring— Blog name.postsobject(external ref)tagnull— The blog’s tag.urlstring— URL to the blog page.
Global blog object
global {{blog}} object
Properties:
namestring— Blog name.recent_postsobject(external ref)urlstring— URL to the blog page.
brand
The brand object for the page calling the object.
{{brand}} object available to templates/pages/brand.html
Handlebars Expression: {{brand}}
Properties:
configarrayfaceted_search_enabledboolean— Boolean that defines whether product-filtering search is enabled for the store.facetsarray— A list of all possible search filters for this brand.imageobject(external ref)metaarraynamestring— Name of the brandproductsarray— An array of product card models.search_errorbooleanselectedobject— An array of selected facets.itemsarrayremove_all_urlstring
show_compareboolean— Boolean corresponding to merchant’s control panel selection whether or not to enable product comparisons.statearrayurlstring— URL of the brand page. Only letters, numbers, dots (.), dashes (-), underscores (_), and forward slashes (/) are allowed. Must be 1-1024 characters, consisting of segments divided by ”/”. Each segment must be 1-256 characters.
brand_results
{{brand_results}} array
Properties:
urlstringnamestring
brands
{{brands}} object available to templates/pages/brands.html
breadcrumbs
Defines a page’s breadcrumbs. Available on virtually all pages that have a breadcrumb trail.
global {{breadcrumbs}} array
Handlebars Expression {{breadcrumbs}}
carousel
A list of images, text, and style assets for a storefront’s image slide show.
{{carousel}} array
Handlebars Expression {{carousel}}
Properties:
slidesarray— Object containing properties for each slide in the slideshow.alt_textstring— Alt text for the image.button_textstring— Text displayed on a call-to-action button defined by the merchant.button_text_colorstring— Color of the button.headingstring— Heading message defined by the merchant.heading_colorstring— Color of the heading text.imagestring— Path to the image file used on this slide.image_heightstringimage_widthstringstencil_imageobjectaltstringdatastringheightintegerwidthinteger
textstring— Subheading defined by the merchant.text_colorstring— Color of the subheading texturlstring— URL to which the image will link.
swap_frequencyinteger— Indicates how often (in seconds) the slides will change; the value must be between 1 and 90,000 seconds.
cart
The cart-specific properties for the current session.
{{cart}} object available to templates/pages/cart.html; contains cart_id if one exists.
Handlebars Expression: {{cart}}
Properties:
additional_checkout_buttonsarray— Generates checkout buttons for third-party payments (PayPal, Google Checkout, etc.)couponsarray— List of coupons applied to the cart; default sorting is by coupon ID, from lowest to highest.idnumbercodestringdisplayNamestringcouponTypestringdiscountedAmountnumber
discountobject— Discount being applied to the cart in the current session.formattedstringvalueinteger
gift_certificatesarray— List of gift certificates applied to the cart.idstringnamestringthemestringamountnumbertaxablebooleansenderarraynamestringemailstring
recipientarraynamestringemailstring
messagestring
gift_wrapping_costobject— Price object that defines the cost associated with adding gift wrapping to the items in the cart.currencystringformattedstringvalueinteger
grand_totalobject— Price object that defines the total cost of all the items in the cart. Incorporates estimated shipping, discounts, taxes, and gift wrapping.currencystringformattedstringvaluenumber
itemsarrayavailabilitystringbase_priceobjectcurrencystringformattedstringvaluenumber
brandobjectnamestring
can_modifybooleancategory_namesarrayconfigurable_fieldsarraycustom_fieldsarrayidintegernamestringvaluestring
idstring— Unique ID of the coupon.imageobjectaltstring— Corresponding text to display for missing images, accessible screen readers, etc.datastring— Internal URL to the image.
max_purchase_quantityintegermin_purchase_quantityintegernamestringoptionsarrayidstringnamestringvaluestringis_fileboolean
priceobjectcurrencystringformattedstringvaluenumber
price_discountedobjectcurrencystringformattedstringvaluenumber
product_idintegerquantityinteger— Total number of items in the cart.release_datestringremove_urlstring— URL to remove gift certificate from the cart.rrpobject— Price object that defines the cart item’s list price (MSRP); can be used to display struck-out list prices.currencystringformattedstringvalueinteger
sale_priceobjectcurrencystringformattedstringvaluenumber
show_gift_wrappingboolean— Boolean indicating whether the wrapping options are shown.skustringtotalobjectcurrencystringformattedstringvaluenumber
total_discountedobjectcurrencystringformattedstringvaluenumber
typestringurlstringvariant_idinteger
quantityintegershipping_handlingobject— Current configuration of the shipping estimator for this session’s current cart; will be null/undefined if the cart contains no physical products.countriesarray— Countries available to ship to.currencyobjectcodestringnamestringsymbolstring
idintegeriso2stringiso3stringnamestringselectedboolean
selected_citystring— The city/town that the customer selected for the shipping estimate.selected_countrystringselected_statestring— The state/province/region that the customer selected for the shipping estimate.selected_zipstring— The ZIP/postal code that the customer selected for the shipping estimate.show_estimatorboolean— Boolean indicating whether the merchant wants to show the shipping estimator to customers.statesarray— List of states/provinces/regions for the country.idstringnamestring
show_multiple_address_shippingboolean— Boolean: If > 1 physical items are in the cart, and checkout button is displayed: whether to also display the “Ship to multiple addresses” / “Multiple Shipping Addresses” user option.show_primary_checkout_buttonboolean— Boolean that determines whether to show a checkout button.status_messagesarraymessagestringtypenumber
sub_totalobject— Price object that defines the total cost of all the items in the cart. Might or might not include tax, based on the tax display settings the merchant has configured. Excludes shipping, discounts, and gift wrapping.currencystringformattedstringvaluenumber
taxesarray— List of all applicable taxes for the cart.costobject— Price object that defines the cost of the applied tax.currencystringformattedstringvaluenumber
includedboolean— Boolean that indicates whether taxes are included in the total price for the cart’s contents.namestring
cart_id
Returns the cart ID if one exists. To return more cart information use the Storefront Cart API.
global {{cart_id}}
Handlebars Expression: {{cart_id}}
categories
A array of category objects filled with all categories shown in the current page context; default sorting is by category ID, from lowest to highest
global {{categories}} array
Handlebars Expression: {{categories}}
category
The category object for the page calling the object. When retrieving a collection of categories, default sorting is by category id, from lowest to highest. Called on the default templates/pages/category.html template, and on several partials in the <theme-name>/templates/components/ subdirectory: category/shop-by-price.html and category/sidebar.html.
Handlebars Expression: {{category}}
Properties:
configarraydescriptionstring— Merchant-defined description of the category.detail_messagesarray— Message displayed when a product is out of stock, and inventory settings are configured to redirect to a category: “Sorry, the product you tried to view is currently out of stock, here are some similar products we have available.” (This phrasing is set by the BigCommerce App.)faceted_search_enabledboolean— Boolean that defines whether product-filtering search is enabled for the store.facetsarray— Available search facets.idinteger— Unique ID for the category.imageobject(external ref)metaarraynamestring— Merchant-defined category name.productsarrayselectedarray— Selected search facets.shop_by_pricearray— Exposes price- and currency-related properties in both raw numeric, and formatted string, formats. It will return empty for stores with faceted search enabled who are not explicitly requesting this information in their front matter.highobject— Price object that defines the maximum price boundary.currencystringformattedstringvalueinteger
lowobject— Price object that defines the minimum price boundarycurrencystringformattedstringvalueinteger
selectedboolean— Price object that defines the currently selected price range.urlstring— URL of price-filtered product results for this category.
show_compareinteger— Boolean that defines whether to show controls for product comparisonstatearraysubcategoriesarray— List of any child categories.descriptionstring— Merchant-defined description of the subcategory.idinteger— Unique ID for the subcategory.imagenull— Image representing this subcategory, in Stencil image format.namestring— Name of the subcategoryproduct_countinteger— Number of products in the subcategory. (Counts at the current level only – not recursive to deeper levels.)urlstring— URL to the subcategory.
total_productsinteger— Count of the number of products in the category.urlstring
category_results
{{category_results}} array
Properties:
urlstringnamestring
checkout
Used to access checkout content and data in templates\pages\order-confirmation.html.
The {{checkout}} object is available to checkout and order confirmation templates and components.
Handlebars Expression: {{checkout.*}}
Properties:
order_confirmation_contentstring— Default content from checkout template.checkout_headstring— Default content from checkout<head>.orderobject—{{checkout.order}}object available to order confirmation templates and components.idnumber— Theidof the order. To accesscheckout.order.idfromorder-confirmation.html, use Script Manager or the Stencil themeʼs page context to assign the value ofcheckout.order.idto a variable. For more information, see the example in Using the Fetch API.
header_imagestring— The imagesrcof the header.idstring— the cart and checkoutid
comparisons
Property to display an array of products on product comparison pages. (Called on the default <theme-name>/templates/pages/compare.html template.)
{{comparisons}} array
Handlebars Expression: {{comparisons}}
content_results
{{content_results}} array
countries
The {{countries}} array available to templates/pages/account/payment-methods.html; used in country and state dropdowns when submitting add payment form.
Handlebars Expression: {{countries}}
create_account
Object to enable the current customer to create a store account. (Called on the default <theme-name>/templates/pages/auth/create-account.html template.)
Handlebars Expression: {{forms.create_account}}
Properties:
continue_urlstring
currency_selector
A list of all supported currencies, and the currency that is actively in use in the storefront.
global {{currency_selector}}
Handlebars Expression: {{currency_selector}}
Properties:
active_currency_idstring— ID of the currency actively in use in the storefront.active_currency_flagstring— Country flag used to represent the active currency.active_currency_namestring— Name of the active currency.active_currency_codestring— Code for the active currency.currenciesarray— List of all the currencies supported for this storefront.is_activeboolean— Boolean that indicates whether this currency is active for use in the storefrontswitch_urlstring— The URL to invoke a switch to this currency.idstring— ID of the currency.namestring— Name of the currency.flagstring— Country flag used to visually represent the currency.
customer
{{customer}} object available to templates and components with customer context such as page/contact-us-form.html, common/subscription-form.html, account/address-list.html, account/messages-form.html, and account/wishlist-list.html.
Handlebars Expression: {{customer}}
Properties:
addressesobject(external ref)customer_group_idnumber— ID of this customer’s group.customer_group_namestring— Name of this customer’s group.edit_stored_instrumentstringemailstring— Customer’s email address.idinteger— Customer’s ID.namestring— Customer’s name.num_new_messagesinteger— Number of unread messages for this customer.num_wishlistsstring— Number of wishlists for this customer.ordersobject(external ref)payment_methodsobject(external ref)phonestring— Customer’s phone number.recently_viewed_productsarrayreturnsobject(external ref)shipping_addressobject— Shipping address used for the order.address1string— Customer’s shipping address, first line.address2string— Customer’s shipping address, second line.citystring— Customer’s shipping city.companystring— Customer’s shipping company name.countrystring— Customer’s shipping country.country_idstring— ID for customer’s shipping country.destinationstring— Type of delivery destination: residential or business/commercial.first_namestring— Customer’s shipping (first) name.form_session_idstring— Used for custom shipping forms.idstring— Unique, system-generated ID.last_namestring— Customer’s shipping (last) name.last_usedstring— Timestamp when this address was last used as a shipping address.phonestring— Customer’s shipping phone number.statestring— Customer’s shipping state.state_idstring— ID for customer’s shipping state/province/region.zipstring— Customer’s shipping postal code.
shipping_addressesobject(external ref)store_creditobject— Customer’s store credit.currencystringformattedstringvaluenumber
wishlistsobject(external ref)
customer_group_id
global {{customer_group_id}}
customer_group_name
global {{customer_group_name}}
downloads
Property for digital (non-physical) products. Exposed on the default <theme-name>/templates/pages/account/download-item.html template.
Handlebars Expression: {{downloads}}
faceted_search
global {{faceted_search}}; provides data for searching by category or brand.
Handlebars Expression: {{faceted_search}}
Properties:
facetsstring— List of all search facets available.selectedarray— Container for the selected search facets (selected facets contain properties below)remove_all_urlstring— URL to remove all selected search restrictions.itemsstring— Currently enabled search facets
footer
The footer content for each storefront page.
global {{footer}} object
Handlebars Expression: {{footer}}
Properties:
sitemap_urlstring— The URL to the sitemap, based on store’s SEO setting.scriptsstring— Scripts to be loaded after the HTML has loaded; includes performance metrics.
forms
{{forms}} object available to pages and components with forms
Handlebars Expression: {{forms.edit_account}}
forms_contact
Properties:
captcha_urlstringcompanybooleannamebooleanorderbooleanpage_idstringphonebooleanrecaptchaarrayenablednumbermarkupstringpublic_keystring
rmabooleantextstring
head
global {{head}} object containing data configured for the HTML <head> element.
Handlebars Expression: {{head}}
Properties:
faviconstring— The store’s favicon.meta_tagsstring— Meta tags to improve store SEO.scriptsstring— Scripts to be loaded in the<head>tag.stylesheetsstring— CSS files to be included.titlestring— Current page’s title.
is_ajax
global {{is_ajax}} boolean; returns true if the current request is an AJAX request
Handlebars Expression: {{is_ajax}}
No properties available for this object.
order
The {{order}} object available to templates and components with order context.
Handlebars Expression: {{order}}
Properties:
billing_addressobject— Billing address used for the order.address_linesarray— Customer’s billing addresscitystring— Customer’s billing citycompanystring— Customer’s billing company namecountrystring— Customer billing countryemailstring— Customer’s billing emailfull_namestring— Customer’s billing namephonestring— Customer billing phone numberstatestring— Customer’s billing statezipstring— Customer billing ZIP
commentsstringdatestring— Date of the orderhas_multiple_shipping_addressesbooleanidinteger— Unique, system-generated IDinvoice_urlstringis_completeboolean— Boolean indicating that the order has been completedis_digitalstringitemsarray— List of items for the order.gift_wrapping_namestringimageobject(external ref)namestring— Product Nameoptionsarraynamestringvaluestring
order_product_idstring— Product IDpriceobjectcurrencystringformattedstringvalueinteger
quantityinteger— Quantity Orderedrefundedboolean— Price object that defines the value of this product that has been refunded.refunded_qtyintegerreorder_messagestring— An error message to be displayed when the customer attempts to reorder items that can’t be reordered.return_urlstringshipping_rowsarray— Array of shipping addresses, for each item in the ordershow_reorderboolean— Boolean indicating whether the customer should see a button for reordering items on the Account Order Details page.skustringtotalobject— Price object that defines the order’s total valuecurrencystringformattedstringvalueinteger
typestring
last_updatedstringorder_instructionsstringpayment_methodstring— Customer’s payment method for this order (payment gateway)reorder_urlstring— URL to place reorders for items in this order.return_urlstringreturns_enabledinteger— Boolean that indicates whether merchant allows products from the order to be returned.shipping_addressobject— Shipping address used for the order.address_linesarray— Customer’s shipping addresscitystring— Customer’s shipping citycompanystring— Customer’s shipping company namecountrystring— Customer’s shipping countryemailstring— Customer’s emailfull_namestring— Customer’s shipping namephonestring— Customer’s shipping phone numberstatestring— Customer’s shipping statezipstring— Customer’s shipping zip
shipping_address_countstring— Number of shipping addresses the customer has specified for this order.shipping_methodstringstatusstring— Order status codestatus_messagesarray— Status message associated with the status code for the orderstatus_textstring— Status text associated with the status code for the order.totalobject— Price object that defines the order’s total valuecurrencystringformattedstringvaluenumber
total_rowsarray— A list of “total” rows containing total pricing informationlabelstring— The label of the total row (Subtotal, Tax, Grand Total, etc.).valueobject— Value that customer selected for the option.currencystringformattedstringvalueinteger | number
pickup_addressobjectlocationobjectnamestringcodestringaddress_line_1stringaddress_line_2stringcitystringstatestringpostal_codestringcountry_alpha2stringemailstringphonestring
collection_time_descriptionstringcollection_instructionsstringpickup_method_display_namestringpickup_method_idnumber
brandstring
page
{{page}} object present on content pages, and forms.
Handlebars Expression: {{page}}
Properties:
breadcrumbsarray— Present if page has ancestors.contentstring— HTML content of the pageidintegersub_pagesarray— Array of child pagestitlestringurlstring
titlestring— Title of this child page
page_type
A string representing the type of page currently displayed.
global {{page_type}} string.
Handlebars Expression: {{page_type}}
All possible values for {{page-type}} are:
- account_orderstatus
- account_order
- account_addressbook
- shippingaddressform
- account_new_return
- add-wishlist
- account_recentitems
- account_downloaditem
- editaccount
- account_inbox
- account_saved_return
- account_returns
- account_paymentmethods
- account_addpaymentmethod
- account_editpaymentmethod
- login
- createaccount_thanks
- createaccount
- getnewpassword
- forgotpassword
- blog
- blog_post
- brand
- brands
- cart
- checkout
- category*
- compare
- page_contact_form
- error
- 404
- giftcertificates
- giftcertificates_balance
- giftcertificates_redeem
- default*
- orderconfirmation
- page*
- product*
- amp_product_options
- search
- sitemap
- newsletter_subscribe
- wishlist
- wishlists
The four most-commonly-used values for {{page_type}} are marked with asterisks.
pages
global {{pages}} object containing storefront content page data
Handlebars Expression: {{pages}}
Properties:
URLstring— URL of the page.childrenarray— List of child pages for this page.URLstring— URL of the child page.namestring— Name of the child page.
namestring— Name of the page.
pagination
{{pagination}} object available to templates containing paginated lists, such as templates/pages/category.html and templates/pages/brands.html.
Handlebars Expression: {{pagination}}
price
product
Default property that provides detailed product data. Called on the default templates/pages/product.html template, and on several partials in the templates/components/ subdirectory:
*account/returns-list.html
*cart/item-options.html,
*products/add-to-cart.html
*products/event-date.html
*products/modals/writeReview.html
*products/price.html
*products/product-view.html
Handlebars Expression: {{product}}
Properties:
AddThisServiceButtonMetastringadd_thisarrayannotationstringservicestring
add_to_wishlist_urlstring— URL to add the product to the customer’s wishlistavailabilitystringbrandarray— The company, product line, or trademark associated with the product.namestring— The name of the company, product line, or trademark.urlstring— The store’s internal page with all the products from that brand.
bulk_discount_ratesarray— List of discount rates for the current producttypestringminintegermaxintegerdiscountobjectformattedstringvalueinteger
can_purchaseboolean— Boolean that indicates whether the product is available for purchasecart_urlstring— URL to the customer’s shopping cartcategoryarrayconditionstring— Product conditioncustomizationsarray— Product customizations (for example, a T-shirt size); these correspond to configurable fields and numeric-text product options in the BigCommerce control panelcustom_fieldsarrayidintegernamestringvaluestring
depthstring— The product’s physical depth measurement.descriptionstring— (HTML) description of the productdetail_messagesstring— Status messages for display at the top of the product pagegift_wrapping_availableboolean— Whether or not gift wrapping is enabledgtinstring— Global Trade Item Number. An identifier for trade items that is incorporated into several product identification standards, such as ISBN, UPC, and EAN.heightstring— The product’s physical height measurement.idinteger— Unique ID for the productimagesarray— List of all images for this product, in Stencil image format (as configured in config.json; used with the getImage Handlebars helper)altstringdatastring
main_imageobject— Primary image to display when the product details page loadsaltstringdatastring
max_purchase_quantityinteger— Maximum quantity that can be purchased at oncemeta_descriptionstringmeta_keywordsstring— Optional search keywords that merchants may enter in the control panelʼs “Add a Product” or “Edit a Product” page, to characterize the product in meta tags and storefront searches.min_purchase_quantityinteger— Minimum quantity that can be purchased at oncempnstring— Manufacturer Part Number. It is used to reference and identify a product.num_reviewsinteger— Number of reviews the product hasoptionsobject(external ref)out_of_stockboolean— Boolean that indicates whether the product is out of stock. Out of stock only applies to the default selection on page load. For example, if Product A is out of the “Small” size, but “Small” is selected by default,out_of_stockwill return true, even if the product is not out of stock as a whole.out_of_stock_messagestring— Out of stock messages for display on the product pagepage_titlestringpriceobject(external ref)ratinginteger— Rating for the productrelated_productsobject(external ref)reviewsobject(external ref)shippingobjectcalculatedbooleanpriceobjectformattedstringvaluenumbercurrencystring
freebooleanfixedboolean
shipping_messagesarrayshow_quantity_inputintegerskustring— Default product variant when no options are selected.stock_levelstring— Indicates the number of items available for sale. Visible only when inventory tracking is turned on.tagsarray— Keywords by which this product can also be identified.titlestring— Displayed name of the productupcstring— Optional UPC code for the producturlstring— URL to the product detail pagevideosobject(external ref)warrantystring— Optional warranty text set by the merchantwidthstring— The product’s physical width measurement.
product_results
{{product_results}}Properties:
productsarrayidintegerskustringnamestringurlstringbrandobjectnamenull
availabilitystringsummarystringimageobjectdatastringaltstring
qty_in_cartintegerpre-orderboolean— falsehas_optionsboolean— trueshow_cart_actionboolean— truestock_levelnulllow_stock_levelnullweightobjectformattedstring— 12.00 Ouncesvalueinteger
demoboolean— falsedate_addedstringadd_to_wishlist_urlstringcustom_fieldsnullimagesobjectdatastringaltstring
ratingintegernum_reviewsintegerpriceobjectwithout_taxobjectformattednumbervalueintegercurrencystring
tax_labelstringcategoryarrayBundle Inventory TrackerstringBundle Inventory Tracker/Bundlesstring
products
The {{products}} object available on pages with product cards like templates/pages/home.html; contains new, featured, and top_sellers.
Properties:
newarrayfeaturedarray— Renders a list of all the featured products for the BigCommerce storefront.top_sellersarray— Object to display a sidebar of top-selling products.
remote_api_scripts
Empty array. No properties are available for this object. Handlebars Expression: {{remote_api_scripts}}
settings
Common settings shared across every BigCommerce storefront.
global {{settings}} object
Handlebars Expression: {{settings}}
Properties:
account_creation_enabledboolean— Site-wide boolean value that indicates whether to allow customers to create accounts.add_thisobject— Object that defines links for the AddThis social sharing component.buttonsarray— Array of buttons to display for AddThis social sharing{{#each settings.add_this.buttons}}{{service}}{{/each}} {{#each settings.add_this.buttons}}{{annotations}}{{/each}}.annotationstring— String containing HTML attributes associated with this button.servicestring— String containing the name of this buttonʼs social-media service (facebook, email, print, twitter, linkedin, google, etc.)
addressstring— Store’s complete physical address, as entered by merchant in the store profile.base_urlstring— The normal shop URL.blog_enabledboolean— Site-wide boolean value that indicates whether the blog is visible for this storefront.bulk_discount_enabledboolean— Boolean that return true if bulk discount is enabled on products.cdn_urlstringclient_ip_addressstring— The IP address of the customer browsing the storefront. An alternative to this deprecated field is using ipify API.country_codestring— The country code corresponding to the IP.data_tag_enabledboolean— Site-wide boolean that indicates whether GAEE is enabled in a theme. For{{settings.data_tag_enabled}}to be true, the enhanced_ecommerce key must be present in config.json and a GAEE experiment must be enabled along with GA property value set in Advanced Settings > Analytics > GA in the store control panel.display_date_formatstring— Brief display format/pattern for dates, as configured in the control panelʼs Display Date Format field.extended_display_date_formatstring— Extended display format/pattern for dates, as configured in the control panelʼs Extended Display Date Format field.facebook_like_buttonobjectenabledbooleanhrefstringverbstring
generalobjectfastCartbooleanstoreIdinteger
gift_certificates_enabledboolean— Site-wide boolean value that indicates whether to enable the gift certificate system for this store.is_eu_ip_addressboolean— A boolean value. Return true if the shopper’s IP address is in the EU. Alternatives to this deprecated field are solutions like the IP Geolocation API, IP Geolocation API Package, and others. While those solutions are not free, they offer a generous free tier, better data quality, and more data points than just the region.maintenanceobject— Object that manages information about the store when in maintenance (offline) mode.headernull— If store is in maintenance mode, string containing header text for the Down for Maintenance window displayed to visitors; otherwise, null.messagenull— If store is in maintenance mode, string containing merchant-customizable body text (and optionally, HTML) for the Down for Maintenance window displayed to visitors; otherwise, null.noticenull— If store is in maintenance mode, one of three strings identifying the storeʼs status, and generating a corresponding text notice to merchants about how to proceed: AdminPrelaunchNotice for preview stores, AdminMaintenanceNotice for active stores taken down for maintenance, or AdminHibernationModeNotice for deactivated stores; otherwise, null.passwordnullsecurePathstring
measurementsobject— Collection of units-of-measure definitions, to be used when displaying product details:lengthstring— Units of measure for product lengthweightstring— Units of measure for product weight
moneyobject— List of child items that define the store’s default currency formatting.currency_locationstring— Whether currency symbol appears at left or right of the quantitycurrency_tokenstring— Symbol for the currencydecimal_placesinteger— Number of decimal places to displaydecimal_tokenstring— Symbol for decimal separatorthousands_tokenstring— Symbol for thousands separator
newsletter_summarystring— Returns the newsletter summary.password_requirementsobject— Collection of properties representing BigCommerce requirements for customer-account passwords:alphastring— Regular expression representing required/acceptable alphabetic characters.errorstring— String that passes a standard error message for noncompliant password.minlengthinteger— Integer representing minimum acceptable password length.numericstring— Regular expression representing required/acceptable numeric characters.
payments_urlstring— Exposes the BigCommerce payments URL.https://payments.bigcommerce.com.phone_numberstring— The contact phone number for the store located in the stores profile.privacy_cookieboolean— If enabled, a string containing merchant-customizable text for (European Union–required) cookie-setting notification; if disabled, a boolean with a value of false.region_codestring— The ISO-3166-2 code is an international standard denomination for country subdivisions. The first part is the country’s ISO 3166-1 alpha-2 code, and the second part is a string of up to three alphanumeric characters representing the country’s subdivision (province or state). For example, Texas’s ISO 3166-2 code is US-TX; therefore, the region code is TX. The value is approximate as it is based on the IP address geolocation. Alternatives to this deprecated field are solutions like https://ipinfo.io/products/ip-geolocation-api and others. While those solutions are not free, they offer a generous free tier, better data quality, and more data points than just the region.requestobject— Object that contains details about the HTTP request.absolute_pathstring— The absolute URL requested. Never use request.path in the actual body of the page.hoststring— Hostname of the request.is_crawlerboolean— Renderstrueif the user agent is a known crawler; otherwise,false. NOTE: Serving different versions of the page to crawlers is considered detrimental to SEO cloaking and is rarely needed. An alternative to this field is using a front-end bot detection like isbot.localestring— The browserʼs locale. Allows for varying experience based on shopper locale.originstring— Origin of the request.refererboolean— Refer of the request.user_agentstring— User agent string of the request. An alternative is using JavaScript detection (Navigator: userAgent property).
returns_enabledinteger— Boolean that indicates whether the control-panel setting for the returns system is enabled.rss_item_limitinteger— An integer that sets a limit on the number of RSS items to display.secure_base_urlstring— The SSL-enabled, secure, shop URL.secure_hoststring— Returns the SSL url for a store. Example:https://www.bigcommerce.com.shopper_consent_tracking_enabledbooleanshow_newsletter_boxinteger— Site-wide boolean value that indicates whether to display a mailing-list invite to visitors.show_newsletter_summaryinteger— Returns a 1 if the [newsletter summary](https://support.bigcommerce.com/s/article/Collecting-Newsletter-Subscriptions#newsletter is shown. Returns 0 if it is now shown. If show_newsletter_box is 0 then show_newsletter_summary will also be 0.show_payment_methodsboolean— A boolean value. If true available payment methods on a store will be shown. If false they are hidden.show_product_ratingboolean— Site-wide boolean value that indicates whether to display product ratings (in numeric or star format) to visitors.show_product_reviewsboolean— Site-wide boolean value that indicates whether to display full-text product reviews to visitors.show_wishlistboolean— Site-wide boolean value that indicates whether to allow customers to create wishlists.store_dst_correctioninteger— Whether or not this time zone observes Daylight Saving Time (boolean), as set by the control panelʼs Enable DST Correction check box.store_hashstring— Returns the store hash as a string.store_logoobject— The store’s logo.titlestring— Title for the logo. Configure the text in the control panel under Storefront Design Design Options Logo.imageobject(external ref)
store_namestring— Name of the BigCommerce store.store_time_zonestring— Storeʼs time zone, as selected in the control panelʼs Your Timezone dropdown list.storefront_apiobjecttokenstring
tax_labelstring— Defines the Tax Label (VAT, Sales Tax, etc.) that a merchant can set in the control panel’s Settings > Tax page for display to customers.theme_config_idstringtheme_session_idstringtheme_version_idstring
shipments
{{shipments}} array available to templates/pages/account/orders/details.html
shipping_messages
{{shipping_messages}} object available to templates/pages/home.html
shop_by_brand
Objects to enable customers to shop by brand. Returns top 10 brands, by product count. (Called on the default templates/components/brand/sidebar.html and templates/components/common/footer.html partials.)
global {{shop_by_brand}} array of top 10 brands by product count.
Handlebars Expression: {{shop_by_brand}}
sitemap
A list of all sitemap properties for this BigCommerce storefront: pages, categories, and brands.
{{sitemap}} object available to templates/pages/sitemap.html.
Handlebars Expression: {{sitemap}}
social_media
global {{social_media}} array of all social-media site links for the storefront.
Handlebars Expression: {{social_media}}
template_file
global {{template_file}} string
theme_settings
global {{theme_settings}} object
Properties:
alert-backgroundColorstringalert-colorstringalert-color-altstringapplePay-buttonstringblockquote-cite-font-colorstringblog_sizestringbody-bgstringbody-fontstringbrand_sizestringbrandpage_products_per_pageintegerbutton--default-borderColorstringbutton--default-borderColorActivestringbutton--default-borderColorHoverstringbutton--default-colorstringbutton--default-colorActivestringbutton--default-colorHoverstringbutton--disabled-backgroundColorstringbutton--disabled-borderColorstringbutton--disabled-colorstringbutton--icon-svg-colorstringbutton--primary-backgroundColorstringbutton--primary-backgroundColorActivestringbutton--primary-backgroundColorHoverstringbutton--primary-colorstringbutton--primary-colorActivestringbutton--primary-colorHoverstringcard--alternate-backgroundColorstringcard--alternate-borderColorstringcard--alternate-color--hoverstringcard-figcaption-button-backgroundstringcard-figcaption-button-colorstringcard-title-colorstringcard-title-color-hoverstringcarousel-arrow-bgColorstringcarousel-arrow-borderColorstringcarousel-arrow-colorstringcarousel-bgColorstringcarousel-description-colorstringcarousel-dot-bgColorstringcarousel-dot-colorstringcarousel-dot-color-activestringcarousel-title-colorstringcategorypage_products_per_pageintegercheckRadio-backgroundColorstringcheckRadio-borderColorstringcheckRadio-colorstringcolor-blackstringcolor-errorstringcolor-errorLightstringcolor-greystringcolor-greyDarkstringcolor-greyDarkerstringcolor-greyDarkeststringcolor-greyLightstringcolor-greyLighterstringcolor-greyLighteststringcolor-greyMediumstringcolor-infostringcolor-infoLightstringcolor-primarystringcolor-primaryDarkstringcolor-primaryDarkerstringcolor-primaryLightstringcolor-secondarystringcolor-secondaryDarkstringcolor-secondaryDarkerstringcolor-successstringcolor-successLightstringcolor-textBasestringcolor-textBase--activestringcolor-textBase--hoverstringcolor-textHeadingstringcolor-textLinkstringcolor-textLink--activestringcolor-textLink--hoverstringcolor-textSecondarystringcolor-textSecondary--activestringcolor-textSecondary--hoverstringcolor-warningstringcolor-warningLightstringcolor-whitestringcolor-whitesBasestringcolor_badge_product_sale_badgesstringcolor_hover_product_sale_badgesstringcolor_text_product_sale_badgesstringcontainer-border-global-color-basestringcontainer-fill-basestringcontainer-fill-darkstringdefault_image_brandstringdefault_image_gift_certificatestringdefault_image_productstringdropdown--quickSearch-backgroundColorstringdropdown--wishList-backgroundColorstringfontSize-h1integerfontSize-h2integerfontSize-h3integerfontSize-h4integerfontSize-h5integerfontSize-h6integerfontSize-rootintegerfooter-backgroundColorstringform-label-font-colorstringgallery_sizestringgeotrust_ssl_common_namestringgeotrust_ssl_seal_sizestringheader-backgroundColorstringheadings-fontstringhide_blog_page_headingbooleanhide_breadcrumbsbooleanhide_category_page_headingbooleanhide_contact_us_page_headingbooleanhide_content_navigationbooleanhide_page_headingbooleanhomepage_blog_posts_countintegerhomepage_featured_products_column_countintegerhomepage_featured_products_countintegerhomepage_new_products_column_countintegerhomepage_new_products_countintegerhomepage_show_carouselbooleanhomepage_show_carousel_arrowsbooleanhomepage_stretch_carousel_imagesbooleanhomepage_top_products_column_countintegerhomepage_top_products_countintegericon-colorstringicon-color-hoverstringicon-ratingEmptystringicon-ratingFullstringinput-bg-colorstringinput-border-colorstringinput-border-color-activestringinput-disabled-bgstringinput-font-colorstringlabel-backgroundColorstringlabel-colorstringloadingOverlay-backgroundColorstringlogo-positionstringlogo_fontSizeintegerlogo_sizestringnavPages-colorstringnavPages-color-hoverstringnavPages-subMenu-backgroundColorstringnavPages-subMenu-separatorColorstringnavUser-colorstringnavUser-color-hoverstringnavUser-dropdown-backgroundColorstringnavUser-dropdown-borderColorstringnavUser-indicator-backgroundColorstringnavigation_designstringoptimizedCheckout-backgroundImagestringoptimizedCheckout-backgroundImage-sizestringoptimizedCheckout-body-backgroundColorstringoptimizedCheckout-buttonPrimary-backgroundColorstringoptimizedCheckout-buttonPrimary-backgroundColorActivestringoptimizedCheckout-buttonPrimary-backgroundColorDisabledstringoptimizedCheckout-buttonPrimary-backgroundColorHoverstringoptimizedCheckout-buttonPrimary-borderColorstringoptimizedCheckout-buttonPrimary-borderColorActivestringoptimizedCheckout-buttonPrimary-borderColorDisabledstringoptimizedCheckout-buttonPrimary-borderColorHoverstringoptimizedCheckout-buttonPrimary-colorstringoptimizedCheckout-buttonPrimary-colorActivestringoptimizedCheckout-buttonPrimary-colorDisabledstringoptimizedCheckout-buttonPrimary-colorHoverstringoptimizedCheckout-buttonPrimary-fontstringoptimizedCheckout-buttonSecondary-backgroundColorstringoptimizedCheckout-buttonSecondary-backgroundColorActivestringoptimizedCheckout-buttonSecondary-backgroundColorHoverstringoptimizedCheckout-buttonSecondary-borderColorstringoptimizedCheckout-buttonSecondary-borderColorActivestringoptimizedCheckout-buttonSecondary-borderColorHoverstringoptimizedCheckout-buttonSecondary-colorstringoptimizedCheckout-buttonSecondary-colorActivestringoptimizedCheckout-buttonSecondary-colorHoverstringoptimizedCheckout-buttonSecondary-fontstringoptimizedCheckout-colorFocusstringoptimizedCheckout-contentPrimary-colorstringoptimizedCheckout-contentPrimary-fontstringoptimizedCheckout-contentSecondary-colorstringoptimizedCheckout-contentSecondary-fontstringoptimizedCheckout-discountBanner-backgroundColorstringoptimizedCheckout-discountBanner-iconColorstringoptimizedCheckout-discountBanner-textColorstringoptimizedCheckout-form-textColorstringoptimizedCheckout-formChecklist-backgroundColorstringoptimizedCheckout-formChecklist-backgroundColorSelectedstringoptimizedCheckout-formChecklist-borderColorstringoptimizedCheckout-formChecklist-colorstringoptimizedCheckout-formField-backgroundColorstringoptimizedCheckout-formField-borderColorstringoptimizedCheckout-formField-errorColorstringoptimizedCheckout-formField-inputControlColorstringoptimizedCheckout-formField-placeholderColorstringoptimizedCheckout-formField-shadowColorstringoptimizedCheckout-formField-textColorstringoptimizedCheckout-header-backgroundColorstringoptimizedCheckout-header-borderColorstringoptimizedCheckout-header-textColorstringoptimizedCheckout-headingPrimary-colorstringoptimizedCheckout-headingPrimary-fontstringoptimizedCheckout-headingSecondary-colorstringoptimizedCheckout-headingSecondary-fontstringoptimizedCheckout-link-colorstringoptimizedCheckout-link-fontstringoptimizedCheckout-link-hoverColorstringoptimizedCheckout-loadingToaster-backgroundColorstringoptimizedCheckout-loadingToaster-textColorstringoptimizedCheckout-logostringoptimizedCheckout-logo-positionstringoptimizedCheckout-logo-sizestringoptimizedCheckout-orderSummary-backgroundColorstringoptimizedCheckout-orderSummary-borderColorstringoptimizedCheckout-show-backgroundImagebooleanoptimizedCheckout-show-logostringoptimizedCheckout-step-backgroundColorstringoptimizedCheckout-step-borderColorstringoptimizedCheckout-step-textColorstringoverlay-backgroundColorstringpace-progress-backgroundColorstringpaymentbuttons-paypal-colorstringpaymentbuttons-paypal-fundingiconsbooleanpaymentbuttons-paypal-labelstringpaymentbuttons-paypal-layoutstringpaymentbuttons-paypal-shapestringpaymentbuttons-paypal-sizestringpaymentbuttons-paypal-taglinebooleanpdp-custom-fields-tab-labelstringpdp-non-sale-price-labelstringpdp-price-labelstringpdp-retail-price-labelstringpdp-sale-price-labelstringprice_rangesbooleanproduct_list_display_modestringproduct_sale_badgesstringproduct_sizestringproductgallery_sizestringproductpage_related_products_countintegerproductpage_reviews_countintegerproductpage_similar_by_views_countintegerproductpage_videos_countintegerproductthumb_sizestringproductview_thumb_sizestringrestrict_to_loginbooleansearchpage_products_per_pageintegerselect-arrow-colorstringselect-bg-colorstringshop_by_brand_show_footerbooleanshop_by_price_visibilitybooleanshow_accept_amexbooleanshow_accept_discoverbooleanshow_accept_mastercardbooleanshow_accept_paypalbooleanshow_accept_visabooleanshow_copyright_footerbooleanshow_custom_fields_tabsbooleanshow_powered_bybooleanshow_product_details_tabsbooleanshow_product_dimensionsbooleanshow_product_quantity_boxbooleanshow_product_quick_viewbooleanshow_product_reviewsbooleanshow_product_weightbooleansocial_icon_placement_bottomstringsocial_icon_placement_topbooleanspinner-borderColor-darkstringspinner-borderColor-lightstringstoreName-colorstringsupported_card_type_iconsarrayswatch_option_sizestringthumb_sizestringzoom_sizestring
urls
global {{urls}} object containing a collection of storefront pages and their sub-pages
Properties:
accountobjectadd_addressstringaddressesstringdetailsstringinboxstringindexstringordersobjectallstringcompletedstringsave_new_returnstring
payment_methodsobjectallstring
recent_itemsstringreturnsstringsend_messagestringupdate_actionstringwishlistsobjectaddstringallstringdeletestringeditstring
authobjectcheck_loginstringcreate_accountstringforgot_passwordstringloginstringlogoutstringsave_new_accountstringsave_new_passwordstringsend_password_emailstring
brandsstringcartstringcheckoutobjectmultiple_addressstringsingle_addressstring
comparestringcontact_us_submitstringgift_certificateobjectbalancestringpurchasestringredeemstring
homestringproductobjectpost_reviewstring
searchstringsitemapstringsubscribeobjectactionstring
vault
{{vault}} object available to templates/pages/account/payment-methods.html.
Handlebars Expression: {{vault}}
Properties:
access_tokenstring— Required to submit add payment method form; otherwise, submission will fail with401Unauthorized.expires_atnumber— Expiration Date in Unix Timestamp.
wishlist
Wishlist information for a specific wishlist. (Called on the default templates/pages/account/wishlist-details.html template and the templates/components/account/wishlist-item-list.html partial.)
Handlebars Expression: {{wishlist}}
Properties:
idnumber— Unique system ID for the wishlist.is_editablebooleanis_publicboolean— Boolean value indicating whether the wishlist is publicly available.itemsarrayadd_to_cart_urlstringadd_to_wishlist_urlstringavailabilityobjectbrandobjectnameobject
custom_fieldsarrayidnumbernamestringvaluestring
date_addedstringdemobooleanhas_optionsbooleanidnumberimageobject(external ref)imagesarraylow_stock_levelobjectnamestringnum_reviewsobjectpre_orderbooleanpriceobjecttax_labelstringwithout_taxobjectcurrencystringformattedstringvaluenumber
product_idnumberqty_in_cartnumberratingobjectremove_urlstring— URL to remove the product from the wishlist.show_cart_actionbooleanskuobjectstock_levelobjectsummarystringurlstringweightobjectformattedobjectvalueobject
namestring— Customer-defined name of the wishlist.paginationobjectcurrentnumberlinksarraynumbernumberurlstring
nextobjectpreviousobject
share_urlstring— URL used to share the wishlist.tokenstring— Unique public token for the wishlist.