Jump to content

Order details on new page


icaroamb

Recommended Posts

I managed to solve it, very simple, but I'll leave it here for someone who is looking for it too:

Prestashop Version 1.6.1.24

File: themes> YOUR THEME> history.tpl

/ * line 89 * /

<a class="btn btn-default button button-small" href="javascript:showOrder(1, {$order.id_order|intval}, '{$link->getPageLink('order-detail', true, NULL, "id_order={$order.id_order|intval}")|escape:'html':'UTF-8'}');">

change to:

<a class="btn btn-default button button-small" href="{$link->getPageLink('order-detail', true, NULL, "id_order={$order.id_order|intval}")|escape:'html':'UTF-8'}">

That way, the order details button will open it on a new page.

If anyone finds any error in this change, please reply to this topic.

We are a family owned and operated business.

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

Hi,

one addition if you want to open it in a new page, add to the <a tag the attribute target="_blank"

<a target="_blank" class="btn btn-default button button-small" href="{$link->getPageLink('order-detail', true, NULL, "id_order={$order.id_order|intval}")|escape:'html':'UTF-8'}">

Kind regards, Leo

Link to comment
Share on other sites

Thanks for your answer, but I particularly like it to be opened on the same page, opening on another page can pollute the browser with the client with many tabs. Of course, this is my opinion.

But your idea is great, it can help a lot of people.

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