icaroamb Posted February 11, 2021 Share Posted February 11, 2021 Does anyone know how to make order details in version 1.6 open on a new page instead of ajax? Link to comment Share on other sites More sharing options...
icaroamb Posted February 11, 2021 Author Share Posted February 11, 2021 (edited) 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 February 11, 2021 by icaroamb (see edit history) Link to comment Share on other sites More sharing options...
Prestachamps Posted February 11, 2021 Share Posted February 11, 2021 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 More sharing options...
icaroamb Posted February 11, 2021 Author Share Posted February 11, 2021 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 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