Jump to content

Customer email in Reply-to New order Merchant notifications


kazzo

Recommended Posts

Hello,
How to set the reply-to email to customer email for New order Merchant notifications in Prestashop 1.7.6.1 module Mail alerts v3.6.1?

Got it.
In modules/mailalerts/mailalerts.php
method hookActionValidateOrder
I change code like below:

if ($dir_mail)
    Mail::Send(
        $mail_id_lang,
        'new_order',
        sprintf(Mail::l('New order : #%d - %s', $mail_id_lang), $order->id, $order->reference),
        $template_vars,
        $merchant_mail,
        null,
        $configuration['PS_SHOP_EMAIL'],
        $configuration['PS_SHOP_NAME'],
        null,
        null,
        $dir_mail,
        null,
        $id_shop,                      //--> I added comma at end
        null,                                //--> I added this line
        $customer->email       //--> I added this line
    );

Edited by kazzo (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...