Jump to content

get methods in back office controller


Muhammadn

Recommended Posts

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 by Muhammadn (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...

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