Open sirius82 opened 1 year ago
Sorry, I found where was the issue : i didn't create the override Product.php. Thanks !
Good job bro prestashop for Life !
Hi, are you AM, the autor of this module ? The module works fine but data added in fields "admin" or "custom_field_lang" are not displayed after to have refreshed the product page in BO. Do you know why ?
thanks !
I think that everything work as it should but to make override of Product class acc to PS 8 docs: https://devdocs.prestashop-project.org/8/modules/concepts/overrides/#class--controller-override
In module folder just create directory: _/override/classes/ and place there a Product.php file from: doc_and_override After that reinstall module in module manager in BO. Override class will be copied in /override/classes/Product.php during the module installation, and removed automatically on uninstall so you do not need to make it manually.
But - how to accesss that custom fields in .tpl file in front?
Hello, Thanks a lot for the share of this module. I tried it on PS 1.7.6.4. But datas are not saved in custom_field field. In the product table, I see only one new field (custom_field). But where are saved data in Admin field and Multilingual field ? I just want to add a field to add a date on product page. Thanks a lot