Orders
These replacements display item and order data, allowing iteration through order items.
Cart
The cart total and detail lines: items, discount coupons and promotions. Context: the communication has to be in the same activity as the cart.
${cart.total}
${ITERATOR;cart.items;item}
${item.name}
${item.quantity}
${item.unitary_price}
${item.total_price}
${ITERATOR;end}
${ITERATOR;cart.discounts;discount}
${discount.code}
${discount.name}
${discount.amount_discounted}
${ITERATOR;end}
${ITERATOR;cart.promotions;promotion}
${promotion.code}
${promotion.name}
${promotion.amount_discounted}
${ITERATOR;end} General Order Information
${order.activity_name}${order.description}to${order.description10}${order.exchange_center.description}${order.exchange_center.image_url}${order.exchange_center.name}${order.external_id}${order.message}${order.number}${order.state}${order.state_change_date}${order.type}
Order Address
${order.address.city}${order.address.country}${order.address.postalCode}${order.address.province}${order.address.street1}${order.address.street2}${order.address.type}
Order Shipping Address 2.0:
${order_ship_address_country}${order_ship_address_province}${order_ship_address_city}${order_ship_address_street1}${order_ship_address_street2}${order_ship_address_postalCode}${order_ship_address_type}
Order Billing Address Replacements:
${order_bill_address_country}${order_bill_address_province}${order_bill_address_city}${order_bill_address_street1}${order_bill_address_street2}${order_bill_address_postalCode}${order_bill_address_type}
Order Items
${item.code}${item.description1}to${item.description15}${item.long_description}${item.name}${item.quantity}${item.short_description}${item.sku_code}${item.tags}${item.total_price}${item.unitary_price}${item.voucher_code}${item.voucher_expiration_date}${item.voucher_parameter1},${item.voucher_parameter2},${item.voucher_parameter3}${item.voucher_state}
Order Item Iterator Structure
To iterate through items in an order, use the following structure:
${ITERATOR;order.items;item}
... [Item Replacements go here] ...
${ITERATOR;end}Order Payment
${order.payment.amount}${order.payment.currency}${order.payment.description}to${order.payment.description10}${order.payment.external_order_id}${order.payment.external_order_status}${order.payment.external_payment_id}${order.payment.external_payment_status}${order.payment.order_reference_code}${order.payment.payment_reference}${order.payment.state_description}${order.payment.tax}${order.payment.tax_return_base}
Order Promotions
${promotion.amount_discounted}${promotion.buy}${promotion.code}${promotion.end_date}${item.long_description}${promotion.max_items}${promotion.name}${promotion.pay}${promotion.start_date}
Order Promotions Iterator Structure
To iterate through promotions in an order, use the following structure:
${ITERATOR;order.promotions;promotion}
... [Promotion Replacements go here] ...
${ITERATOR;end}Full HTML Examples
Order Iterator:
<html>
<body>
<p> Hi ${location.profile.name:UPPERCASE}, how are you? </p>
<p> This is your item list: </p>
<ul>
${ITERATOR;order.items;item}
<li>
<p> ${item.name}, for the price of ${item.price} </p>
</li>
${ITERATOR;end}
</ul>
</body>
</html>Promotion Iterator:
<html>
<body>
<p> Hi ${location.profile.name:UPPERCASE}, how are you? </p>
<p> This is your promotion list: </p>
<ul>
${ITERATOR;order.promotions;promotion}
<li>
<p> ${promotion.name},discounted ${promotion. amount_discounted} </p>
</li>
${ITERATOR;end}
</ul>
</body>
</html>Last updated
Was this helpful?
