I am a Magento newbie and I am not much of a PHP guy either.
I am setting up abandoned cart emails in our magento site and it uses Abandoned Carts Pro extension to generate these abandoned cart tables. I want to change the format of the mail that would be sent, and I can't seem to understand how the email variables work.
Right now, the template at app/locale/en_US/template/email/abandoned_cart.html
looks like this:
<table cellspacing="0" cellpadding="0" border="0" width="650">
<tr>
<td valign="top">
<p><strong>Hello {{var customer_name}},</strong></p>
<p>Thank you for stopping by {{var website_name}} and considering us for your purchase. We noticed that during your visit to our store you placed the following item(s) in your shopping cart, but did not complete the transaction.</p>
<p>Shopping Cart Contents: </p>
<p>{{var products}}</p>
I want to add a tracking code to the product link that comes from {{url products}}
and I don't know where this code is being generated or how to change it. I have tried changing the product code to look like this, to check if any of these variables work:
<p>Shopping Cart Contents: </p>
<p>{{var products}}</p>
<p>{{var product_name}}</p>
<p>{{var product_url}}</p>
<p>{{var product_image}}</p>
<p>{{var product_url}}?utm_source=abandoned_cart&utm_medium=email</p>
but the variables are not working like the reference suggests. All I end up getting are empty <p>
tags with the analytics text.
How can I add the tracking code to product urls that would get generated?