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

User Account Levels

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 03-22-2016, 06:57 AM
  razorblade's Avatar 
razorblade razorblade is offline
 

Advanced Member
  
Join Date: Oct 2005
Posts: 39
 

Default User Account Levels

In our version of X4 - we were able to customize user account levels so that our customers could manually be assigned as 'Professional" or 'Retail' or neither.
All levels of buyers and casual browsers could see all the items in our store - however, only Professional buyers were allowed to purchase items that were marked as 'Professional'
Retail buyers or buyers with nothing assigned to their account would get a pop-up saying something along the lines of "this item is for professionals only..." when they attempted to add that item to their cart.
The way it is now - marking items as 'professional' hides the item from the other levels of buyers.
How can we change that so that all buyers can see all of the items in the store but only professional buyers can purchase professional items?
__________________
/razorblade pro/
v 5.2.21
linux 2.2.29
Reply With Quote
  #2  
Old 03-22-2016, 06:56 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: User Account Levels

Razor,
Your version is so incredibly old it is no wonder that the behavior is different!

What you want would have to be done as a customization, no settings exist for this that I know of.

I am in awe of both your join date, and the age of your store. I want to work for you.

-Mike
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #3  
Old 03-23-2016, 03:41 AM
  razorblade's Avatar 
razorblade razorblade is offline
 

Advanced Member
  
Join Date: Oct 2005
Posts: 39
 

Default Re: User Account Levels

Quote:
Originally Posted by totaltec
Razor,
Your version is so incredibly old it is no wonder that the behavior is different!

What you want would have to be done as a customization, no settings exist for this that I know of.

I am in awe of both your join date, and the age of your store. I want to work for you.

-Mike

It was a customization found on these forums then and I was hoping to find out how to do it now.
__________________
/razorblade pro/
v 5.2.21
linux 2.2.29
Reply With Quote
  #4  
Old 03-23-2016, 04:05 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: User Account Levels

Gotcha.
What version are you working with?
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #5  
Old 03-23-2016, 06:39 AM
  razorblade's Avatar 
razorblade razorblade is offline
 

Advanced Member
  
Join Date: Oct 2005
Posts: 39
 

Default Re: User Account Levels

Quote:
Originally Posted by totaltec
Gotcha.
What version are you working with?

X5 - as far as I can tell, latest update as well.
__________________
/razorblade pro/
v 5.2.21
linux 2.2.29
Reply With Quote
  #6  
Old 03-23-2016, 08:51 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: User Account Levels

I may be way off, as I have just looked for a few minutes here at the end of the day.

I think we may need to decorate: XLite\View\ItemsList\Product\Customer\ACustomer

I see the method getCacheParameters() has a reference to getMembership() method. I'm assuming that those cached parameters are used in building the list of items.At the moment, it is the only place that I see memebership mentioned in relation to a product list on the customer side. But I am tired and not able to dig deeper at the moment.

-Mike
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
razorblade (03-24-2016)
  #7  
Old 03-29-2016, 10:03 AM
  razorblade's Avatar 
razorblade razorblade is offline
 

Advanced Member
  
Join Date: Oct 2005
Posts: 39
 

Default Re: User Account Levels

Quote:
Originally Posted by totaltec
I may be way off, as I have just looked for a few minutes here at the end of the day.

I think we may need to decorate: XLite\View\ItemsList\Product\Customer\ACustomer

I see the method getCacheParameters() has a reference to getMembership() method. I'm assuming that those cached parameters are used in building the list of items.At the moment, it is the only place that I see memebership mentioned in relation to a product list on the customer side. But I am tired and not able to dig deeper at the moment.

-Mike

Hey Mike,
Were you able to poke around a bit more to see if this is doable?
__________________
/razorblade pro/
v 5.2.21
linux 2.2.29
Reply With Quote
  #8  
Old 03-31-2016, 02:37 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: User Account Levels

Unfortunately, I have been slammed and unable to offer any free poking around. If you want to open a ticket on this with us I will prioritize it though!
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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 01:14 PM.

   

 
X-Cart forums © 2001-2020