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

Member AND Non-Member price display

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-20-2004, 09:14 AM
 
instinctual instinctual is offline
 

eXpert
  
Join Date: Nov 2003
Posts: 247
 

Default Member AND Non-Member price display

Anybody figure out how to display both member AND non-member pricing? I saw another post where somebody was just putting the membership price in the product description and relying on coupons, but that doesn't seem very "automatic".

{include file="currency.tpl" value=$products[product].price}

It seems like this smarty tag could just be modified, but yet not sure - maybe product.php would have to be first?

Here is the SQL statement in product.php that displays the wholesale price - just not sure where to make mods that will work.

$wresult = func_query ("SELECT * FROM $sql_tbl[pricing] WHERE productid='$productid' AND ($sql_tbl[pricing].membership='".@$user_account["membership"]."' or $sql_tbl[pricing].membership='') AND $sql_tbl[pricing].quantity>1 ORDER BY quantity");


Anybody have an answer?>

I'm running 4.0.3 - - - any help is appreciated!

Thanks -
Reply With Quote
  #2  
Old 09-29-2004, 04:40 PM
 
x-online x-online is offline
 

Senior Member
  
Join Date: Apr 2004
Location: Australia, Sydney
Posts: 189
 

Default Hum.

Please check your PM for the website.

I don't know if the link i send you is something that you're after..

I have disabled any "end-user" prices.
I only show the price if they're in a certain membership (as my client is wholesaler)
__________________
X-Cart version 4.x (Most likely will be the latest version)
Reply With Quote
  #3  
Old 09-30-2004, 06:59 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

I've got a set of wholesale tools available on cart-lab.com that makes such easy to implement along with other features you can offer your wholesale customers.

http://www.cart-lab.com/lab/customer/product.php?productid=9
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #4  
Old 09-30-2004, 09:47 AM
 
instinctual instinctual is offline
 

eXpert
  
Join Date: Nov 2003
Posts: 247
 

Default Fixed...

Well, don't ask me how exactly, cuz it was late...but I made this work by reversing what x-cart was doign with the retail vs. list price. We don't use list price, so I made that the "member price" and then in my if/then have it displaying both prices in products.tpl and product.tpl.

How exciting, oh boy, another workaround to a workaround
Reply With Quote
  #5  
Old 01-24-2005, 01:19 AM
 
ozzy ozzy is offline
 

Member
  
Join Date: Mar 2004
Posts: 16
 

Default

Hi instinctual,

can you share your solution ?

Thank in advance
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:10 AM.

   

 
X-Cart forums © 2001-2020