Theme object, methods, and props

Object

$shop
$shop.name
Returns the shop's name.
$shop.email
Returns the shop's email.
$shop.enabled_currencies
Returns the list of currency objects that the store accepts.

Methods

Routes
$routeToPath(path)
$routeToHome()
$routeToCollections()
$routeToCollection(collection)
$routeToProductWithAttribute(name, type)
$routeToProduct(product)
$routeToProductWithCollection(collection, product)
$routeToCart()
$routeToMyAccount()
$routeTopage()
​
Navigate
$navigateToAccount()
$navigateToCheckout()
​
Theme editor
$getPageSettings(page)
$getThemeSettings()
$getForceSettings()
$getFixedSettings(section)
​
Menu
$getMenu(handle)
​
Device
$getDevice()
$isMobile()
$isTablet()
$isDesktop()
​
Storage
$getStorage(key)
$setStorage(key, value)
​
Other
$resizeImage(url = '', height = '', width = '', crop = '', scale = '')
$changeCurrency(code)
$toggleOverlay(state)

Page component props

Home

Prop

Type

Description

featuredProducts

Array

​

featuredCollections

Array

​

collectionList

Array

​

Product

Prop

Type

Description

product

Object

​

variant

Object

​

description

String

​

availableOptions

Array

​

currentOption

Object

​

unavailableVariant

Boolean

​

unavailableOptionItems

Object

​

pages

Array

​

cartFormId

String

​

isPageFetching

Boolean

​

isDisabledAddCart

Boolean

​

isActiveOptionItem

Function

​

isCartItemAdded

Boolean

​

uploadProcess

Object

​

uploadAccept

String

​

validateProperties

Object

​

onChangeOption

Function

​

onChangeQuantity

Function

​

onChangeCustomOption

Function

​

onAddToCart

Function

​