Jump to content
Latest News: (loading..)
AAWISDOM

Need Add-on For Restricted Admin Levels

Recommended Posts

I've been looking for an Addon for the latest oscommerce stable version, where I can create lower level admin accounts who I can hire to list things, but these staff admin accounts should not have privileges to delete other admins, delete other product listings, change store settings, and on so on. These low-level accounts should only have ability to list products. Does anyone know which add-on should I choose to install for this need?

Christopher McGrath

https://aaw.link/market

Edited by AAWISDOM

Share this post


Link to post
Share on other sites

Not sure which version you refer to when you say latest stable version.

If you are using the 2.3.4.1 version downloaded from the official download site, do not use it. Start over with the Bootstrap responsive community version instead:

https://github.com/gburton/Responsive-osCommerce/archive/master.zip

The add-on you search is that one:

https://apps.oscommerce.com/0Fuy5&multi-admin-with-levels

But for sure it seems to need some update to get it to work with the latest oscommerce 2.3.4.1 version.

If you are not able to update it yourself, you can post in the commercial support topic to find a developer to do it for you.

Edited by raiwa

Share this post


Link to post
Share on other sites

There is a newer addon here that may still require still require some editing but not as much.

Share this post


Link to post
Share on other sites

Thanks for you attentions and answers. I finally have time to tried those. Your info about  https://github.com/gburton/Responsive-osCommerce/archive/master.zip is good to know Rainer Schmied. Now I install two versions of OSCOMMERCE. Still, both your suggestions https://apps.oscommerce.com/0Fuy5&multi-admin-with-levels and https://apps.oscommerce.com/xvqqc&easy-admin-group-osc-2-3-xx need a lot of works.

Jack_mcs, and raiwa

Share this post


Link to post
Share on other sites
On 2/5/2018 at 6:32 AM, raiwa said:

Not sure which version you refer to when you say latest stable version.

If you are using the 2.3.4.1 version downloaded from the official download site, do not use it. Start over with the Bootstrap responsive community version instead:

https://github.com/gburton/Responsive-osCommerce/archive/master.zip

The add-on you search is that one:

https://apps.oscommerce.com/0Fuy5&multi-admin-with-levels

But for sure it seems to need some update to get it to work with the latest oscommerce 2.3.4.1 version.

If you are not able to update it yourself, you can post in the commercial support topic to find a developer to do it for you.

I am trying to install that https://apps.oscommerce.com/xvqqc&easy-admin-group-osc-2-3-xx

to that github community version https://github.com/gburton/Responsive-osCommerce/archive/master.zip

but I realized that there is no admin/includes/filenames.php file in that version. May be we don't need to do this step below?

----------------------------------
admin/includes/filenames.php
----------------------------------

Please add the code before ?>


define('FILENAME_ADMINISTRATOR_GROUPS', 'administrator_groups.php');

Share this post


Link to post
Share on other sites

In the newer EDGE versions, filename definitions and some directory definitions have been replaced by hardcoded filenames and directories in the files.

There are 2 possibilities:

1. hardcode all filename constants and the removed directory constants in all add-on files.

Examples: replace FILENAME_ADMINISTRATOR_GROUPS by 'administrator_groups.php'

and DIR_WS_INCLUDES by 'includes/'

2. install the compatibility add-on:

Add-On Compatibility for 2.3.4 EDGE

 

Where 1 is preferred

Share this post


Link to post
Share on other sites

I successfully install this https://apps.oscommerce.com/xvqqc&easy-admin-group-osc-2-3-xx.

with v2.3.4.1. I found that This Add-on doesn't have a way to disable an unfriendly admin user from deleting all the products. Root admin can always restore the database back, but I want to have a functionality that will disallow an admin to delete or modify already listed products, but only allow to insert new products. Can anyone help?

I want my oscommerce store to be like ebay where strangers can come and list their products, but not touch or have access to products that are not theirs. Can anyone give me some hints what files and codes are keys to modify to do this? I understand PHP very well.

Share this post


Link to post
Share on other sites
  1. add a new column called something like "admin_id" to the products table
  2. when a new product is saved store the actual admin id in that column ($admin['id'])
  3. a. in the product listing in admin retrieve and show only the products for the actual admin id
    or
    b. hide the edit/delete buttons for the products which are not "owned" by the actual logged in admin
  4. don't forget to add code for a "master" admin (You) to be able to see/edit all products

Share this post


Link to post
Share on other sites
Hello Reiner, what do you mean?

 

  1. b. hide the edit/delete buttons for the products which are not "owned" by the actual logged in admin
  2. don't forget to add code for a "master" admin (You) to be able to see/edit all products

 

I would also like to lock the admins for certain buttons but have absolutely no Ahung as I should do it. Could you help me with this?

Tried to add a checkbox in administrators.php with the permission but it does not work.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×