invbit Posted June 21, 2019 Share Posted June 21, 2019 Hi everyone! I'm developing a module that adds some fields to the product edit page in backoffice. So, the problem is that when i try this instructions https://devdocs.prestashop.com/1.7/modules/concepts/forms/admin-forms/ i'm not able to make it work. The documentation says that now (>= 1.7.4), in any hook params we have the possibility to recover the form builder by this way: $formBuilder = $hookParams['form_builder']; So, i'm trying this: public function hookDisplayAdminProductsMainStepLeftColumnBottom(&$hookParams) { $formBuilder = $hookParams['form_builder']; dump($formBuilder); // returns NULL } But it always returns NULL. What could I be doing wrong? PS: Also i'd tried to render a twig template in this hook but didn't found any documentation about how to get the twig instance to compile the template file (custom-fields.html.twig) that contains the custom fields. -- Thanks for your help in advance. 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