Post by prabeen » Wed May 17, 2017 8:44 pm

I am developing a multi store and using a plugin which can create different admin-user for different store.
Each admin for the respective stores have access within there store.
So I want to use a plugin for closing/scheduling opening/closing hour.but the problem is each store admin can see and
change the settings of other stores of that closing/scheduling plugin.
To restrict that I need to get their respective 'user_id' from the OC_USERS table when they are logged-in to their
respective admin panel.
Is there any way to get that field, from session or anything else.
Please suggest any solution.

Newbie

Posts

Joined
Tue Mar 07, 2017 4:28 pm

Post by chrisranjana.com » Fri May 19, 2017 3:25 pm

prabeen wrote:
Wed May 17, 2017 8:44 pm
...
To restrict that I need to get their respective 'user_id' from the OC_USERS table when they are logged-in to their
respective admin panel.
Is there any way to get that field, from session or anything else.
Please suggest any solution.
Are you relating the admin user_id/email address with a store id in any other table ?

Chris, Opencart Developers and Programmers,
www.chrisranjana.com


User avatar

Posts

Joined
Thu Feb 26, 2009 2:23 am
Location - chennai, India
Who is online

Users browsing this forum: Xerobia and 33 guests