Bassel Posted February 24, 2017 Share Posted February 24, 2017 Hello By testing cheque payment module, I noticed that in the confirmation mail the following information doesn't appear À l'ordre de : {cheque_name}Veuillez envoyer votre chèque à l'adresse suivante : {cheque_address_html} I Configured the cheque module but no effects appear in the mail data. Image attached Do you have any solution please Thanks in advance Link to comment Share on other sites More sharing options...
rocky Posted February 25, 2017 Share Posted February 25, 2017 You're using the wrong variables. Here's what's on lines 62-65 (in PrestaShop v1.7.0.5) of modules/ps_checkpayment/controllers/front/validation.php: $mailVars = array( '{check_name}' => Configuration::get('CHEQUE_NAME'), '{check_address}' => Configuration::get('CHEQUE_ADDRESS'), '{check_address_html}' => str_replace("\n", '<br />', Configuration::get('CHEQUE_ADDRESS'))); You should be using {check_name}, {check_address} and {check_address_html} instead of {cheque_name}, {cheque_address} and {cheque_address_html}. Link to comment Share on other sites More sharing options...
Bassel Posted February 27, 2017 Author Share Posted February 27, 2017 (edited) Many thanks Rocky...it works perfectly now However, if you could help in another point please... By ending setting the order, on the website, the confirmation order message shows <br /> <br /> in the sent address Please have a look on the attached image. Thanks Edited February 27, 2017 by Bassel (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted February 27, 2017 Share Posted February 27, 2017 I see the following on line 34 of modules/ps_checkpayment/views/templates/front/payment_infos.tpl: <dd>{$checkAddress nofilter}</dd> It appears the address isn't being filtered, so the <br /> shouldn't be displayed as text. What do you have written as the address on the module's configuration page? You can try removing the <br /> from there. 1 Link to comment Share on other sites More sharing options...
Bassel Posted February 27, 2017 Author Share Posted February 27, 2017 You are tight it looks like we should put the whole address in one line Thanks Dear Link to comment Share on other sites More sharing options...
chokoben Posted November 9, 2017 Share Posted November 9, 2017 (edited) Hello I have the same problem than Bassel ; À l'ordre de : {cheque_name} Veuillez envoyer votre chèque à l'adresse suivante : {cheque_address_html} But for me the Rocky's solution don't work and I don't understand why. If someone can help, thanks Edited November 9, 2017 by chokoben (see edit history) 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