cart - aareano/ifshop-wiki GitHub Wiki

This drop corresponds to Shopify's

missing properties

  • cart.attributes

additional properties

  • cart.shop


cart.item_count

Returns the number of items inside the cart.

Input

{{ cart.item_count }} {{ cart.item_count | pluralize: 'Item', 'Items' }} ({{ cart.total_price | money }})

Output

25 Items ($53.00)

cart.items

Returns all of the line items in the cart.


cart.note

The note on the cart.

Input

{{ note }}

Output

Hope you like the gift, Kylea!

cart.shop

Defined for the following events:

  • a cart is created
  • a cart is updated

Returns the shop drop.


cart.total_price

Returns the total price of all of the items in the cart.


cart.total_weight

Returns the total weight of all of the items in the cart in grams.