X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Limit providers functionality in X-Cart Pro (https://forum.x-cart.com/showthread.php?t=29173)

Warwick 02-25-2007 12:09 PM

Limit providers functionality in X-Cart Pro
 
I suspect this will end up in a custom mod request but first let's explain what I'm after:

It's regarding providers possiblities in their providers section; I don't want them to have all features since most of them don't understand how to operate them and just cause chaos while 'operating' them; taxes, zones, variants etc. etc. some just don't get it.
Setting these things myself is 20 times faster then explaining (and over and over again).

Ok, then I should 'out comment' those things in the template you might say; well not every provider is unskilled so there are some that manage by themselves and I don't want to stop them from being able to do so.

Another solution is to make those skilled 'root provider' but that's just one step too far.

Are there ideas or experiences about this?

balinor 02-26-2007 03:49 AM

Re: Limit providers functionality in X-Cart Pro
 
So you want to limit the available functionality for just certain providers or all of them as a whole?

Warwick 02-26-2007 05:46 AM

Re: Limit providers functionality in X-Cart Pro
 
That's correct, for certain providers only.

balinor 02-26-2007 05:53 AM

Re: Limit providers functionality in X-Cart Pro
 
Ok, in that case you would need to surround the links with {if} statements, such as this:

{if $login eq "provider1" or $login eq "provider2"}
stuff to show here
{/if}

Switch out provider1 and provider2 with the actual usernames of those providers. Add as many or statements as you want.

Warwick 02-26-2007 06:25 AM

Re: Limit providers functionality in X-Cart Pro
 
So we're talking hard coding here? I don't believe with provider usernames you mean provider userlevel names? I.e. 'root provider', 'provider', 'my name provider' etc.

balinor 02-26-2007 06:26 AM

Re: Limit providers functionality in X-Cart Pro
 
Yes, hard coding. And no, I mean actual provider login usernames.

Warwick 02-26-2007 06:35 AM

Re: Limit providers functionality in X-Cart Pro
 
Good idea though! Wouldn't have any point trying to tweak so that userlevel names would do it; i.e. this isn't possible?

balinor 02-26-2007 06:38 AM

Re: Limit providers functionality in X-Cart Pro
 
Not sure what you mean...a provider is either a provider or a root provider in Pro, correct? I thought you said you didn't want to give people root provider access?

Warwick 02-26-2007 06:44 AM

Re: Limit providers functionality in X-Cart Pro
 
You're right on the not wanting to give root provider access; I mean by creating a new provider membership name which can be done, for example name: 'new provider' and then code it so that every 'new provider' account is handled by the {if} protocol.

So not by username but by (self created/named) userlevel.

balinor 02-26-2007 07:03 AM

Re: Limit providers functionality in X-Cart Pro
 
Ahhh....afraid I can't assist with that...I know very little about Pro :(


All times are GMT -8. The time now is 02:38 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.