X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Members en non members price (wholesale) (https://forum.x-cart.com/showthread.php?t=16397)

WPOO 09-06-2005 05:28 AM

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

balinor 09-08-2005 06:12 AM

Just to clarify, you want to display the retail and wholesale prices to everyone?

WPOO 09-08-2005 06:51 AM

Not really I just have one type of membership
 
The members recieve 5% discount on everything. I would like to display this without having to set the wholesale price. because now i have to calutate the price. I would like to do this automaticly. Thanks for the reply

if you look at the site www.shop4u.nl you wil see what i have tried to do but this does not work when members log in.


Thanks

balinor 09-08-2005 06:53 AM

Why not just set a global discount that applies to members at checkout?

WPOO 09-08-2005 07:06 AM

That sounds good. But poeple like to see the price
 
That sounds good but people would like to see the price they are going to be paying before they get into the laast screen.

Example

If you see that someone wil buy a computer for

1000 euros and they only see that the have to pay 900 euros at the laast screen they will most likely buy it at another store that displays the price as 950 eventhough it is more expensive.

Hoop i explaind it wel enough.

thanks again

WPOO 10-02-2005 10:35 AM

Does nobody have a solution
 
Can someone please help me.

rvargas 10-03-2005 01:05 PM

Different Prices depending on profile type
 
Quote:

Originally Posted by balinor
Just to clarify, you want to display the retail and wholesale prices to everyone?


I Want to have two prices for every product on my store, one for retail and one for wholesale, now I want wholesalers to register and send them a password (I rather check myself the info. they put on the form and then send them the password), once they log in they will only see prices for them(wholesalers).
I do not want regular customers to see whosale prices.

how do I acomplish this??

Thank you


All times are GMT -8. The time now is 09:27 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.