Skip to content

routes object ​

Last updated View as Markdown

Allows you to generate standard URLs for the store front.

Properties ​


All URLs are root-relative paths (e.g. /cart), so they resolve against the current store domain.

NameTypeDescription
root_urlstringThe URL to the store home page
cart_add_urlstringThe URL to add to cart
cart_clear_urlstringThe URL to clear cart
cart_update_urlstringThe URL to update cart
cart_urlstringThe URL to list cart items
store_shipping_urlstringThe URL to store checkout shipping details
apply_coupon_urlstringThe URL to apply a coupon at checkout
collections_urlstringThe URL to the collections listing page
search_urlstringThe URL to the store search page
account_urlstringThe URL to the customer account page
account_login_urlstringThe URL to the login page
account_logout_urlstringThe URL to log out. A link or a form post
account_register_urlstringThe URL to the register page
account_recover_urlstringThe URL to the password recovery page
account_addresses_urlstringThe URL to the customer addresses page