Your account is limited to posting only in the Pre-Sales Questions forum.
Support forum access is limited to members with a purchase history.

If you are working on behalf of another member, please contact us with the name of the license holder and we will upgrade your account.
   
 
Sample Email Templates
Posted: 05 May 2010 01:42 AM   [ Ignore ]
Is a Really Great Dancer
RankRank
Total Posts:  99
Joined  2010-04-28

Is there any sample Email Notification templates that anyone is willing to share for Admin and Customer notification?

Thanks
Brendan

Profile
 
 
Posted: 05 May 2010 02:06 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  8342
Joined  2008-09-29

I can share mine. Hang on….
.
.
.
ok, I’m back with the templates.

Admin (nothing fancy here)

CartThrob was purchasedAll rejoice

{exp:weblog:entries weblog="orders" entry_id="ORDER_ID"}
    {title}
    {order_items
:table}
{
/exp:weblog:entries} 

Customer

<p>Thanks so much for your recent purchase of CartThrob!</p>

<
p>blah blah </p>

<
p>Basic Order Data:</p>
{exp:weblog:entries weblog="orders" entry_id="ORDER_ID" show_future_entries="yes"}
    
<p>{title}</p>
    
{order_items}
        
<p>{embed="cart/.email_notification_serial_number" author_id="{author_id}"}</p>
        <
p>Product{item:title}</p>
        <
p>Quantity{item:quantity}</p>
    
{/order_items}
{
/exp:weblog:entries} 

The embed used in the customer template

{exp:weblog:entries limit="1" dynamic="off" author_id="{embed:author_id}" weblog="purchased_items"}License Number{purchased_item_license}{/exp:weblog:entries} 
 Signature 

NOTE: If I say “I will look into x” and you PM me information, please do not hesitate to contact me again about it, if I do not respond in several hours, or at most a day. Please feel free to remind me as you see fit

