Objetos /
routes
Las rutas de la tienda, con los nombres de Shopify.
Dónde está
Global.
Propiedades
| Propiedad | Tipo | Qué es |
|---|---|---|
routes.root_url | texto | / |
routes.collections_url | texto | /collections |
routes.all_products_collection_url | texto | /collections/all |
routes.search_url | texto | /search |
routes.cart_url | texto | /cart |
routes.cart_add_url | texto | /cart/add |
routes.cart_change_url | texto | /cart/change |
routes.cart_update_url | texto | /cart/update |
routes.cart_clear_url | texto | /cart/clear |
Ejemplo
<a href="{{ routes.cart_url }}">Carrito ({{ cart.item_count }})</a>