Jump to content

Bad order URLs in BO of 1.7.7.0


Recommended Posts

Hi!

After the release of the extreme version 1.7.7.0, something was crushed in one my module, in particular, the correct links to orders in the admin panel were no longer generated right.
The code contained this:

<a href="{$link->getAdminLink('AdminOrders', true)}&id_order={$row.id_order}&vieworder">{l s='Order #' mod='refpro'}{$row.id_order}</a>

THis worked at PS 1.5.x-1.7.6.8 and generated link like

https://shop.com/admin/index.html?controller=AdminOrders&token=3c85bf2e999f864ce3cffa0a8f86ffb0&id_order=15&vieworder

But in the PS 1.7.7.0 this now generated like:

http://shop.com/admin/index.html/sell/orders/?_token=nTlnt1KvhL_86WESy8VavCyBYVATa3-pW1ufSWxgog0&id_order=24&vieworder

which not worked. As i understand {$link->getAdminLink('AdminOrders', true)} not works in this version? What should I change it to?

I would be grateful for a hint!

Regards

 

Link to comment
Share on other sites

  • 4 weeks later...
1 hour ago, MihaelaS said:

Did you find an answer or can someone suggest a solution regarding this problem?

I changed {$link->getAdminLink('AdminOrders', true)}
to
{$link->getAdminLink('AdminOrders', true, [], ['id_customer' => $id_customer, 'viewcustomer' => 1])}

and this is work! ))

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