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)
-   -   How to Show "List Price"? (https://forum.x-cart.com/showthread.php?t=39277)

pengrus 04-22-2008 12:34 PM

How to Show "List Price"?
 
Hi, I'd like to show the "List Price" right above our price on the Product detail page. Is this easy to do?

My x-cart is 4.1.8. I searched the forum and was not able to find a solution.

I was told many customers called in and questioned about the Save % money label. They said it is too misleading, and they expected additional discount on our price.

Many thanks!
Sean

Holub 04-23-2008 11:34 PM

Re: How to Show "List Price"?
 
All this data you can find at
/skin1/customer/main/products.tpl - one-column product listing
/skin1/customer/main/products_t.tpl - multi-column product listing
/skin1/customer/main/product.tpl - product details

for example in product.tpl you can find:

Code:

<table width="60" cellspacing="1" cellpadding="2">
<tr>
        <td class="SaveMoneyLabel">
<br />
{math equation="100-(price/lprice)*100" price=$product.taxed_price lprice=$product.list_price format="%3.0f" assign=discount}
&nbsp;<span id="save_percent">{ $discount }</span>%
        </td>
</tr>
</table>


This is SaveMoneyLabel code.


All times are GMT -8. The time now is 11:25 PM.

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