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)
-   -   Suggested Retail (https://forum.x-cart.com/showthread.php?t=4111)

dawing 08-24-2003 06:14 PM

Suggested Retail
 
I would like to place a "Suggest Retail" price under my actual price. How do I do that?

Thanks!

shan 08-25-2003 03:44 AM

Is this not the market price ?

dawing 08-25-2003 06:43 PM

Detailed
 
Yes but it is not showing up on my detailed description page. It does show up on the first description.

Thanks!
Jerry

shan 08-26-2003 03:29 AM

you could add this

Code:

{if $product[product].list_price gt 0}
{math equation="100-(price/lprice)*100" price=$product[product].price lprice=$product[product].list_price format="%d" assign=discount}
<font class=MarketPrice>{$lng.lbl_market_price}: <s>
{include file="currency.tpl" value=$product[product].list_price}
</s></font>

{/if}


dawing 08-27-2003 03:33 AM

File
 
Thank you for the code. Could you please tell me what file or template this would be added to?

Thanks!

shan 08-27-2003 03:49 AM

the detailed description page is product.tpl

dawing 08-27-2003 01:35 PM

Tried
 
Almost everywhere in the file however it did not show the market price.

Anything else I can try?

Thanks.

shan 08-27-2003 03:13 PM

sorry, try this

Code:

{if $product.list_price gt 0}
{math equation="100-(price/lprice)*100" price=$product.price lprice=$product.list_price format="%d" assign=discount}
<font class=MarketPrice>{$lng.lbl_market_price}: <s>
{include file="currency.tpl" value=$product.list_price}
</s></font>
 
{/if}


dawing 08-27-2003 04:39 PM

Thanks
 
The code worked as it is showing up, however I attached a photo of what it looks like.


http://www.club5jax.com/images/details.gif

Here is the code:

<td>

{if $product.list_price gt 0}
{math equation="100-(price/lprice)*100" price=$product.price lprice=$product.list_price format="%d" assign=discount}
<font class=MarketPrice>{$lng.lbl_market_price}: <s>
{include file="currency.tpl" value=$product.list_price}
</s></font>

{/if}

{if $product.price ne 0}
<font class=ProductDetailsTitle>{include file="currency.tpl" value=$product.price}</font><font class=MarketPrice> {include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.price}</font>{if $config.Taxes.use_vat eq "Y" and $product.vat gt "0"}, {$lng.lbl_including_vat} {$product.vat}%{/if}

{else}
<input type=text size=7 name=price>
{/if}
</td>

august 08-31-2003 04:25 PM

As far as I know the "list_price" is the suggested retail price. Don't need extra code for it. :mrgreen:

dawing 08-31-2003 07:20 PM

Detailed Products
 
This is for the detailed products page. It wasn't showing until I put the code in. Now the price and the $ are on different lines and the regular price is offset from the label.

Thanks!


All times are GMT -8. The time now is 07:42 AM.

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