Betz Developer Posted June 20, 2022 Share Posted June 20, 2022 Hello community, I'm trying to create a custom module, which creates a new text field in the product's edit-page and then get that information on the frontend. This is my current state: https://github.com/sebastian-marinescu/pconconfiguratorurl I initially forked: https://github.com/PululuK/democustomfields17 I managed to add a custom-field to the products-form and also successfully save it to the DB. Now my problem is, that I get nothing in the frontend. Dumping the object: {$product.pconconfiguratorurl|@var_dump} always results in empty values: array(3) { ["id"]=> NULL ["id_product"]=> NULL ["pconconfiguratorurl_field"]=> NULL } I'm stuck. I suspect the problem to be somewhere in the getInstanceByProductId-function. Does anyone have an idea on how to further investigate this, or directly solve it? Link to comment Share on other sites More sharing options...
Betz Developer Posted June 21, 2022 Author Share Posted June 21, 2022 I fixed it with the help of the community-dev PululuK: 'multilang' => true, 'multilang_shop' => true, These were true, and setting them to false fixed it immediately. 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