idoityourself Posted October 15, 2014 Share Posted October 15, 2014 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 More sharing options...
Dh42 Posted October 15, 2014 Share Posted October 15, 2014 Are regular orders getting the payment confirmation emails? Link to comment Share on other sites More sharing options...
idoityourself Posted October 15, 2014 Author Share Posted October 15, 2014 (edited) 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 October 15, 2014 by idoityourself (see edit history) Link to comment Share on other sites More sharing options...
Dh42 Posted October 15, 2014 Share Posted October 15, 2014 Are you getting a white page on the order process at the end, or is it taking you to the confirmation page like it should? Link to comment Share on other sites More sharing options...
idoityourself Posted October 15, 2014 Author Share Posted October 15, 2014 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 More sharing options...
Dh42 Posted October 15, 2014 Share Posted October 15, 2014 Hmm, you might check the logs on your server to see if it is throwing any kind of notice during the checkout process. You might have to get your host to turn error reporting on in php Link to comment Share on other sites More sharing options...
idoityourself Posted October 15, 2014 Author Share Posted October 15, 2014 Ideally Id like to combine emails so that if someone buys an instant download they get just the one email and if someone buys a customise product they just get one. People get grumpy getting a registration email and payment email and an order confirmation one Link to comment Share on other sites More sharing options...
idoityourself Posted October 15, 2014 Author Share Posted October 15, 2014 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 157idoityourself.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 More sharing options...
idoityourself Posted October 15, 2014 Author Share Posted October 15, 2014 (edited) 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 October 15, 2014 by idoityourself (see edit history) Link to comment Share on other sites More sharing options...
idoityourself Posted October 15, 2014 Author Share Posted October 15, 2014 (edited) WHOO HOOO ! Found the issue but now what. The problem is the files aren't there, they are missing. When I click on the product in the BO and go to Virtual Product there is no longer any file there. Where have they gone?? Edited October 16, 2014 by idoityourself (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now