php - How to edit user permissions only for selected fields on Opencart?
238
I've set up a non-admin user group on OC dashboard. Now I need to give permission for that user group to view and update all products but not to update Model and Quantity (only to view model and quantity). How could I do this?
Answer
Solution:
It can't be done by default in OpenCart, you will need to look for an answer on the forums: https://forum.opencart.com/viewtopic.php?t=134562
Or in the extension store: https://www.opencart.com/index.php?route=marketplace/extension&filter_search=permissions
Answer
Solution:
Finally this is how I solved:
Added the following lines to admin/controller/catalog/product.php
Then updated admin/view/template/catalog/product_form.twig