cpsarathe Posted April 27, 2017 Share Posted April 27, 2017 I want to make product be available in front store when merchant is done with (product informations , images, prices , quantities) . In prestashop 1.6.0.8 first you have to save product and then only you can add images. Upon save there is no alert to user that other mandatory fields also need to be updated. I want to hide Enable in product informations and introduce publish menu below the Suppliers . Inside that one publish button and on click of that all mandatory fields needs to be validated and then finally a product be available in eshop. For this I have created custom modules and using hook $this->registerHook('displayAdminProductsExtra') in install i was able to add menu. Inside the hook I am returning tpl which is displaying publish page along with button return $this->display(__FILE__, 'proactivity.tpl'); My problem is I am not able to find the way to send the control to module php file when I submit from publish page. This control always goes to AdminProductsController. My knowledge in prestashop is very limited and just started it out. Any help is very much appreciated. Thanks Link to comment Share on other sites More sharing options...
phinq1910 Posted April 28, 2017 Share Posted April 28, 2017 Try actionProductAdd and actionProductUpdate hook public function hookActionProductUpdate($params) { if (!$this->active) { return false; } // do something } 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