fancy|modules Posted February 24, 2020 Share Posted February 24, 2020 Hello, how can I create product admin edit link in my module? Link to comment Share on other sites More sharing options...
fbenoist.com Posted February 25, 2020 Share Posted February 25, 2020 For which version of PrestaShop? Link to comment Share on other sites More sharing options...
fancy|modules Posted February 25, 2020 Author Share Posted February 25, 2020 both 1.6 and 1.7 Link to comment Share on other sites More sharing options...
fbenoist.com Posted February 25, 2020 Share Posted February 25, 2020 Try this Context::getContext()->link->getAdminLink('AdminProducts', true, ['id_product' => $id_product]); 2 Link to comment Share on other sites More sharing options...
tdsoft Posted February 26, 2020 Share Posted February 26, 2020 This code can work both Prestashop 1.6 and 1.7 $p_controller = 'index.php?controller=AdminProducts'; $p_controller .='&token='.Tools::getAdminTokenLite('AdminProducts'); $p_controller .='&id_product='.(int) $id_product; $p_controller .='&updateproduct&key_tab=Images&action=Images'; echo $p_controller; Link to comment Share on other sites More sharing options...
fancy|modules Posted February 26, 2020 Author Share Posted February 26, 2020 thank you guys 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