Jump to content

[RESOLU] - Mondial Relay : Désactiver l'envoi du mail à la validation commande


Recommended Posts

Bonjour,

 

Savez-vous comment désactiver l'envoi du mail Mondial Relay, qui se déclenche lorsqu'un client valide sa commande (après avoir choisi ce transporteur) ?

 

En effet ça fait doublon avec la confirmation de commande habituelle.

Même s'il y a du code à modifier, toute solution me conviendrait (je ne trouve pas l'endroit d'où est déclenché ce mail dans les fichiers du module).

 

Merci.

 

Version MR : 2.0.8

Version Presta : 1.6.0.11

Edited by Sda33 (see edit history)
Link to comment
Share on other sites

Résolu, en trouvant les lignes suivantes dans mondialrelay.php à la racine du module (en l'occurrence lignes 414/415) :

		if (file_exists(dirname(__FILE__).'/mails/'.$iso.'/'.$template.'.txt') && file_exists(dirname(__FILE__).'/mails/'.$iso.'/'.$template.'.html'))
			Mail::Send((int)$id_lang, $template, $subject, $templateVars, $customer->email, $customer->firstname.' '.$customer->lastname, Configuration::get('PS_SHOP_EMAIL'), Configuration::get('PS_SHOP_NAME'), null, null, dirname(__FILE__).'/mails/');

Il suffit donc de supprimer/renommer les mails .html, pas besoin d'override.

Link to comment
Share on other sites

  • 1 year later...

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...