ijipk Posted July 15, 2016 Share Posted July 15, 2016 (edited) Hi. I have some issues with my order confirmation email. order_conf First. Prestashop automatically sends a confirmation email to the customer when they order, how to disable that? so they only receive the preparation email. Second. When they receive the confirmation email automatically all the variables are resolved. however when I send it manually it don't resolve the variables like: {payment} {total_shipping} ... I'm totally lost p.s. 1.6.1.5 Regards Jesper Edited July 15, 2016 by ijipk (see edit history) Link to comment Share on other sites More sharing options...
shokinro Posted July 15, 2016 Share Posted July 15, 2016 First. Prestashop automatically sends a confirmation email to the customer when they order, how to disable that? so they only receive the preparation email. Other emails are configurable at back office - Orders - Statuses tab, but order confirmation email is not configurable to disable or enable. It is there by default. You can remove it by modifying following files in method validateOrder() /classes/PaymentModule.php Or (recommended) /override//classes/PaymentModule.php Second. When they receive the confirmation email automatically all the variables are resolved. however when I send it manually it don't resolve the variables like: {payment} {total_shipping} .. How do you send manually? Link to comment Share on other sites More sharing options...
ijipk Posted July 15, 2016 Author Share Posted July 15, 2016 Thanks for your quick replay I will have a look and see if I can get i disabled. I have created a status called "confirmation" which sends a PDF invoice and uses the order_conf email template Link to comment Share on other sites More sharing options...
shokinro Posted July 16, 2016 Share Posted July 16, 2016 you should be able to easily find out code there the order confirmation email is sent and then you can just comment out that line in the file I mentioned. if (Validate::isEmail($this->context->customer->email)) { Mail::Send( (int)$order->id_lang, 'order_conf', Mail::l('Order confirmation', (int)$order->id_lang), $data, $this->context->customer->email, $this->context->customer->firstname.' '.$this->context->customer->lastname, null, null, $file_attachement, null, _PS_MAIL_DIR_, false, (int)$order->id_shop ); } Link to comment Share on other sites More sharing options...
editorstefan Posted July 27, 2017 Share Posted July 27, 2017 Hello, I'm using Prestashop 1.6.1.13 and cant get his to work. I want to display price for shiping excl. tax. '{total_shipping_tax_excl}' => Tools::displayPrice($order->total_shipping_tax_excl, $this->context->currency, false), Is not working, any idea what i should do? Link to comment Share on other sites More sharing options...
Scully Posted July 28, 2017 Share Posted July 28, 2017 The order confirmation variables are not available in other order states. This is by design. We have developed an override to overcome this restrictions. PM me if you are interested. 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