Muhammadn Posted September 2, 2015 Share Posted September 2, 2015 (edited) Hi, for some reason I had to create a back office, admincontroller, exactly like the `AdminProductsController` , so I created a class and extended the `AdminProductsControllerCore` now everything works fine, but for some of methods, which are from 1. Add new Product from the toolbar 2. Edit from the rowActions I'm guessing they both follow a same procedure which I can not for the love of god figure out what is I have already used the duplicate rowAction and also make the delete work, but these two ... they call a url like this : http://192.168.1.148/administration/index.php?controller=ShygunSysCaSync&addproduct&token=63aeb1b0380c37804819b177ff42e0c2 and http://192.168.1.148/administration/index.php?controller=ShygunSysCaSync&id_product=2&updateproduct&token=63aeb1b0380c37804819b177ff42e0c2 what I want to do is either redirect them to the default AdminProductController or just find a way to override the methods so I can tell user something about it. any help would be appriciated PrestaShop version: 1.6.1.1 Edited September 2, 2015 by Muhammadn (see edit history) Link to comment Share on other sites More sharing options...
taydotech123 Posted September 18, 2015 Share Posted September 18, 2015 you should put this controller at here: /override/controllers/adminproductcontroller.php and you can NOT create NEW controller in backoffice. ONLY create new controller in frontend Link to comment Share on other sites More sharing options...
Muhammadn Posted September 18, 2015 Author Share Posted September 18, 2015 nope, You can create a controller for back office, they are for controlling the new tabs for modules ! also the answer to my problem was to override the initProcess method in the AdminControllerCore ! 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