abandoned_carts

abandoned_carts

Returns a user's abandoned cart and cart items.

Example

[%abandoned_carts return:'customer'%]
    [%param cart_track_id%][@cart_track_ids@][%/param%]
    [%param *header%]
      <table width="100%" border="0" cellspacing="0" cellpadding="4">
    [%/param%]
    [%param *body%]
      <tr>
        <td width="5%" valign="top"><img border="0" src="https://developers.neto.com.au/[%asset_url type:'product' id:'[@SKU@]' thumb:'thumb'%][%END asset_url%]" alt="[@model@]" width="50px"  height="50px"></td>
        <td width="95%" valign="top">[@qty@] x <a href="[@URL@]" target="_blank">[@model@]</a><br>[@store_price@]</td>
      </tr>
    [%/param%]
    [%param *footer%]
      </table>
    [%/param%]
    [%param *ifempty%]
      No products found
    [%/param%]
[%/abandoned_carts%]

Usage

Used exclusively in the abandoned cart email, this email will be sent to any customer who has abandoned their cart who is either an existing user or has entered their email address at the checkout asking them if they would like to continue their purchase.

The [@cart_track_ids@] tag contains the ID number of the shopping cart. This as passed to the email template.

Parameters

Name Options Description
return:'' HTML & b@se tags Required parameter. If 'customer' is not specified, kit components will not display
cart_track_id Integer ID number of the shopping cart
*header HTML & b@se tags Renders a single usable space above the body
*body HTML & b@se tags Runs an array for each option in the tag
*footer HTML & b@se tags Renders a single usable space below the body
*ifempty HTML & b@se tags If their are no abandoned products, this block is printed in place of the header, body & footer
Name Order Field Example Description
[@cart_code@] Mq7LZOdW The unique cart code, can be used to recreate the cart view via URL
[@cart_id@] 317 The database specific cart ID
[@date_updated@] 2018-08-07 13:25:17 The last time the customer accessed the checkout page (YYYY-MM-DD HH:MM:SS)
[@group_id@] 1 The ID number of the group the customer belongs to. If the customer is not logged in, then the default customer group is returned
[@username@] Customer billsmith The customer's username. If the customer has not logged in or does not have an account, then noreg is returned

Data tags (body)

Name Order Field Example Description
[@brand@] Apple The product brand
[@cart_code@] Mq7LZOdW The unique cart code, can be used to recreate the cart view via URL
[@cart_id@] 317 The database specific cart ID
[@date_updated@] 2018-08-07 13:25:17 The last time the customer accessed the checkout page (YYYY-MM-DD HH:MM:SS)
[@group_id@] 1 The ID number of the group the customer belongs to. If the customer is not logged in, then the default customer group is returned
[@inventory_id@] 1724 The database specific ID for the product
[@kit_items@] MD819AM|MD811X Kit specific items
[@kit_qtys@] 1|1 Kit specific quantities
[@model@] Name iPhone X 64GB Black Product name
[@qty@] Qty 1 Number of this product added to the cart
[@sku@] SKU A1865 Product SKU
[@store_price@] Price 999 Item's store price
[@url@] http://www.mystore.com/iphone-x-64gb-blank Web address for the product page
[@username@] Customer billsmith The customer's username. If the customer has not logged in or does not have an account, then noreg is returned

Was this article useful?

Be notified when this page is updated. Optional.