Skip to content

routes object

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