Jump to content

Edit History

feho1

feho1

Hi, everyone.
I have module that is using admin controller to do some stuff, in there i call database and search for all products and it is working fine.
What i want is to get the current id_product from hookDisplayAdminProductsExtra but I cant call that in controller. Even thou i use Hook::exec
The function does not even get executed since i am not calling it form module but from hook.
So what i want is to get id_product from hooks $params and pass it to controller and use it as argument when doing db search

prestashop 1.7.6.7
php 7.2
Solved by using ajax passing the data from smarty tpl to controller

feho1

feho1

Hi, everyone.
I have module that is using admin controller to do some stuff, in there i call database and search for all products and it is working fine.
What i want is to get the current id_product from hookDisplayAdminProductsExtra but I cant call that in controller. Even thou i use Hook::exec
The function does not even get executed since i am not calling it form module but from hook.
So what i want is to get id_product from hooks $params and pass it to controller and use it as argument when doing db search

prestashop 1.7.6.7
php 7.2

×
×
  • Create New...