i am using openCart version 2.3. In admin I have created two user groups (administrator
and staff
).
Group staff
has restricted permissions. As name suggest this group will be assigned to the employees. They will be working on order page. However I want that on the order page, customer email and phone number should be hide from them. How can i achieve this?
I tried but could not get the admin user group type on the order page. If I am able to to get the group type on this page, I can hide these fields(customer
email
and phone number
) on this order page.
You need to call $this->user->user_group_id
from page controller.
If you try to call this from view, you will not get value, because in OpenCart $this
object is not completly passed to views.