sekourm / custom-field-product-prestashop-1.7

14 stars 8 forks source link

Data from the form are not saved in the database? #1

Open Sasni opened 3 years ago

Sasni commented 3 years ago

I have a question because I noticed there is a function that creates tables in the database but probably nothing is sent there. Do you plan to expand it further?

sekourm commented 3 years ago

Hi, currently the module allows you to save the field in database. you have a problem with the recording in database ?

ButcherFromHell commented 9 months ago

Just 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.