- Getting Started
- Liquid reference
- Filters reference
- Tags reference
- Localization
- Theme structure
- Theme sections
- Theme assets
- Theme config
- Theme layout
- Theme templates
-
- article.liquid
- blog.liquid
- cart.liquid
- collection.liquid
- customer/account.liquid
- customer/addresses.liquid
- customer/details.liquid
- customer/login.liquid
- customer/order.liquid
- customer/register.liquid
- customer/reset-password.liquid
- home.liquid
- page.no-heading.liquid
- products.liquid
- search.liquid
- list-collections.liquid
- store-locator.liquid
- 404.liquid
- customer/activate_account.liquid
- customer/orders.liquid
- Submission
cart
The cart object has the following attributes:
cart.item_count
Returns the number of items inside the cart.
{{ cart.item_count }} cart items.
2 cart items.
cart.errors
Return the array of cart errors.
{% for error in cart.errors %}
Error : {{ error }}
{% endfor %}
Error : Seller has not set any payment gateway.
Error : Seller has not set any shipping method.
cart.total_price
Returns the total price of all of the items in the cart.
cart.currency
Return the currency of cart.
cart.items
Returns all of the line items in the cart. More info ›
cart.discount_applications
Returns an array of the discounts applied to the cart.
cart.total_discounts
Returns the total discount amount applied to the cart. Use one of the money filters to return the value in a monetary format.
cart.available_discount_codes
Returns an array of the discount codes available to apply to the cart.
cart.error_html
Returns the cart errors rendered as HTML.
cart.errors_code
Returns the array of cart error codes.