Code: Select all
UserName: $user.UserName
<br />
Item Count: $basket.Items.Count
Please take a backup of your existing Website\Admin\Reports\DailyAbandonedBaskets.aspx file first.
Code: Select all
UserName: $user.UserName
<br />
Item Count: $basket.Items.Count
Code: Select all
if (emailTemplates.Count > 0)
{
emailTemplates[0].Parameters.Add("store", Token.Instance.Store);
emailTemplates[0].Parameters.Add("user", basket.User);
// Add another parameter so that user data could be accessed with customer keyword
emailTemplates[0].Parameters.Add("customer", basket.User);
emailTemplates[0].Parameters.Add("basket", basket);
//Comment out the below line, no need for it after adding the customer parameter
//emailTemplates[0].ToAddress = basket.User.UserName;
emailTemplates[0].Send();
}
Code: Select all
$customer.UserName
Where exactly would this be placed in the AbandonedBasketsAlert file? I have not looked at the file yet, so this may be obvious.That's a valid point. I think we should make a small enhancement to the report. You can specify the customer keyword in the ToAddress of the Email Template at EditEmailTempalte page. Now made a small modification in the report and add a new customer parameter as well and comment out the code line which is setting the ToAddress manually through code as below
Code: Select all
if (emailTemplates.Count > 0) { emailTemplates[0].Parameters.Add("store", Token.Instance.Store); emailTemplates[0].Parameters.Add("user", basket.User); // Add another parameter so that user data could be accessed with customer keyword emailTemplates[0].Parameters.Add("customer", basket.User); emailTemplates[0].Parameters.Add("basket", basket); //Comment out the below line, no need for it after adding the customer parameter //emailTemplates[0].ToAddress = basket.User.UserName; emailTemplates[0].Send(); }
Code: Select all
if (emailTemplates.Count > 0)
{
...................
.........................
}
Brewhaus or AC, does the the old file still work in 7.0.2?Brewhaus wrote:What changes should be made to the old file to bring it up to 7.0.2?
We also use our 7.0 Default.aspx file in the main folder. This was a very basic file, so I assume that it should be fine?
What about for new users who enter their billing information but don't submit their order? Are those users also captured by these modifications?mazhar wrote:It is possible to send the registered users Email alert for their Abandoned basket.
Code: Select all
<html>
<head>
<style type="text/css">
TABLE.Email {
width: 640px;
padding: 5px;
margin: 0px;
border: 1px solid #5872CB;
}
TABLE.Email TH {
font-weight: bold;
font-size: 12px;
color: #ffffff;
font-family: Arial, Verdana, Sans-Serif;
font-style: strong;
background-color: #304FBA;
text-align: center;
text-decoration: none;
padding: 5px;
}
TABLE.Email TD {
font-weight: normal;
font-size: 12px;
color: #000000;
font-family: Arial, Verdana, Sans-Serif;
background-color: #ffffff;
text-align: left;
text-decoration: none;
padding: 3px;
}
</style>
</head>
<body>
<table class="Email" width="600px" align="center">
<tr>
<td>
<img src="http://www.officeplayground.com/Assets/NavGraphics/opg_logo_website_noTM-3.gif">
</td></tr>
<td style="background-color: #f8981c; border-top: 1px solid #dca686; border-bottom: 0;width: 600px;text-align: left;height: 24px; width:600px; align:center;>
<div style="float:left; background-color: #f8981c; color: #013a84; font-family: Tahoma, Arial, Verdana, Helvetica, sans-serif; font-size: 9px; line-height: 24px; text-transform: uppercase;
font-weight: bold;
text-decoration: none;
text-align: center;
width: auto;
padding: 7px 12px 7px 12px;">
<a href="http://www.officeplayground.com/Default.aspx" class="tab">Home</a>
<a href="http://www.officeplayground.com/Search.aspx" class="tab">Product Finder</a>
<a href="http://www.officeplayground.com/AdvancedSearch.aspx" class="tab">Advanced Search</a>
<a href="http://www.officeplayground.com/ContactUs.aspx" class="tab">Contact Us</a>
#if($customer.IsAnonymous)
<a href="http://www.officeplayground.com/Login.aspx" class="login">Login</a>
#else
<a href="http://www.officeplayground.com/Logout.aspx" class="login">Logout</a>
#end
<a href="http://www.officeplayground.com/Members/MyAccount.aspx" class="acct">Account</a>
<a href="http://www.officeplayground.com/Members/MyWishlist.aspx" class="wishlist">Wishlist</a>
<a href="http://www.officeplayground.com/Basket.aspx" class="basket">Cart</a>
#if($customer.IsAdmin)
<a href="http://www.officeplayground.com/Admin/Default.aspx" class="admin">Admin</a>
#end
</table>
<table class="Email" align="center" width="600px">
<tr>
<td colspan="2" class="Email">
Dear $firstname
<br />
<p><strong><span style="font-size:14px; color:red;">We noticed $basket.Items.Count great items were left behind in your shopping cart at $store.Name.</strong></span></p>
<p> Did you encounter a problem checking out? Just in case you did, we have saved those items in your cart.</p>
<p>Your order contained the following products.<p>
<p>
<!-- *************************** -->
<!-- Do not change code between these two comments. If you need something changed contact Freeze Frame Graphics -->
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<tr>
<td style="background:#cccccc; color:#00000; text-align: center;"><strong>SKU</strong></td>
<td style="background:#cccccc; color:#00000; text-align: center;"><strong>Description</strong></td>
<td style="background:#cccccc; color:#00000; text-align: center;"><strong>Quantity</strong></td>
<td style="background:#cccccc; color:#00000; text-align: center;"><strong>Price</strong></td>
</tr>
<tbody>
#foreach($basketItem in $basket.Items)
<tr>
<td style="text-align:center;">$basketItem.Sku</td>
<td><b>$basketItem.Name</b></td>
<td>$basketItem.Quantity</td>
<td>$basketItem.Price.ToString("ulc")</td>
</tr>
#end
</tbody>
</table>
<!--*************************** -->
<!-- End of Do Not Change Code -->
</p>
<!--p><strong>Simply <a href="http://www.officeplayground.com/Basket.aspx">click here</a> to finish placing your order and we'll ship those wonderful items to you ASAP.</strong></p -->
<p>If you encounter any further issues in completing your order, please feel free to contact us at 1-800-458-1948 and one of our friendly customer service representatives will be happy to help you.
We look forward to seeing you again at $store.Name!</p>
<p>
Sincerely,
</p>
</td>
</tr>
</table>
<p> </p>
</body>
</html>