routes
Storefront URLs, with the language prefix where needed.
Available in: Every template.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
routes.root_url |
string | Home. |
routes.cart_url |
string | Cart page. |
routes.cart_add_url |
string | Add to cart (POST, or /cart/add.js). |
routes.cart_change_url |
string | Change a line. |
routes.cart_update_url |
string | Update quantities |
routes.cart_clear_url |
string | Empty the cart. |
routes.account_url |
string | Customer account. |
routes.account_login_url |
string | Sign in. |
routes.account_logout_url |
string | Sign out. |
routes.account_register_url |
string | Create an account. |
routes.account_addresses_url |
string | Addresses. |
routes.account_recover_url |
string | Reset password. |
routes.collections_url |
string | All collections. |
routes.all_products_collection_url |
string | All products. |
routes.search_url |
string | Search. |
routes.predictive_search_url |
string | Predictive search (JSON with ?q=, or HTML with section_id=). |
routes.product_recommendations_url |
string | Product recommendations. |
Example
Section titled “Example”<a href="{{ routes.cart_url }}">Cart</a><a href="/cart">Cart</a>Compatibility
Section titled “Compatibility”Shopify: Same as Shopify.
Since theme platform 1.0.
Was this page helpful?

