Jump to content

[SOLVED] Missing phone numbers in mail alerts


Recommended Posts

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

  • 2 weeks later...

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

  • 2 months later...
  • 1 year later...

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

  • 1 year later...

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

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