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 ›

icon-accounticon-add-newicon-add-storeicon-appicon-appleicon-archiveicon-arrowdownicon-ascicon-bookicon-cancelicon-cart-addonicon-checkouticon-cherryicon-collectionicon-comfirmicon-confirmicon-couponicon-creditsicon-currencyicon-dashboardicon-discounticon-disintegrateicon-domainicon-dscicon-duplicateicon-editicon-emailicon-exclamation-triangleicon-exporticon-eyeicon-eye-slashicon-fullscreenicon-fullscreen-closeicon-generalicon-gifticon-gridicon-hddicon-helpicon-importicon-infoicon-integrationicon-invoiceicon-likeicon-listicon-locationicon-logouticon-new-tabicon-not-secureicon-optionicon-ordericon-outline-arrowdownicon-pageicon-paymenticon-plusicon-posicon-pricingicon-printericon-producticon-product-sumicon-product-sum-xicon-redirecticon-reporticon-reseticon-searchicon-secureicon-settingicon-shippingicon-staricon-storeicon-switch-storeicon-tagicon-taxesicon-templateicon-themeicon-tickicon-trashicon-unarchiveicon-uploadicon-user-tagicon-usersicon-weighticon-wholesale