3quid Posted March 1, 2011 Share Posted March 1, 2011 Hi,I am running a shop that only has virtual downloadable products for sale. It works perfectly except one thing. The customer can see products, add products, pay for products and I receive emails and they receive emails... too many emails. If a new customer comes along and buys they get, registration, payment accepted, order confirmation and virtual download emails... I really don't see the point in the payment accepted email. I know you can turn this off in Orders > Statuses but as soon as I do that they will no longer get the Virtual Download email.If anybody has any idea why that is happening I would be very grateful!Thanks in advance Link to comment Share on other sites More sharing options...
Florent Posted March 3, 2011 Share Posted March 3, 2011 Hello,I'm looking for this option too.Thanks Link to comment Share on other sites More sharing options...
codemonkey Posted March 4, 2011 Share Posted March 4, 2011 Hi,to solve your problem, do the following:1. Edit the order status "payment accepted" in the back office. Choose the email template "download product" as it's default template. Save. 2. open up OrderHistory.php, and comment the following (line 161 on mine):Mail::Send(intval($order->id_lang), 'download_product', ((is_array($_LANGMAIL) AND key_exists($subject, $_LANGMAIL)) ? $_LANGMAIL[$subject] : $subject), $data, $result['email'], $result['firstname'].' '.$result['lastname']);Save and upload. (orderhistory.php in located in the "classes" folder)If you need help doing this stuff, I'm available for hire. PM me for details. Cheers,Damian Link to comment Share on other sites More sharing options...
codemonkey Posted March 4, 2011 Share Posted March 4, 2011 p.s. In step 2, I meant "comment out" the following. Link to comment Share on other sites More sharing options...
codemonkey Posted March 4, 2011 Share Posted March 4, 2011 These changes will make it such that the virtual product to download email is never sent, and instead the virtual downloadable products will be displayed in your payment accepted email. Link to comment Share on other sites More sharing options...
idoityourself Posted February 8, 2012 Share Posted February 8, 2012 I've got the same problem, has anyone tried the solution above is it still valid for the current version? Link to comment Share on other sites More sharing options...
3quid Posted February 8, 2012 Author Share Posted February 8, 2012 I've got the same problem, has anyone tried the solution above is it still valid for the current version? The above solution worked for me fine when he suggested it and continues to but I have not updated my version of prestashop since so I do not know if it works on the latest version or not. Try commenting out the lines he suggests. If it doesn't work or breaks the system, uncomment it? Good luck Link to comment Share on other sites More sharing options...
idoityourself Posted October 15, 2014 Share Posted October 15, 2014 Didn't work just got a white page after ordering and no emails at all Link to comment Share on other sites More sharing options...
eec Posted August 8, 2016 Share Posted August 8, 2016 thank you CodeMonkey your step 2 solved my problem, i did not understand why you changed the status name but anyhow the solution is to change the OrderHistory.php Thanks a lot Link to comment Share on other sites More sharing options...
Graphics Back Label Posted September 6, 2016 Share Posted September 6, 2016 I have a more clean solution, For all the status, you can choose which deactivate, without comment the code. You can found the section in Order > Status 1 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