Feri77 Posted June 11, 2012 Share Posted June 11, 2012 Hi, My mail alert template contains the following: {delivery_company} {delivery_firstname} {delivery_lastname} {delivery_address1} {delivery_address2} {delivery_city} {delivery_postal_code} {delivery_country} {delivery_state} {delivery_phone} {delivery_other} and {invoice_company} {invoice_firstname} {invoice_lastname} {invoice_address1} {invoice_address2} {invoice_city} {invoice_postal_code} {invoice_country} {invoice_state} {invoice_phone} {invoice_other} but the phone numbers are missing from the received email alert. Of course the customers gave their phone numbers (it is obligatory) and they are in the database. What can be wrong? Link to comment Share on other sites More sharing options...
bellini13 Posted June 11, 2012 Share Posted June 11, 2012 there are 2 phone numbers, phone and phone_mobile, so first let us confirm that the customer did provide the phone number, and not the phone_mobile? 1 Link to comment Share on other sites More sharing options...
Feri77 Posted June 19, 2012 Author Share Posted June 19, 2012 there are 2 phone numbers, phone and phone_mobile, so first let us confirm that the customer did provide the phone number, and not the phone_mobile? Thanks, this was the problem! Phone_mobile was not defined in mailalerts.php. So I defined them and I added these fields to the mail template. Link to comment Share on other sites More sharing options...
Dim Dukov Posted September 16, 2012 Share Posted September 16, 2012 Thanks, this was the problem! Phone_mobile was not defined in mailalerts.php. So I defined them and I added these fields to the mail template. how do that? please tell me Link to comment Share on other sites More sharing options...
glennlawre Posted January 7, 2014 Share Posted January 7, 2014 how do that? please tell me An old post but I have just had this smae issue and this is how I resolved this issue in PS v1.5.6.1: In "/wwwroot/modules/mailalerts/mailalerts.php" insert - '{delivery_phone_mobile}' => $delivery->phone_mobile, Before or after '{delivery_phone}' => $delivery->phone ? $delivery->phone : $delivery->phone_mobile, Also insert - '{invoice_phone_mobile}' => $invoice->phone_mobile, Before or after '{invoice_phone}' => $invoice->phone ? $invoice->phone : $invoice->phone_mobile, Then in the BO go to - "Localization > Translations > Email templates translations" and edit "Emails for mailalerts module" as per below. Delivery address {delivery_block_html} {delivery_phone_mobile} Billing address {invoice_block_html} {invoice_phone_mobile} You can also do this last part by editing "/themes/"theme"/modules/mailalerts/mails/en/new_order.html" as you require and re-uploading. Hope this helps others... Link to comment Share on other sites More sharing options...
Bejo Posted May 17, 2015 Share Posted May 17, 2015 An old post but I have just had this smae issue and this is how I resolved this issue in PS v1.5.6.1: In "/wwwroot/modules/mailalerts/mailalerts.php" insert - '{delivery_phone_mobile}' => $delivery->phone_mobile, Before or after '{delivery_phone}' => $delivery->phone ? $delivery->phone : $delivery->phone_mobile, Also insert - '{invoice_phone_mobile}' => $invoice->phone_mobile, Before or after '{invoice_phone}' => $invoice->phone ? $invoice->phone : $invoice->phone_mobile, Then in the BO go to - "Localization > Translations > Email templates translations" and edit "Emails for mailalerts module" as per below. Delivery address {delivery_block_html} {delivery_phone_mobile} Billing address {invoice_block_html} {invoice_phone_mobile} You can also do this last part by editing "/themes/"theme"/modules/mailalerts/mails/en/new_order.html" as you require and re-uploading. Hope this helps others... Then in the BO go to - "Localization > Translations > Email templates translations" and edit "Emails for mailalerts module" as per below. Delivery address {delivery_block_html} {delivery_phone_mobile} Billing address {invoice_block_html} {invoice_phone_mobile} where i can find this menu on prestashop 1.5.4.6 thx 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