Routes
The routes
object provides URLs for key store pages, such as account, cart, checkout, and blog.
Usage Example
{%- comment -%} Render navigation links using routes {%- endcomment -%}
<nav>
<ul>
<li><a href="{{ routes.account_url }}">Account</a></li>
<li><a href="{{ routes.cart_url }}">Cart</a></li>
<li><a href="{{ routes.checkout_url }}">Checkout</a></li>
<li><a href="{{ routes.blog_url }}">Blog</a></li>
<li><a href="{{ routes.catalog_url }}">Catalog</a></li>
</ul>
</nav>
Properties
account_edit_url
URL to user account edit page.
account_login_url
URL to user account login page.
account_logout_url
URL to sign out current user.
account_orders_url
URL to user account orders page.
account_password_change_url
URL to account password update.
account_password_recover_url
URL to account password recovery.
account_register_url
URL to register a new customer account.
account_url
URL to user account page.
account_wishlist_url
URL to user account wishlist page.
blog_url
URL to blog.
cart_url
URL to cart.
catalog_url
URL to catalog.
checkout_url
URL to checkout.
root_url
URL to store root.
search_url
URL to store search page.
Last updated on