View Single Post
  #1  
Old 09-06-2005, 05:28 AM
 
WPOO WPOO is offline
 

Advanced Member
  
Join Date: May 2004
Location: Delft - Netherlands -
Posts: 31
 

Default Members en non members price (wholesale)

I think many of us have the same problem and that is that we would like to display the members and non member price.

I did this with a hard code work around but its not really a good solution.

Code:
<HR size="1" noshade width="100%" align="left"> {if $products[product].product_type eq "C"} {include file="buttons/details.tpl" href="product.php?productid=`$products[product].productid`&cat=`$cat`&page=`$navigation_page`"} {else} {if $active_modules.Subscriptions ne "" and $products[product].catalogprice} {include file="modules/Subscriptions/subscription_info_inlist.tpl"} {else} {if $products[product].taxed_price ne 0} {if $products[product].list_price gt 0 and $products[product].taxed_price lt $products[product].list_price} {math equation="100-(price/lprice)*100" price=$products[product].taxed_price lprice=$products[product].list_price format="%3.0f" assign=discount} {if $discount gt 0} <FONT class="MarketPrice"> {if $login ne ""} {$lng.txt_login_price}: {else} {$lng.lbl_market_price}: {/if} <S> {include file="currency.tpl" value=$products[product].list_price} </S></FONT> {/if} {/if} <FONT class="ProductPrice">{if $login ne ""}<font color="red">{$lng.txt_login_price}:</font> {else} {$lng.lbl_our_price}: {/if} {include file="currency.tpl" value=$products[product].taxed_price}</FONT><FONT class="MarketPrice">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].taxed_price}</FONT><FONT class="StudentenPrice"> {if $discount gt 0},{* {$lng.lbl_save_price} {$discount}%*}ACTIE</FONT>{/if} {if $products[product].taxes} {if $login ne ""} {* {if $discount gt 0}<FONT class="StudentenPrice">{$discount}% {$lng.lbl_save_price_extra} </FONT>{/if} *} {* <FONT class="StudentenPrice">{include file="currency.tpl" value=$products[product].taxed_price}</FONT> *} {else} {* {if $discount gt 0}<FONT class="StudentenPrice">{$discount}% {$lng.lbl_save_price_extra_nonmem} </FONT>{/if} *} <FONT class="StudentenPrice">{$lng.lbl_studenten_price}: [b]{include file="currency.tpl" value=$products[product].taxed_price*0.95}[/b]</FONT>{/if}

the line :

Code:
<FONT class="StudentenPrice">{$lng.lbl_studenten_price}: [b]{include file="currency.tpl" value=$products[product].taxed_price*0.95}

takes the price and multiplies it by .95 to get the members price which is always 5% discount.

Then i have to put the price in the wholesale area.

This is toooooooooooooo much workt.

My question is can anyone tel me how to display the 5% discount price and not have to go to each products wholesale because it is too much work.

Please let me know it would be very helpfull

Thanks Willem
__________________
X-Cart Gold 4.13
X-Configurator
X-ROM
Easy Checkout
Reply With Quote