Jump to content

HTML links are not working in email messages


Recommended Posts

Hi,

 

I asked this question also in the Dutch forum, but i didn't get an helpful answer.

I'm using PS 1.6.1.6 with email with HTML function (not plain text).

So when an customer gets an order confirmation email the links to order history and my account are not working.
When i hover the mouse on the link the info {my_account_url} is show.

 

All the relevant information is shown correctly.

 

Please can anybody help me?

Link to comment
Share on other sites

I just checked and the data array for the order confirmation email is missing those URLs. Seems like a pretty big bug. :(
 
To fix it, change line 705 (in PrestaShop v1.6.1.8) of classes/PaymentModule.php from:
                        $data = array(

to:

                        $data = array(
                        '{my_account_url}' => $this->context->link->getPageLink('my-account', true, $this->context->language->id, null, false, $this->context->shop->id),
                        '{guest_tracking_url}' => $this->context->link->getPageLink('guest-tracking', true, $this->context->language->id, null, false, $this->context->shop->id),
                        '{history_url}' => $this->context->link->getPageLink('history', true, $this->context->language->id, null, false, $this->context->shop->id),
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...