Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Give Fulfillment Access to Users

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 03-05-2007, 01:23 PM
 
skipmartin skipmartin is offline
 

Advanced Member
  
Join Date: Oct 2003
Posts: 30
 

Default Give Fulfillment Access to Users

Thought this might be helpful. If your fulfillment staff should also be able to manage user profiles, here is what you need to do:

1. Edit /includes/security.php

Find:
Code:
if ($user_account["flag"] == "FS") { $_fulfillment_scripts = array( "orders.php", "order.php", "generator.php", "statistics.php", .....

and add these to the array:
Code:
"users.php", "user_modify.php", "user_profiles.php"

Be sure you add a comma to the last entry before you add the three lines above, and leave off the comma on the very last item.

2. Open /skin1/fulfillment/home.tpl

Add:
Code:
{elseif $main eq "users"} {include file="admin/main/users.tpl"} {elseif $main eq "user_profile"} {include file="admin/main/register.tpl"}

before this line:
Code:
{else} {include file="common_templates.tpl"} {/if}

That should do it.

Happy modding!!
Andy
__________________
Andy Melichar, Tech Director - REBEL INTERACTIVE -
andy@rebel-interactive.com - X-Cart version 4.1.3
Reply With Quote
  #2  
Old 11-01-2007, 09:54 AM
 
computerclone computerclone is offline
 

Advanced Member
  
Join Date: Aug 2005
Posts: 36
 

Default Re: Give Fulfillment Access to Users

Dude you rock... Thanks
__________________
X-Cart Gold 4.31, 4.23 and so and so forth...
Add-on: X-Affiliate
Add-on: X-Configurator
Add-on: X-RMA (Return Merchandise Authorization)
Add-on: X-FeatureComparison
Add-on: X-SpecialOffers
Add-on: X-AOM (Advanced Order Management)
Tabs for product pages

www.definedmedia.com
Reply With Quote
  #3  
Old 01-02-2008, 07:31 AM
 
skipmartin skipmartin is offline
 

Advanced Member
  
Join Date: Oct 2003
Posts: 30
 

Default Re: Give Fulfillment Access to Users

Also you need to edit /skin1/fulfillment/menu.tpl

Add
Code:
<a href="{$catalogs.admin}/users.php" class="VertMenuItems">{$lng.lbl_users}</a><br />

Before
Code:
<a href="{$catalogs.admin}/orders.php" class="VertMenuItems">{$lng.lbl_orders}</a><br />
__________________
Andy Melichar, Tech Director - REBEL INTERACTIVE -
andy@rebel-interactive.com - X-Cart version 4.1.3
Reply With Quote
  #4  
Old 01-29-2008, 06:33 AM
 
stagshop stagshop is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 32
 

Default Re: Give Fulfillment Access to Users

Good to know.

This is actually similar to a thread I posted earlier. Not just for Users, but for any other access you wish to grant FulFillment Staff.

http://forum.x-cart.com/showthread.php?t=34282

I was able to use this to allow Fulfillment accounts to access Surveys, Ratings, Wish Lists, Reviews (add-on that I'm just installing now), etc.

Balinor is awesome.
__________________
x-cart v 4.5.4
Reply With Quote
  #5  
Old 03-16-2010, 10:12 AM
  icnjan's Avatar 
icnjan icnjan is offline
 

Advanced Member
  
Join Date: Nov 2004
Location: Wine Country, California
Posts: 80
 

Default Re: Give Fulfillment Access to Users

The posts from skipmartin work like a charm! Is there any way to restrict this access to ONLY customer profiles since the way this works now allows access to administrator, customer and partner profiles?
__________________
X-Cart Version 4.1.12
Dedicated server
Reply With Quote
  #6  
Old 12-06-2010, 07:45 PM
 
Needlejig Needlejig is offline
 

Advanced Member
  
Join Date: Sep 2010
Posts: 84
 

Default Re: Give Fulfillment Access to Users

This worked great but can you tell me how to enable the fulfillment staff access to user_add.php?

I added it to security.php so it allows the page but blank and warns "The requested page does not exist or you are not allowed to access it!"

I am thinking that user_add.php needs to be modified but how?

Thanks,
Marc
__________________
4.4.1 <-- Live
X-payments <--not installed
Reply With Quote
  #7  
Old 02-17-2011, 10:35 AM
 
avimyers avimyers is offline
 

Newbie
  
Join Date: Feb 2011
Posts: 7
 

Default Re: Give Fulfillment Access to Users

Thanks for that! I've tried to get fulfillment staff able to add products. It works, but the generate thumbnail feature doesn't work and it doesn't show the image when an image is uploaded. Any idea on how to do this, and what lines to add to security.php and the home.tpl?

Thanks
__________________
X Cart Gold- 4.4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:29 AM.

   

 
X-Cart forums © 2001-2020