be_tnt Posted May 14, 2013 Share Posted May 14, 2013 (edited) Hello! I am using PS 1.5.3.1 and I have added an extra tab on product page. This extra tab contains one select field. When I save the product, I can see that the value of that field is part of the post but from the hook actionProductUpdate, I do not see how to access to it (or I missed something). In Admin product controller, you can see that the product object is sent to the hook: Hook::exec('actionProductUpdate', array('product' => $object)); But what about the fields from the extra tab? Thx in advance! Edited May 15, 2013 by be_tnt (see edit history) Link to comment Share on other sites More sharing options...
Paul C Posted May 14, 2013 Share Posted May 14, 2013 You should be able to use Tools::getValue('field_name') to get the value of the select. Link to comment Share on other sites More sharing options...
be_tnt Posted May 15, 2013 Author Share Posted May 15, 2013 (edited) You should be able to use Tools::getValue('field_name') to get the value of the select. Thx for your answer. It looks like it works. I had surely done a typo error when I tried before. Edited May 15, 2013 by be_tnt (see edit history) 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