Home Ask Login Register

Developers Planet

Your answer is one click away!

Suraj Passi February 2016

how can i add privilege checkbox of custom addon for vendor in cs cart ?

By default addons access will restricted to vendor. If i'll give the privilege to particular vendor he will able to access that addons.

thanks in advance

Answers


Mool February 2016

/You need auth area firts/

$condition = '';
if (AREA != 'A') {
    $auth = $_SESSION['auth'];
    $condition = ' AND (' . fn_find_array_in_set($auth['usergroup_ids'], 'usergroup_ids', true) . ") AND status = 'A'";
}

return....

You can see example in APP/addons/attachments

Post Status

Asked in February 2016
Viewed 1,963 times
Voted 6
Answered 1 times

Search




Leave an answer


Quote of the day: live life