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

Product

Last updated