Jump to content

Prestshop 1.7.4.2 add custom field to product admin


maryam

Recommended Posts

Hello, 

I'm using prestashop 1.7.4 and trying to add a custom extra_description and extra_title to the product admin, 

I followed this comment to get it done,

https://www.prestashop.com/forums/topic/606651-prestashop-17-override-of-admin-product/#comment-2549505

except unlike in prestashop 1.7.3 the file "src/PrestaShopBundle/Resources/views/Admin/Product/form.html.twig" so i used the files  "/src/PrestaShopBundle/Resources/views/Admin/Product/ProductPage/product.html.twig" and "/src/PrestaShopBundle/Resources/views/Admin/Product/ProductPage/Panelsessentials.html.twig" to make the extra field visible in the product admin.

 

The problem i have is that in the DB the fields values are saved in the default language only (FR) and the fields appears empty in the front end, if i add a random value manualy via DB to the field in (EN) language it shows it in the from even if the English language is not active.

 

How can i solve this ? is there other files to change ?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...