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

Hide prices specific to Category and Membership

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-14-2011, 08:40 AM
  mizNRG's Avatar 
mizNRG mizNRG is offline
 

Senior Member
  
Join Date: Jun 2010
Posts: 157
 

Default Hide prices specific to Category and Membership

I'm looking for a way to hide prices in specific categories based on membership levels.

Details: I have three categories each with products specific to individual memberships - ie: TORO Service Tools is only available to purchase by customers with the TORO membership, AGCO Service Tools purchasable by AGCO memberships, etc. Right now I have the products in these categories hidden unless they are logged in appropriately. What we would like to do instead is have all the products visible to all customers and have the prices only visible if they are logged in appropriately.

So my question is: how can I hide prices per category unless logged in with cooresponding membership?

I'm thinking that I could use an if/then statement something like {if $categoryid eq "250" and $membershipid eq "1"}show price{else}Login in to view Dealer Pricing{/if}. What's throwing me off is how to do this with three different statements - each for a different category/membership combo. Or, am I totally on the wrong path all together? Any assistance would be greatly appreciated!

Mel
__________________
X-Cart 4.4.4 Gold
Reply With Quote
  #2  
Old 05-24-2011, 04:17 PM
 
codeboy codeboy is offline
 

Newbie
  
Join Date: Apr 2011
Posts: 8
 

Default Re: Hide prices specific to Category and Membership

I am also looking to hide prices for non members, as well as hide "add to cart" button i guess since price will be evident if they can add it to the cart and get to the next screen.

version 4.4.2 gold

Much Thanks Ahead!
__________________
4.4.2
Reply With Quote
  #3  
Old 05-27-2011, 01:14 PM
 
codeboy codeboy is offline
 

Newbie
  
Join Date: Apr 2011
Posts: 8
 

Wink Re: Hide prices specific to Category and Membership

i solved this ...i found after hours where to fix the code... i have prices hidden for non members... also i hid add to cart button from non members and modified the item detail pages as well. i substituted in "please login to see price"

if you want my solution send me $5 and i will give it to you!

with slight modif it could be made to show prices or not based on user lvl.

deschmeyer@gmail.com
__________________
4.4.2
Reply With Quote
  #4  
Old 07-21-2011, 10:43 AM
  mizNRG's Avatar 
mizNRG mizNRG is offline
 

Senior Member
  
Join Date: Jun 2010
Posts: 157
 

Default Re: Hide prices specific to Category and Membership

Well, up until now I've been just hiding the products based on membership login. Now, I need to have all products visible but hide the prices/buttons accordingly based on the above description. I'm still struggling with the code and where to put it. Any advice?

Codeboy - were you able to do this based on category/membership combo or just whether they are members or not?
__________________
X-Cart 4.4.4 Gold
Reply With Quote
  #5  
Old 07-21-2011, 11:31 AM
 
codeboy codeboy is offline
 

Newbie
  
Join Date: Apr 2011
Posts: 8
 

Default Re: Hide prices specific to Category and Membership

sure man, let me get home to my dev machine and ill clue you in where to modify code.
__________________
4.4.2
Reply With Quote
  #6  
Old 07-21-2011, 11:32 AM
 
codeboy codeboy is offline
 

Newbie
  
Join Date: Apr 2011
Posts: 8
 

Default Re: Hide prices specific to Category and Membership

i did it based on logged in or not but you can probably modify it justa hair for membership level...
__________________
4.4.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 11:14 AM.

   

 
X-Cart forums © 2001-2020