Documentation / Theme editor / Global variables

All those variables can be used in output.

All global variables

General

Variable name

timestamp

Variable value

Timestamp in format "yyyyMMddHHmmssfff"

Store

Variable name

store.name
store.tracking.analytics
store.tracking.conversion
store.facebook.url
store.twitter.url
store.youtube.url
store.thumblr.url
store.pinterest.url
store.address
store.city
store.country
store.state
store.zip
store.phone
store.email
store.enableproductpurchase
store.enableaccountcreate
store.enableproductreview
store.enableguestcheckout
store.currency

Variable value

Store name
Analytics tracking code
Conversion tracking code
Facebook URL of the store
Twitter URL of the store
Youtube URL of the store
Thumblr URL of the store
Pinterest URL of the store
Store location's address
Store location's city
Store location's country
Store location's state/province
Store location's zip/postal code
Store location's phone number
Store location's email address
Enable product purchase
Enable customer account creation
Enable product review
Enable guest checkout
Store's default currency

Store Theme

Variable name

store.theme.carousel
store.theme.color.background
store.theme.color.font
store.theme.color.link
store.theme.color.linkhover
store.theme.color.price
store.theme.color.buttonback
store.theme.color.buttonbackhover
store.theme.color.buttonfont
store.theme.color.buttonfonthover
store.theme.color.productborder
store.theme.font
store.theme.inventorylevel
store.theme.newproducts
store.theme.paymentmethods
store.theme.productsperpage
store.theme.quicksearch
store.theme.relatedproducts
store.theme.rss
store.theme.sku
store.theme.styles
store.theme.thumbsincart
store.theme.thumbsize
store.theme.weight
store.theme.zoom

Variable value

Carousel markup
CSS : Background color
CSS : Font color
CSS : Link color
CSS : Link color (hover)
CSS : Price color
CSS : Button background color
CSS : Button background color (hover)
CSS : Button font color
CSS : Button font color (hover)
CSS : Product border color
Font family
Show inventory level (quantity in stock)
Show new products
Show payment methods
Number of products per page
Show quick search field
Show related products
Show RSS icon
Show SKU code
Theme styles markup
Show thumbs in cart
Thumb size (resolution)
Show product weight
Enable product image zoom

Page (and URL)

Variable name

page.backgroundimage
store.url
cdn.url
apps.url
main.url
secure.url
current.url
current.url.scheme

Variable value

URL of the specific background image for this page
Sotre's unsecured URL
Content Distribution Network URL
In-house apps URL
Main website URL
Store's secuerd URL
Current URL (secured or not) of the page
Current URL's scheme (http or https)

Cart

Variable name

cart.items.count
cart.items.subtotal
cart.items.subtotalformated

Variable value

Number of items in cart
Total ($) in cart
Total ($) in cart (currency formated)

Checkout

Variable name

checkout.step
checkout.stripe.publishableKey

Variable value

Current checkout step
Publishable key of stripe in store's settings