| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Limit providers functionality in X-Cart Pro | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() 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?
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25 X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many ∙∙ Experience: Somewhere beyond newbie ![]() ----------------------------------------------------------------------------------------------------------------------------------------- ![]() ![]() |
|||||||||
#2
|
|||||||
|
|||||||
![]() So you want to limit the available functionality for just certain providers or all of them as a whole?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||||
|
|||||||||
![]() That's correct, for certain providers only.
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25 X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many ∙∙ Experience: Somewhere beyond newbie ![]() ----------------------------------------------------------------------------------------------------------------------------------------- ![]() ![]() |
|||||||||
#4
|
|||||||
|
|||||||
![]() 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.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||||
|
|||||||||
![]() 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.
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25 X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many ∙∙ Experience: Somewhere beyond newbie ![]() ----------------------------------------------------------------------------------------------------------------------------------------- ![]() ![]() |
|||||||||
#6
|
|||||||
|
|||||||
![]() Yes, hard coding. And no, I mean actual provider login usernames.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||||
|
|||||||||
![]() Good idea though! Wouldn't have any point trying to tweak so that userlevel names would do it; i.e. this isn't possible?
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25 X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many ∙∙ Experience: Somewhere beyond newbie ![]() ----------------------------------------------------------------------------------------------------------------------------------------- ![]() ![]() |
|||||||||
#8
|
|||||||
|
|||||||
![]() 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?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#9
|
|||||||||
|
|||||||||
![]() 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.
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25 X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many ∙∙ Experience: Somewhere beyond newbie ![]() ----------------------------------------------------------------------------------------------------------------------------------------- ![]() ![]() |
|||||||||
#10
|
|||||||
|
|||||||
![]() Ahhh....afraid I can't assist with that...I know very little about Pro
![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
|||
X-Cart forums © 2001-2020
|