abdullacm Posted June 8, 2022 Share Posted June 8, 2022 (edited) Im working on 1.7.8+ version, i would like to add custom fields to product without override. (facing many issues with override, sometimes need to remove /var/cache/<dev/prod>/class_index.php). The fields are used for frontend and backend purpose. Is there a way that custom fields can be added without override? (using hooks or other way) Thanks, Edited June 8, 2022 by abdullacm (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted June 8, 2022 Share Posted June 8, 2022 11 minutes ago, abdullacm said: Im working on 1.7.8+ version, i would like to add custom fields to product without override. (facing many issues with override, sometimes need to remove /var/cache/<dev/prod>/class_index.php). The fields are used for frontend and backend purpose. Is there a way that custom fields can be added without override? (using hooks or other way) Thanks, take your dev to next level using PrestaShop template inheritance, before this feature one could only add to front office, now you can add/change/delete front office content. once you master this you can write very nice front office features learn more here https://devdocs.prestashop.com/1.7/themes/reference/template-inheritance/ Link to comment Share on other sites More sharing options...
abdullacm Posted June 8, 2022 Author Share Posted June 8, 2022 1 hour ago, El Patron said: take your dev to next level using PrestaShop template inheritance, before this feature one could only add to front office, now you can add/change/delete front office content. once you master this you can write very nice front office features learn more here https://devdocs.prestashop.com/1.7/themes/reference/template-inheritance/ Yes im aware about this. I was talking about adding custom field to Product object model 1 Link to comment Share on other sites More sharing options...
Open Presta Posted June 8, 2022 Share Posted June 8, 2022 Can you check via module https://addons.prestashop.com/en/product.php?id_product=85146 Link to comment Share on other sites More sharing options...
abdullacm Posted June 9, 2022 Author Share Posted June 9, 2022 15 hours ago, Open Presta said: Can you check via module https://addons.prestashop.com/en/product.php?id_product=85146 no, I already have fields added using override. Added new columns to prestashop default product table, the custom fields are accessible via product object. I want the same, but without override. 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