Jump to content

Edit History

Roshan Bhavsar

Roshan Bhavsar

Hello, I want to add the checkbox and a text field into the options tab of the product. Prestashop version is 8.0.4.

I have added a piece of code, to show the checkbox and the input field. When checkbox is checked then text box will be shown else hidden.

But now I'm struggling for the saving of that checkbox and textbox values into the database. (I already created a fields into the database "is_special_product" and  "special_description"). So which are the steps that are to be followed for the data is being saved into the database (for both create and edit). I did the changes in classes/product.php , AdminProductDataProvider.php, ProductOptions.php etc. So, please help mw with the same. please list out the files which are needed to be changed to do the same with changes required. 

 

Thanks in advance.

special.png

Roshan Bhavsar

Roshan Bhavsar

Hello, I want to add the checkbox and a text field into the options tab of the product. Prestashop version is 8.0.4.

I have added a piece of code, to show the checkbox and the input field. When checkbox is checked then text box will be shown else hidden.

But now I'm struggling for the saving of that checkbox and textbox values into the database. (I already created a fields into the database "is_special_product" and  "special_description"). So which are the steps that are to be followed for the data is being saved into the database (for both create and edit). I did the changes in classes/product.php , AdminProductDataProvider.php, ProductOptions.php etc. So, please help mw with the same. please list out the files which are needed to be changed to do the same with changes required. 

 

Thanks in advance.

special.png

×
×
  • Create New...