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.
   
1 of 2
1
URGENT: emails notifications sent to admin are blank
Posted: 10 May 2011 12:57 PM   [ Ignore ]
Has a Nice Profile
RankRank
Total Posts:  127
Joined  2011-03-23

Our store went live and the first order went through fine, the admin received the order email notification.

Then the next order the order was processed but the email that was sent to the admin was blank.  The customer;s name and email were correct in the headers, but the body was blank.

How could it work one for one order then all the rest are empty??

The order is correct within the weblog, just the email is all of a sudden empty and continues to be on all orders we have received since the first one.

here is the code that is being used:

<strong>{exp:weblog:entries weblog="orders" entry_id="ORDER_ID" show_future_entries="yes"}
<table width="600" border="0" cellpadding="0" cellspacing="0">
    <
tr>
        <
td style="color: #3D3C3E; font-family: Arial, sans-serif; font-size: 13px; line-height: 18px; vertical-align: top;">

            <
p style="margin: 0px 0px 10px 0px;">
You have received an order:</p>
        
            <
p style="margin: 0px 0px 10px 0px;">
            <
strong>Order ID:</strong{order_id}<br/>
          <
strong>Order Date:</strong{entry_date format="%F %d, %Y"}</p>
        
            <
table cellspacing="0" cellpadding="0" style="margin-bottom: 10px; width: 50%;">
                <
tr>
                    <
td  style="color: #3D3C3E; font-family: Arial, sans-serif; font-size: 13px; line-height: 18px;">
                        <
p><strong>Billing Address</strong><br/>
                        
{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}
{order_billing_state} {order_billing_zip}
                        {if order_billing_country}{order_billing_country}{
/if}</p>
                    </
td>

                    
{if order_shipping_address}
                    
<td style="color: #3D3C3E; font-family: Arial, sans-serif; font-size: 13px; line-height: 18px;">
                        <
p><strong>Shipping Address</strong><br/>
                        
{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}
{order_shipping_state} {order_shipping_zip}
                        {if order_shipping_country}{order_shipping_country}{
/if}</p>
                    </
td>
                    
{/if}
                
</tr>
            </
table>

            <
p style="margin: 0px 0px 10px 0px;">
            <
strong>Email Address:</strong{order_customer_email}</p>
        
            <
p style="margin: 0px 0px 10px 0px;"><strong>Total number of purchased items:</strong{order_items:total_results}</p>
        
            <
table cellspacing="0" cellpadding="0" style="color: #3D3C3E; font-family: Arial, sans-serif; font-size: 13px; line-height: 18px; margin-top: 30px; width: 100%;">
                <
thead>
                    <
tr>
                        <
th style="border-top: 1px solid #C1D72E; border-bottom: 1px solid #C1D72E;
                        color: #585845; font-weight: normal; padding: 5px; text-align: center; text-transform: uppercase; width: 10%;"
>Qty</th>
                        <
th style="border-top: 1px solid #C1D72E; border-bottom: 1px solid #C1D72E;
                        color: #585845; font-weight: normal; padding: 5px; text-align: left; text-transform: uppercase; width: 75%;"
>Item</th>
                        <
th style="border-top: 1px solid #C1D72E; border-bottom: 1px solid #C1D72E;
                        color: #585845; font-weight: normal; padding: 5px; text-align: left; text-transform: uppercase; width: 15%;"
>Price</th>
                    </
tr>
                </
thead>
                <
tbody>


                    <
tr class="{item:switch="odd|even"}">
                        <
td style="border-bottom: 1px dotted #C1D72E; padding: 10px 5px 10px 5px; text-align: center; vertical-align: top;">{item:quantity}</td>
                        <
td style="border-bottom: 1px dotted #C1D72E; padding: 10px 5px 10px 5px; vertical-align: top;">
                            <
span style="color: #2795A2; display: block; font-size: 14px; font-weight: normal;">{item:title}</span>
                            
{if "{item:product_size}" != ""}<span style="display: block; font-size: 11px; line-height: 16px;">Size{item:product_size}</span>{/if}
                        
</td>
                        <
td style="border-bottom: 1px dotted #C1D72E; padding: 10px 5px 10px 5px; vertical-align: top;">{item:price}</td>
                    </
tr>
                    
{/order_items}

                
<tfoot>
                    <
tr>
                        <
td colspan="2" style="padding: 10px 5px 0px 5px; text-align: right; vertical-align: top;">Subtotal:</td>
                        <
