Skip to content

Cart And Checkout

Content below is copied from the official Neto/Maropost docs so you can edit and annotate it locally.


cart

Cart

Load specific values from the cart such as cart total

Example

[%cart id:'total_items'/%]

Usage

The cart function loads specific data from the cart depending on the ID selected.

Keep in mind that this prints the value when the page is rendered, meaning it won’t reflect updates made in the cart via Ajax, so if a customer updates their cart the details won’t be updated until the page is refreshed.

Data tag shortcut tip

You can call any of the values as a data tag with the following format [@cart:product_total@]. This is a faster and easier way to load the values and can be used with other tags such as if.

Parameters

NameOptionsDescription
id:''discount_total, grand_total, payment_method, payment_method_id, product_discount, product_total, shipping_cost, shipping_discount, shipping_method, shipping_method_id, shipping_total, total_items, voucher_creditThe ID to target for the cart data
Options
OptionExampleDescription
discount_total155.2Total of product and shipping discounts
grand_total1356.8Grand total of the order
payment_methodMasterCardSelected payment method
payment_method_id5Selected payment method ID number
product_discount150.2Product discount
product_total1502Product total prior to discount
shipping_cost10Shipping cost for the selected method
shipping_discount5Shipping discount total
shipping_methodStandard ShippingSelected shipping method name
shipping_method_id22Selected shipping method ID number
shipping_total5Shipping cost after discount has been applied
total_items2Total number of products on the order
voucher_credit50Gift Voucher credit applied to order

Your annotations

Use this section to note anything that’s incorrect in the official docs or extended by your implementation.