micreas Posted November 26, 2022 Share Posted November 26, 2022 (edited) Hello, I am learning how to develop modules for PrestaShop. I am trying to extend the product form with a simple boolean switch. I found this example module in the official PrestaShop example modules repository. I copied it into the modules folder, executed the "composer install" command and installed the module in the admin UI. For some reason it seems like it does not add any new fields to the product form. The only thing it does is adding the module in the modules tab, but it does not contain any fields that could be edited. It seems like it simply does not call the `actionProductFormBuilderModifier` hook. I even tried to throw an error on the first line in the `hookActionProductFormBuilderModifier` function and it does not break the product admin page. The module can be found here: https://github.com/PrestaShop/example-modules/tree/master/demoproductform I am using PrestaShop 8.0.0. The module literally says that the minimum supported version is 8.0.0. Am I doing something wrong or is the example wrong? I haven't had any problems with extending the customer editation form in the admin but I have no idea what I am doing wrong with this one. Edited November 26, 2022 by micreas Problem was solved (see edit history) Link to comment Share on other sites More sharing options...
micreas Posted November 26, 2022 Author Share Posted November 26, 2022 Thankfully, at least on Github i received an answer. For everyone interested: the example module is designed for the new product page that is hidden under a feature flag that has to be enabled. That can be done in the backoffice configurartion UI. 1 Link to comment Share on other sites More sharing options...
electriz Posted May 27 Share Posted May 27 On 11/26/2022 at 5:56 PM, micreas said: Thankfully, at least on Github i received an answer. For everyone interested: the example module is designed for the new product page that is hidden under a feature flag that has to be enabled. That can be done in the backoffice configurartion UI. Thanks! 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