Please note that this page is meant to aid in theme development and may be very technical. As always, if you have any questions please let us know.

Site Wide Variables

These variables are available on every page of your site.

brands
All brands for a site

cart
The shopping cart

company_name
The site's company name

company_address
The site's company address

collections
All collections for a site

categories
All categories for a site

products
All products for a site

customer
References the currently logged in customer

is_admin?
Returns a true/false value that indicates of the user is a site administrator

path
The current url path for the page

canonical_url
The canonical_url for the current page. This is useful when working with things like collection or category pages where there might be filters or pagination. Search engines use this to determine what the actual url for the page is. See Use Canonical Urls for more information.

theme
Represents the theme being used to render the site

Page Specific Variables

The following variables are only available on certain pages.


product
The product currently being viewed
Usable on: products/show

Did this answer your question?