Jump to content

virtual product email stopped sending


Recommended Posts

Hi

Im running the latest version of pretashop and my virtual products email just stopped sending. It was working fine a few days ago. I tried to cut down the number of emails being sent out so I stopped the account creation one, tested everything, all ok. Then I unchecked the send email option under payment accepted in statuses and tested it again. Didn't get the download email so I rechecked the box but the email didn't come back? Now no one is getting there notice to download??

Any ideas?

thanks

Link to comment
Share on other sites

I purchased a digital item and got a message Congratulations! Your payment is pending verification, and your order has been saved under the reference VLVEXCYIX

Then got the order confirmation email and the payment accepted one but no download email

 

The items Ive been testing so far for the emails were my free downloads

 

So now Ive purchased a physical item and got the payment accepted and order confirmation emails

 

 

Its just weird because it was working fine. Ive compared the current OrderHistory.php to an old one from last week and there doesn't seem to be any difference there

Edited by idoityourself (see edit history)
Link to comment
Share on other sites

I didn't get a white page, it took me back to the order-history

 

But I did just now get a white page after placing an order. I tried blocking out this on order history.php and changed the payment email to be the virtual product one. But got no emails at all for that so Ive put everything back to how it was

 

// Mail::Send((int)$order->id_lang, 'download_product', Mail::l('The virtual product that you bought is available for download', $order->id_lang), $data, $customer->email, $customer->firstname.' '.$customer->lastname,

Link to comment
Share on other sites

Thanks they have come back and said there are two errors

 

idoityourself.com.au [Wed Oct 15 06:24:59 2014] [error] [client 58.7.196.8:60142] AH01215: PHP Parse error: syntax error, unexpected ',' in /home/sites/idoityourself.com.au/public_html/classes/order/OrderHistory.php on line 157
idoityourself.com.au [Wed Oct 15 06:28:30 2014] [error] [client 184.187.171.225:56428] AH01215: PHP Parse error: syntax error, unexpected ',' in /home/sites/idoityourself.com.au/public_html/classes/order/OrderHistory.php on line 157

Link to comment
Share on other sites

157 says null, null, null, null, _PS_MAIL_DIR_, false, (int)$order->id_shop);

 

that whole little bit is

 

// If there is at least one downloadable file

if (!empty($assign))

Mail::Send((int)$order->id_lang, 'download_product', Mail::l('The virtual product that you bought is available for download', $order->id_lang), $data, $customer->email, $customer->firstname.' '.$customer->lastname,

null, null, null, null, _PS_MAIL_DIR_, false, (int)$order->id_shop);

}

 

I've not changed anything here and it looks to be correct from what I can see other threads suggesting should be here?

Edited by idoityourself (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...