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 template
Posted: 18 September 2011 11:10 AM   [ Ignore ]
Has a Nice Profile
Avatar
RankRank
Total Posts:  170
Joined  2010-04-02

hi there,

I can’t seem to get my paypal standard email message templates to work..
the email are sent, but somehow it’s not taking the order id…

here’s my “cart/_paypal_email” code:

{exp:channel:entries channel="orders" limit="1" status="not closed" entry_id="{order_id}"}
   
    
<h2>{title}</h2>

 
{order_items}
     {if item
:first_item}
      
<table class="orders_table">
            <
tbody>
     
{/if}
           
<tr>
            <
td>
             
{embed="cart/_img" emb_entry_id="{item:entry_id}" emb_width="70"}
            
</td>
            <
td class="no_wrap">{item:quantity} x </td>
            <
td class="no_wrap">{item:title} {warenkorb_groesse_{rc_language_code}}{item:product_options_matrix}<br /> 
{warenkorb_preis_{rc_language_code}}{item:price} {warenkorb_item_{rc_language_code}}</td>
           </
tr>
   
{if item:last_item}
             
</tbody>
         </
table>
     
{/if}
    {
/order_items}
    
<p>
     
{warenkorb_sub_total_{rc_language_code}}{order_subtotal}<br />
     
{warenkorb_versand_{rc_language_code}}{order_shipping}<br />
     <
span class="price">Total{order_total}</span><br />
     
{if order_coupons}Coupon{order_coupons} <br />{/if}
     
<span class="small">{emails_transaction_id_{rc_language_code}}{order_transaction_id}</span>  
     
{if order_error_message} | <br /> <span class="small alert">{order_error_message}</span>{/if}
    
</p>
    
    <
h2>{email_your_address_{rc_language_code}}</h2>
 <
p>
     
Email{order_customer_email}
     {if order_customer_phone}
<br />{gateway_telefon_{rc_language_code}}{order_customer_phone}{/if}
    
</p>
    
{/exp:channel:entries} 

I’ve tried entry_id=”{order_id}” AND entry_id=“ORDER_ID”

do you maybe have a sample email template?
or are there any docs on paypal standard email notifications?

cheers
stefan

