Theme object, methods, and props
$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.
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)
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 | |
Last modified 4yr ago