Jump to content

{order_link} not working correctly for backoffice_order e-mails


Recommended Posts

Hi!

 

I'm new to prestashop and I'm doing some tests in my prestashop store (version 1.5.4). There are several problems with mail links that I've already corrected searching for an answer here but I'm searching for a solution for an error in the backoffice_order e-mail but I could find any.

 

The e-mail template uses {order_link} but when the real e-mail is sent the link showing is:

 

http://www.kittysgifts.com/shop/pt/index.php?controller=order&step=3&recover_cart=5&token_cart=40400bcd61559d4a3f751578e2dea16e

 

When I click on that link I get:

 

[Debug] This page has moved

Please use the following URL instead:

http://www.kittysgifts.com/shop/pt/encomenda?step=3&recover_cart=5&token_cart=40400bcd61559d4a3f751578e2dea16e

 

So, I know that the problem is on the {order_link} definition (I've found it on AdminOrdersController.php like this:

 

'{order_link}' => Context::getContext()->link->getPageLink('order', false, (int)$cart->id_lang, 'step=3&recover_cart='.(int)$cart->id.'&token_cart='.md5(_COOKIE_KEY_.'recover_cart_'.(int)$cart->id)),

 

What can I do to this lines to correct the problem?

 

Thanks in advance!

Edited by kittysgifts (see edit history)
Link to comment
Share on other sites

  • 4 months later...

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