[ Edited: 22 September 2011 12:52 PM by Chris Newton ]
Image Attachments
email_template.png
Profile
 
 
Posted: 18 September 2011 01:28 PM   [ Ignore ]   [ # 1 ]
Administrator
RankRank
Total Posts:  356
Joined  2010-01-21

This is mine:

{exp:channel:entries 
 channel
="orders" 
 
entry_id="ORDER_ID"
 
show_future_entries="yes" 
 
dynamic="no" 
 
status="not closed" 
 
limit="1"

Might be dynamic=“no” which is missing.

 Signature 

Freelance web designer & ExpressionEngine Pro Network developer

Profile
 
 
Posted: 19 September 2011 02:37 AM   [ Ignore ]   [ # 2 ]
Has a Nice Profile
Avatar
RankRank
Total Posts:  170
Joined  2010-04-02
John Faulds - 18 September 2011 01:28 PM

This is mine:

{exp:channel:entries 
 channel
="orders" 
 
entry_id="ORDER_ID"
 
show_future_entries="yes" 
 
dynamic="no" 
 
status="not closed" 
 
limit="1"

Might be dynamic=“no” which is missing.

I’ve tried a few things…
The template is rendering correctly if I omit the entry_id=“ORDER_ID” parameter. I mean if I type /cart/_paypal_email in my browser.
so I am pretty sure that my template should render…

I’ve added show future entries and dynamic=“no” to my channel:entries looks almost like yours now:

{exp:channel:entries channel="orders" entry_id="ORDER_ID" limit="1" status="not closed" show_future_entries="yes" dynamic="no"

but somehow it’s not transmitting the order_id…
is it because I am using paypal sandbox?

Profile
 
 
Posted: 19 September 2011 02:47 AM   [ Ignore ]   [ # 3 ]
Administrator
RankRank
Total Posts:  356
Joined  2010-01-21

I never use the sandbox myself so couldn’t really say. Probably need Chris or Rob to answer that one for you.

 Signature 

Freelance web designer & ExpressionEngine Pro Network developer

Profile
 
 
Posted: 19 September 2011 02:48 AM   [ Ignore ]   [ # 4 ]
Has a Nice Profile
Avatar
RankRank
Total Posts:  170
Joined  2010-04-02
John Faulds - 19 September 2011 02:47 AM

I never use the sandbox myself so couldn’t really say. Probably need Chris or Rob to answer that one for you.

That’d be nice…

Profile
 
 
Posted: 19 September 2011 10:42 AM   [ Ignore ]   [ # 5 ]
Has a Nice Profile
Avatar
RankRank
Total Posts:  170
Joined  2010-04-02

I’ve tried everything…
synchronized templates.
created a new template.
tested the template in the browser… but somehow the entry_id=“ORDER_ID” does not seem to work.
the email get’s sent, but there’s nothing of the exp:channel:entries loop that get’s rendered… it get’s no results…

here’s my full template:

<h2>{email_congratulations_to_your_purchase_{rc_language_code}}</h2>

{exp:channel:entries channel="orders" entry_id="ORDER_ID" limit="1" status="not closed" show_future_entries="yes" dynamic="no"}
   
 
<h2>{title}</h2>

 
{order_items}
     {if item
:first_item}
      
<table class="orders_table">
            <
tbody>
     
{/if}
           
<tr>
            <
td>
             
{embed="cart/_img" emb_entry_id="{item:entry_id}" emb_width="70"}
            
</td>
            <
td class="no_wrap">{item:quantity} x </td>
            <
td class="no_wrap">{item:title} {warenkorb_groesse_{rc_language_code}}{item:product_options_matrix}<br />
 
{warenkorb_preis_{rc_language_code}}{item:price} {warenkorb_item_{rc_language_code}}</td>
           </
tr>
   
{if item:last_item}
             
</tbody>
         </
table>
     
{/if}
    {
/order_items}
    
<p>
     
{warenkorb_sub_total_{rc_language_code}}{currency_symbol} {order_subtotal}<br />
     
{warenkorb_versand_{rc_language_code}}{currency_symbol} {order_shipping}<br />
     <
span class="price">Total{currency_symbol} {order_total}</span><br />
     
{if order_coupons}Coupon{order_coupons} <br />{/if}
     
<span class="small">{emails_transaction_id_{rc_language_code}}{order_transaction_id}</span>  
     
{if order_error_message} | <br /> <span class="small alert">{order_error_message}</span>{/if}
    
</p>
    
    <
h2>{email_your_address_{rc_language_code}}</h2>
 <
p>
     
Email{order_customer_email}
     {if order_customer_phone}
<br />{gateway_telefon_{rc_language_code}}{order_customer_phone}{/if}
    
</p>
    
    <
h2>{gateway_shippment_address_{rc_language_code}}</h2>
    <
p>
     
{if order_billing_company}{order_billing_company}<br />{/if}
     {order_billing_first_name} {order_billing_last_name}
<br />
     
{order_billing_address} <br />
     
{if order_billing_address2}{order_billing_address2}<br />{/if}
     {order_billing_country_code}
-{order_billing_zip} {order_billing_city}<br />
     
{order_billing_state}
    
</p>
    
{if order_remarks}
     
<h2>{gateway_bemerkungen_{rc_language_code}}:</h2>
     <
p>{order_remarks}</p>
    
{/if}
    
{
/exp:channel:entries} 

and here’s my paypal standard settings (I’ve disabled the other notification emails)

what on earth could I be doing wrong?
cheers
stefan

[ Edited: 22 September 2011 12:52 PM by Chris Newton ]
Image Attachments
paypal_settings.png
Profile
 
 
Posted: 20 September 2011 03:21 PM   [ Ignore ]   [ # 6 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10256
Joined  2008-09-29

Try this. Just use submitted_order_info. Get rid of channel entries loop. Submitted order info does a few things that the channel entries does not… basically it attempts to simplify accessing the order data without passing anything in. It also doesn’t care about channel entry status (which can be a problem)

{exp:cartthrob:submitted_order_info}
 
 
<h2>{title}</h2>

 
{order_items}
  {if item
:first_item}
   
<table class="orders_table">
    <
tbody>
  
{/if}
   
<tr>
   <
td>
   
{embed="cart/_img" emb_entry_id="{item:entry_id}" emb_width="70"}
   
</td>
   <
td class="no_wrap">{item:quantity} x </td>
   <
td class="no_wrap">{item:title} {warenkorb_groesse_{rc_language_code}}{item:product_options_matrix}<br /> 
{warenkorb_preis_{rc_language_code}}{item:price} {warenkorb_item_{rc_language_code}}</td>
   </
tr>
  
{if item:last_item}
   
</tbody>
   </
table>
  
{/if}
 {
/order_items}
 
<p>
  
{warenkorb_sub_total_{rc_language_code}}{order_subtotal}<br />
  
{warenkorb_versand_{rc_language_code}}{order_shipping}<br />
  <
span class="price">Total{order_total}</span><br />
  
{if order_coupons}Coupon{order_coupons} <br />{/if}
  
<span class="small">{emails_transaction_id_{rc_language_code}}{order_transaction_id}</span>  
  
{if order_error_message} | <br /> <span class="small alert">{order_error_message}</span>{/if}
  
</p>

  <
h2>{email_your_address_{rc_language_code}}</h2>
  <
p>
  
Email{order_customer_email}
  {if order_customer_phone}
<br />{gateway_telefon_{rc_language_code}}{order_customer_phone}{/if}
 
</p>

{/exp:cartthrob:submitted_order_info}

    
{
/exp:channel:entries} 

Try this, if it does not work, I will log into your system and figure out what’s going on. Apologies for the trouble. We need to update our auto-install templates to reflect some of our ongoing changes, especially to PayPal and the order process.

[ Edited: 22 September 2011 12:52 PM by Chris Newton ]
 Signature 

We’re moving away from the forums, though not entirely and not immediately. Lack of support lately is coincidental to that. Unfortunately we’ve had a bad month with it, but we do not forsee that we will have any continued problems with support through our portal going forward, or on forums while we’re still transitioning. We will send out a newsletter and make additional notifications through twitter and other outlets over the coming weeks.

Moving forward; things returning to normal.

Profile
 
 
Posted: 22 September 2011 01:58 AM   [ Ignore ]   [ # 7 ]
Has a Nice Profile
Avatar
RankRank
Total Posts:  170
Joined  2010-04-02
Chris Newton - 20 September 2011 03:21 PM

Try this. Just use submitted_order_info. Get rid of channel entries loop. Submitted order info does a few things that the channel entries does not… basically it attempts to simplify accessing the order data without passing anything in. It also doesn’t care about channel entry status (which can be a problem)

...

Try this, if it does not work, I will log into your system and figure out what’s going on. Apologies for the trouble. We need to update our auto-install templates to reflect some of our ongoing changes, especially to PayPal and the order process.

Thanks a lot! that was it…

I even tried a few more things, but the “channel:entries” loop never worked…
well @ least it works! yeah!

one more final question:
If I want to send an email to the buyer and the shop owner. what’s best practice?
1. create a second row in the payments email notification settings (see image), or
2. add the admin email with a comma to the “To Email” field ({customer_email}, .(JavaScript must be enabled to view this email address))?

cheers
our shop is online now!

Image Attachments
email_settings.png
Profile
 
 
Posted: 22 September 2011 12:56 PM   [ Ignore ]   [ # 8 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10256
Joined  2008-09-29

1. Yes. A second row. Exactly.

2. You could also do this. I *prefer* myself to make 2 different rows.

 Signature 

We’re moving away from the forums, though not entirely and not immediately. Lack of support lately is coincidental to that. Unfortunately we’ve had a bad month with it, but we do not forsee that we will have any continued problems with support through our portal going forward, or on forums while we’re still transitioning. We will send out a newsletter and make additional notifications through twitter and other outlets over the coming weeks.

Moving forward; things returning to normal.

Profile
 
 
Posted: 22 September 2011 01:23 PM   [ Ignore ]   [ # 9 ]
Has a Nice Profile
Avatar
RankRank
Total Posts:  170
Joined  2010-04-02
Chris Newton - 22 September 2011 12:56 PM

1. Yes. A second row. Exactly.

2. You could also do this. I *prefer* myself to make 2 different rows.

thanks! I made a mix of both… one client email and 2 admin emails. HA!

apparently it’s all working out as expected!
yee-haa!

 

Profile