Prestashop: FR | Order Settings | Disable order confirmation email

Created on 4 Apr 2019  路  7Comments  路  Source: PrestaShop/PrestaShop

Is your feature request related to a problem? Please describe.
In some circumstances, especially when PS is integrated with a BackOffice system, we're in the need to disable Order Confirmation email.
That's because the order confirmation is processed by the backoffice system and the user would receive more than one mail for his order.
I've seen that is hard coded without any check on any constant related to a possible configuration.

Describe the solution you'd like
Would be nice to have an additional toggle under Order Settings in order to disable confirmation emails for new valid orders.

Describe alternatives you've considered
I did not.

BO Email Improvement Order settings TBS Vote for it

Most helpful comment

Actually, i wrote a module and register the hook actionEmailSendBefore.

$this->registerHook('actionEmailSendBefore')

and do something like that:

 public function hookActionEmailSendBefore($params){

       if($params['template'] === 'order_conf'){
            return false;
        }
        return true;
    }

All 7 comments

Hi @manfield,

It's possible to activate or deactivate the mails to send in Shop parameters> Orders> orders statuses.
Thanks for check and feedback.

Actually not for the new order.
For any order history change that happens after the new order that's true, but not for the first new order event.

@marionf, @colinegin what do you think?
Thanks!

@manfield you can delete the order_conf.html and order_conf.txt templates in the email/_lang_ folder

Sure it is a workaround, though many people - not so skilled - won't find this solution easily.
Why don't you add a toggle in configuration? I think it is a cleaner way.

@manfield

We have posted your suggestion here: http://feedback.prestashop.com/forums/387864-prestashop-1-7-x/suggestions/37448746-disable-emails

Don't hesitate to vote for it

Actually, i wrote a module and register the hook actionEmailSendBefore.

$this->registerHook('actionEmailSendBefore')

and do something like that:

 public function hookActionEmailSendBefore($params){

       if($params['template'] === 'order_conf'){
            return false;
        }
        return true;
    }

Was this page helpful?
0 / 5 - 0 ratings

Related issues

matks picture matks  路  3Comments

vincent-dp picture vincent-dp  路  3Comments

khouloudbelguith picture khouloudbelguith  路  3Comments

rGaillard picture rGaillard  路  3Comments

matks picture matks  路  3Comments