nayonowe Posted October 31, 2016 Share Posted October 31, 2016 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 More sharing options...
rocky Posted November 1, 2016 Share Posted November 1, 2016 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 More sharing options...
nayonowe Posted November 1, 2016 Author Share Posted November 1, 2016 unfortunately this doesn't solve the problem Link to comment Share on other sites More sharing options...
rocky Posted November 1, 2016 Share Posted November 1, 2016 Weird. I expected that to work, since that's where the order confirmation email is sent. Are you using a third-party payment module? Link to comment Share on other sites More sharing options...
nayonowe Posted November 1, 2016 Author Share Posted November 1, 2016 Yes i am using an third-party payment module. Just found the same problem also in the Welcome, order shipped, prepairing order email messages. So the problem seems to be in PS and not in the payment module Link to comment Share on other sites More sharing options...
rocky Posted November 2, 2016 Share Posted November 2, 2016 I don't understand why it's not working. You need to find out which class is calling Mail::send and make sure the $data array includes the right data. 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