Profile
 
 
Posted: 05 May 2010 02:09 AM   [ Ignore ]   [ # 2 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  8342
Joined  2008-09-29

The embed is kinda technically wrong… it sends the most recent purchased item license number. Realistically though, it’d be unusual for someone to be able to order AGAIN before this email gets sent out.

 Signature 

NOTE: If I say “I will look into x” and you PM me information, please do not hesitate to contact me again about it, if I do not respond in several hours, or at most a day. Please feel free to remind me as you see fit

Profile
 
 
Posted: 06 May 2010 09:03 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRank
Total Posts:  152
Joined  2010-01-19

Here’s mine. Although I’m working on a tidier one at the moment, just waiting for client sign off.

Note {global-currency-symbol} is my own Global Template Variable and nothing to do with CartThrob. Replace with the symbol of your choice!

<p><img src="http://myshop.co.uk/images/logo.jpg}" alt="Shop logo"></p>
<
p>Thank you for placing an order at the MyShop Web Shop.</p>

<
h2>Order details</h2>
<
hr>

{exp:weblog:entries weblog="orders" entry_id="ORDER_ID" show_future_entries="yes" status="not closed"}
 {if no_results}
 
<p>Something went wrongno order data found</p>
 
{/if}
 
<p>Order Number{title}</p>

 <
table width="600" cellspacing="0" cellpadding="3">
       <
thead>
        <
tr>
         <
th align="left">Product code</th>
         <
th align="left">Item name</th>
         <
th align="left">Quantity</th>
         <
th align="left">Price each</th>
         <
th align="left">Subtotal</th>
        </
tr>
       </
thead>
       <
tbody>

         
{order_items}
         
<tr class="itemrow">
         <
td></td>
         <
td>{item:title}</td>
            <
td>{item:quantity}</td>
         <
td>{global-currency-symbol}{item:price}</td>
         <
td>{exp:cartthrob:arithmetic operator="*" num1="{item:quantity}" num2="{item:price}"</td>
         </
tr>
         
{/order_items}

        
<tr>
         <
td colspan="4" style="text-align:right">Subtotal</td><td>{global-currency-symbol}{order_subtotal}</td>
        </
tr>
        <
tr>
         <
td colspan="4" style="text-align:right">Tax</td><td>{global-currency-symbol}{order_tax}</td>
        </
tr>
        <
tr>
         <
td colspan="4" style="text-align:right">Shipping</td><td>
          
{if order_shipping=="0.00"}
           FREE
          {if
:else}
           {global
-currency-symbol}{order_shipping}
          {
/if}
         
</td>
        </
tr>
        <
tr class="total">
         <
td colspan="4" style="text-align:right">Total</td><td>{global-currency-symbol}{order_total}</td>
        </
tr>
<
tr>
<
td colspan="5"><b>Additional Notes</b><br>{order_notes}</td></tr>
       </
tbody>
      </
table>

 
{if order_coupon}
      
<h4>Coupons</h4>
      <
p>A coupon was used for this order{order_coupon}</p>
 
{/if}
            
 
<h4>Shipping Address</h4>
 <
p>The order will be sent to:</p>
      
 
{if order_shipping_address!=""}
  
<class="shippingaddress">
  
{order_shipping_first_name} {order_shipping_last_name}<br />
  
{order_shipping_address}<br />
  
{if order_shipping_address2}{order_shipping_address2}<br>{/if}
  {order_shipping_city}
<br />
  
{order_shipping_state}
  {order_shipping_zip}
  
</p>
 
{if:else}
  
<class="shippingaddress">
  
{order_billing_first_name} {order_billing_last_name}<br />
  
{order_billing_address}<br />
  
{if order_billing_address2}{order_billing_address2}<br>{/if}
  {order_billing_city}
<br />
  
{order_billing_state}
  {order_billing_zip}
  
</p>
      
{/if}

{
/exp:weblog:entries}
<hr>
<
p>Your order will be despatched as soon as possible. If you have any questions regarding this orderplease contact our UK office on 01234 567 890 or email orders@myshop.co.uk quoting your order number
[ Edited: 10 May 2010 06:43 AM by Pete Eveleigh ]
 Signature 

Pete Eveleigh | Fantastic Machine | Gloucester, UK | vCard | Twitter

Profile
 
 
Posted: 10 May 2010 06:39 AM   [ Ignore ]   [ # 4 ]
Is a Really Great Dancer
RankRank
Total Posts:  99
Joined  2010-04-28

Thanks Pete

Mind telling me what {global-currency-symbol} is? I can’t find any reference to it in the tag docs.

Cheers
Brendan

Profile
 
 
Posted: 10 May 2010 06:42 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRank
Total Posts:  152
Joined  2010-01-19

Oh sorry. That’s a global template variable I set up. It’s so I can re-deploy the same site for multiple countries/currencies and only have to change that variable so my templates get updated.

I did this a while back before CartThrob had the ability to specify the currency symbol in the control panel.

I’ll update the code to get rid of that.

 Signature 

Pete Eveleigh | Fantastic Machine | Gloucester, UK | vCard | Twitter

Profile
 
 
Posted: 10 May 2010 07:12 AM   [ Ignore ]   [ # 6 ]
Is a Really Great Dancer
RankRank
Total Posts:  99
Joined  2010-04-28

Thanks for that. Is the {order_notes} field another custom field for the Orders weblog?

Profile
 
 
Posted: 10 May 2010 07:21 AM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRank
Total Posts:  152
Joined  2010-01-19

Yes, that’s correct.

 Signature 

Pete Eveleigh | Fantastic Machine | Gloucester, UK | vCard | Twitter

Profile
 
 
Posted: 10 May 2010 12:03 PM   [ Ignore ]   [ # 8 ]
Is a Really Great Dancer
RankRank
Total Posts:  99
Joined  2010-04-28

Am I missing something here? I had set the Customer Email Notifications to HTML, but anything received by my email client is showing up the html, head, styles etc etc as plain text rather than rendering the HTML

If I don’t have the <style> tag in the html head, I assume that we need to do inline styling for everything?

Thanks
Brendan

[ Edited: 10 May 2010 12:27 PM by ipixel ]
Profile
 
 
Posted: 10 May 2010 12:08 PM   [ Ignore ]   [ # 9 ]
Administrator
Avatar
RankRank
Total Posts:  152
Joined  2010-01-19

I have actually just finished fixing one of these.

You’ll have to just include what is in your body and put all the styles inline.

I don’t know why but something about the way EE creates an HTML email means that stuff that should work with HTML mail doesn’t actually get delivered as HTML.

 Signature 

Pete Eveleigh | Fantastic Machine | Gloucester, UK | vCard | Twitter

Profile
 
 
Posted: 10 May 2010 12:14 PM   [ Ignore ]   [ # 10 ]
Is a Really Great Dancer
RankRank
Total Posts:  99
Joined  2010-04-28

Ah crap. At least it means it will probably have a better chance of looking better in Outlook using in-line styling. Shame it doesn’t have the same sort of engine that Campaign Monitor uses where it transfers your stylesheet into inline styles on the fly.

Profile
 
 
Posted: 10 May 2010 12:35 PM   [ Ignore ]   [ # 11 ]
Administrator
Avatar
RankRank
Total Posts:  152
Joined  2010-01-19

It should be ok in Outlook with styles in thead. I think it’s just EE wrapping/encoding the email in some way. I don’t really know enough about how EE does email as I normally use an external mail class to handle sending mail from a website.

 Signature 

Pete Eveleigh | Fantastic Machine | Gloucester, UK | vCard | Twitter

Profile