how can i add privilege checkbox of custom addon for vendor in cs cart ? -
by default addons access restricted vendor. if i'll give privilege particular vendor able access addons.
thanks in advance
/you need auth area firts/
$condition = ''; if (area != 'a') { $auth = $_session['auth']; $condition = ' , (' . fn_find_array_in_set($auth['usergroup_ids'], 'usergroup_ids', true) . ") , status = 'a'"; } return....
you can see example in app/addons/attachments
Comments
Post a Comment