td style="padding: 10px 5px 0px 5px; text-align: left; vertical-align: top;">{order_subtotal}</td>
                    </
tr>
                    <
tr>
                        <
td colspan="2" style="padding: 0px 5px 0px 5px; text-align: right; vertical-align: top;">Tax:</td>
                        <
td style="padding: 0px 5px 0px 5px; text-align: left; vertical-align: top;">{order_tax}</td>
                    </
tr>
                    <
tr>
                        <
td colspan="2" style="padding: 0px 5px 0px 5px; text-align: right; vertical-align: top;">Shipping Handling:</td>
                        <
td style="padding: 0px 5px 0px 5px; text-align: left; vertical-align: top;">{order_shipping}</td>
                    </
tr>
        
                    
{if "{order_discount}" != "$0.00"}
                    
<tr>
                        <
td colspan="2" style="color: #C00; padding: 0px 5px 0px 5px; text-align: right; vertical-align: top;">Less Discount:</td>
                        <
td style="color: #C00; padding: 0px 5px 0px 5px; text-align: left; vertical-align: top;">({order_discount})</td>
                    </
tr>
                    
{/if}
    
                    
<tr>
                        <
td colspan="2" style="color: #2795A2; font-size: 16px;    font-weight: bold; line-height: 22px; padding: 5px 5px 10px 5px; text-align: right; vertical-align: top;">Order Total:</td>
                        <
td style="color: #2795A2; font-size: 16px;    font-weight: bold; line-height: 22px; padding: 5px 5px 10px 5px; text-align: left; vertical-align: top;">{order_total}</td>
                    </
tr>

                </
tfoot>
            </
table>
        </
td>
    </
tr>
</
table>  
{/exp:weblog:entries}</strong
[ Edited: 17 June 2011 11:25 AM by Rob Sanchez ]
Profile
 
 
Posted: 10 May 2011 01:18 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  8342
Joined  2008-09-29

Are the statuses of the orders set to something besides “open” If so, you’ll need to add that to your weblog entry.

{exp:weblog:entries weblog=“orders” status=“Completed_or_whatever” entry_id=“ORDER_ID” show_future_entries=“yes”}

 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: 10 May 2011 01:31 PM   [ Ignore ]   [ # 2 ]
Has a Nice Profile
RankRank
Total Posts:  127
Joined  2011-03-23

ok so the first order’s status was “closed” and the rest were “open” so it appears that my be the issue.

I have added:
status=“open|closed”/code]

But why was the first order “closed"and the rest “open”?

And why would the notification be set by default on a closed order and not a open order?

Peter

Profile
 
 
Posted: 10 May 2011 03:06 PM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  8342
Joined  2008-09-29

And why would the notification be set by default on a closed order and not a open order?

I never said that would be the case, so if they were marked as “open” to begin with, I’m unsure as to why they wouldn’t send now.

