Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin Access With Levels


richlewt

Recommended Posts

Hi

I have just downloaded the module administrators v1.4.4 and have encountered the following problem.

I wish to set up a minimum level of admin access for people in the despatch department, all I want them to be able to see is the orders. I have set up this amount of access and it appears ok, until they try and print invoices or mailing labels and then their access appears blocked. If I go in myself with full access and try the same task it works ok, is there something I am doing wrong?

thanks

Rich

"May the seam be with you"

Link to comment
Share on other sites

I've been trying to figure out a good way to let the secretaries process orders... The only problem is however that I don't want them to even SEE the other stuff... They are the owners of the company so would like to check it all out... i don't want the to have that ability though...

 

Is there a way I could make an admin panel that'd be just orders? No extra links at all?

- - - -

Sometimes, ignorance is bliss.

Link to comment
Share on other sites

don't see why not.

 

copy the 2 main pages that run admin and have a fun time hacking away :D You might be able to expand upon the admin mod too.

 

I used to use a perl flatfile db script that made such things very easy. I've been thinking about this for a bit but have been too caught up with other contribs.

 

It's too bad that osc seems to a one man type of script, it does wonders at this level but when you start thinking of a slighty bigger enviornment ... :?

 

I'm building a shop for a friend who does most of the backend himself and has a high school boy do product management .... same person who believes in pagebuilder and loves to add head/body tags in the middle of html.

 

So -- a more versatile admin would be a blessing :D

NewsDesk(934) / FAQDesk(1106) / OrderCheck(1168) :::

Link to comment
Share on other sites

Hi

Anyone else mangage to think of a way around the limited access problem for allowing despatch department to not only look at the orders but be able to print the invoices?

thanks

Rich

"May the seam be with you"

Link to comment
Share on other sites

One solution would be to start with the existing ADMIN that ships with OSC use the ADDON that your are using and to create multiple versions of the ADMIN

 

Not the cleanest method but here is what we are currently doing, (somewhat driven by unique customer demands)

 

We have created Three different ADMIN each using the Admin addon. They all connect to the same administrators database.

 

The first one is the master ADMIN and is accessed by it own URL on the brwoser command line.

 

The second version of ADMIN takes some of the functionality of each of the categories and duplicates them into a BRAND NEW menu option This new menu option is then assigned a specific useranem and password and shows up in the left column as a selectable option.

 

The third version takes individual features and splits out the various parts into new sub-options that are password protected.

 

Each version of the ADMIN has its own unique URL. The passwords are all different.

 

We are currently working on a much cleaner version of this very ugly and crude (but effective) implementation. :D

Loren

 

 

The great thing about beating your head against the wall is that it feels SO GOOD when you stop!

Link to comment
Share on other sites

Cool, looking forward for it, work hard guys!

by the way, I have installed the administrator 1.4.4

All things go smoothly, only one problem, I found that no matter how i create the other users, the new added users can't be log in, only the original admin account can be login, any ideas?

Link to comment
Share on other sites

  • 3 weeks later...

Hi

I have made a little progress on this one but have now come up against a brick wall. I have gone to the administrators table and tried to add entries to the allowed_pages lines. I need to add a wildcard invoices.php entry, I have tried invoices.php* and invoices.php?oID=* but still no good. Is it that simple that all I need to do are add these entries into the table if I knew the correct syntax?

thanks

Rich

"May the seam be with you"

Link to comment
Share on other sites

You can get osCommers to send all orders to e-mail address. This way they don?t need to access the admin area.

 

Edit checkout_process.php

 

 

// send emails to other people 

 if (SEND_EXTRA_ORDER_EMAILS_TO != '') { 

// WebMakers.com Added: Wholesaler - Include Order # in subject 

// Add additional info to top of email 

//    tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, nl2br($email_order), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, ''); 

// WebMakers.com Added: Wholesaler - Modify Email for easier reading. 

   $email_order= $order->customer['firstname'] . ' ' . $order->customer['lastname'] . "n" . 'Telephone: ' . $order->customer['telephone'] . "n" . $order->customer['email_address'] . "nn" . $email_order; 



   tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, 'NEW - ' . EMAIL_TEXT_SUBJECT . ' #' . $insert_id, nl2br($email_order), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, ''); 

 }

 

 

 

/marie

Link to comment
Share on other sites

Nice thought but you still need access to print the packing slip and for when things go wrong. Unfortunately just adding |packingslip.php doesn't work because it needs a wildcard

Link to comment
Share on other sites

Come on chaps, someone must know how to crack this one, this is the one small thing I now need and I think its very important so we can serve up limited pages for other admins.

thanks

Rich

"May the seam be with you"

Link to comment
Share on other sites

Hi

With help from Karen its now cracked!! :D

go to /admin/includes/functions/administrators.php

and under the lines which start

// associate all the admin pages with the box class that includes it

$aADMPages = array( 'configuration.php' => 'configuration.php',

 

add the following 2 lines

'invoice.php' => 'customers.php',

'packingslip.php' => 'customers.php',

 

So all my packing department can see is Customers-Orders and now have the ability to print invoices and packing slips.

thanks

Rich

"May the seam be with you"

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...