fale.henrique Posted October 26, 2016 Share Posted October 26, 2016 Hi Guys, In back office i want to create a button to return for AdminOrders Page. How can i do it? I want to direct the user to this link. http://localhost:8888/prestashop_6_7/admin669poorqk/index.php?controller=AdminOrders&token=a4a0eeeb3157c0106c20b18cea760a87 Thank you. Link to comment Share on other sites More sharing options...
rocky Posted October 26, 2016 Share Posted October 26, 2016 You can override admin/themes/default/template/controllers/orders/form.tpl and add code like the following where you want the link displayed: <a href="index.php?controller=AdminOrders&token={getAdminToken tab='AdminOrders'}">{l s='Show all orders'}</a> Link to comment Share on other sites More sharing options...
fale.henrique Posted October 26, 2016 Author Share Posted October 26, 2016 You can override admin/themes/default/template/controllers/orders/form.tpl and add code like the following where you want the link displayed: <a href="index.php?controller=AdminOrders&token={getAdminToken tab='AdminOrders'}">{l s='Show all orders'}</a> Thank you, but i am doing it in back end. $redirect = $this->context->link->getAdminLink('AdminOrders'); Tools::redirectAdmin($redirect); But this isn't worked. Link to comment Share on other sites More sharing options...
rocky Posted October 27, 2016 Share Posted October 27, 2016 I just tested your code on my PrestaShop v1.6.1.8 test site and it works fine. I'm not sure why it isn't working for you. 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