Looking at your code though, it looks like you have a closing order_items variable, but not an opening one. I’d try copying out your email code, putting it in a template to troubleshoot your template first. (change ORDER_ID to an entry id…. like 123 until you get the template fixed) Blank emails, or templates with errors won’t send out. Troubleshoot that template. Once it works in a standard template, then we can worry about the email part.

 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: 10 May 2011 03:26 PM   [ Ignore ]   [ # 4 ]
Has a Nice Profile
RankRank
Total Posts:  127
Joined  2011-03-23

I placed it in a template and hard coded the entry id:

{exp:weblog:entries weblog="orders" entry_id="569" show_future_entries="yes"

Order loads fine.  Only issue is the {order_id} does not display the Order ID but stays as {order_id}

What I am finding strange is that my first order sent the proper email and the order was defaulted to “closed”  and every order after that did not send an email with out anything in the body and those were set to “open”“

[ Edited: 10 May 2011 03:30 PM by eastwooddesign ]
Image Attachments
order.jpg
Profile
 
 
Posted: 10 May 2011 03:36 PM   [ Ignore ]   [ # 5 ]
Has a Nice Profile
RankRank
Total Posts:  127
Joined  2011-03-23

just wondering.  Could this have something to do with inventory?

If we only had inventory of 1 and the item was purchased, would that order weblog entry be closed compared to a purchase where there was still stock in inventory.  (ie: inventory of 10 in stock and 1 was purchased, that order entry would be set to OPEN?)

Profile
 
 
Posted: 10 May 2011 03:43 PM   [ Ignore ]   [ # 6 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  8342
Joined  2008-09-29

Order loads fine.  Only issue is the {order_id} does not display the Order ID but stays as {order_id}

I doubt you have an order_id field in your order weblog. It’s probably just {entry_id}

If we only had inventory of 1 and the item was purchased, would that order weblog entry be closed compared to a purchase where there was still stock in inventory.  (ie: inventory of 10 in stock and 1 was purchased, that order entry would be set to OPEN?)

Inventory has no effect on the status of order entries.

I’m sure I’ve asked before: what version of CT do you have installed?

 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: 10 May 2011 03:47 PM   [ Ignore ]   [ # 7 ]
Has a Nice Profile
RankRank
Total Posts:  127
Joined  2011-03-23
Chris Newton - 10 May 2011 03:43 PM

I’m sure I’ve asked before: what version of CT do you have installed?

0.9501

Profile
 
 
Posted: 12 May 2011 03:47 AM   [ Ignore ]   [ # 8 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  8342
Joined  2008-09-29

What I’d recommend at this point is “reduction testing”

Change your admin notification email something simple like… “You’ve just received a payment” and then put a simple weblog entry beneath it like…

{exp:weblog:entries weblog="orders" entry_id="ORDER_ID" show_future_entries ="yes" status="open|closed" }
{title}
<br /> 
{entry_id}
{
/exp:weblog:entries} 

Let’s reduce as many points of problems as we can. If that comes through then we know the problem is with the entries loop itself.

 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: 12 May 2011 03:03 PM   [ Ignore ]   [ # 9 ]
Has a Nice Profile
RankRank
Total Posts:  127
Joined  2011-03-23

ok I have changed the admin notification to your suggestion above.

also to note, I added status=“open|closed” to the admin notification and notification stopped being sent altogether.

First order was fine, next orders emails were sent bot nothing in the body, then added status=“open|closed” and no emails coming through at all.

Profile
 
 
Posted: 12 May 2011 03:10 PM   [ Ignore ]   [ # 10 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  8342
Joined  2008-09-29

You’ve probably done so before, but send me login details and I’ll personally get this fixed.

I’ll need EE access… and ideally FTP access so I can figure out what’s causing the failure. There’s some PHP bug or something that’s causing the notifications to fail…. there has to be, this is really unusual.

Get me the info. And I’ll get it fixed.

 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: 12 May 2011 03:24 PM   [ Ignore ]   [ # 11 ]
Has a Nice Profile
RankRank
Total Posts:  127
Joined  2011-03-23
Chris Newton - 12 May 2011 03:10 PM

You’ve probably done so before, but send me login details and I’ll personally get this fixed.

I’ll need EE access… and ideally FTP access so I can figure out what’s causing the failure. There’s some PHP bug or something that’s causing the notifications to fail…. there has to be, this is really unusual.

Get me the info. And I’ll get it fixed.

PM sent.

Profile
 
 
Posted: 13 May 2011 09:03 AM   [ Ignore ]   [ # 12 ]
Has a Nice Profile
RankRank
Total Posts:  127
Joined  2011-03-23

ok, I just received an email notification of a new order with the stripped down code.  Where do we go from here?

Profile
 
 
Posted: 18 May 2011 03:07 PM   [ Ignore ]   [ # 13 ]
Wallflower
Avatar
Rank
Total Posts:  21
Joined  2010-05-22

I’m running into the same issue here - with admin emails *and* customer emails. I’ve tested each email template inside of a template file successfully (using a fixed order entry ID instead of “ORDER_ID”), but the templates no longer work when pasted back into CartThrob.

I’m using EE2.1.4 and CartThrob 2.0354 on a DreamHost server running PHP 5.2.17. At this point the email issue is the only thing holding up launch. I’d be willing to give FTP/EE access in exchange for speedy help. Thanks!

Profile
 
 
Posted: 18 May 2011 03:48 PM   [ Ignore ]   [ # 14 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  8342
Joined  2008-09-29

Weird. We’re looking into it.

 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: 18 May 2011 03:51 PM   [ Ignore ]   [ # 15 ]
Wallflower
Avatar
Rank
Total Posts:  21
Joined  2010-05-22

Thanks a ton, Chris. We’ve decided to go live without the emails (since PayPal sends emails to both the customer and admin), but we would love to enable our own emails if/when this is fixed. Again, thanks so much for your undying work on CT. you guys rock!

Profile
 
 
   
1 of 2
1