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)
-   -   Adding "Regular Price" + "Sale Price" to Product Detail Pages (https://forum.x-cart.com/showthread.php?t=43415)

leagcyteam2 11-03-2008 09:08 AM

Adding "Regular Price" + "Sale Price" to Product Detail Pages
 
2 Attachment(s)
I give up!

I have been trying for 2 days...editing the Product.tpl as well as searching other template files to try and figure out how to do the following.

I want my PRODUCT DETAIL pages to show BOTH the "REGULAR PRICE" and then the "SALE PRICE" below just as the CATEGORY PAGES show.

I have attached 2 images to explain exactly what I need done. I simply do not know what code to put in the "customer/main/product.tpl" file

I want the data circled in the CATEGORY.JPG to be placed in the area within the PRODUCT_DETAILS.jpg

If anyone can help, I would appreciate it. Even for a fee...I need this done ASAP. Thanks!

JWait 11-06-2008 05:04 AM

Re: Adding "Regular Price" + "Sale Price" to Product Detail Pages
 
Try adding...
Code:

{if $discount gt 0}
<tr><td><font class="MarketPrice">{$lng.lbl_market_price}: <s>
{include file="currency.tpl" value=$products[product].list_price}
</s></font></td></tr>
{/if}


To your product.tpl directly above where it says
Code:

<tr><td class="ProductPriceConverting" valign="top">{$lng.lbl_price}:</td>

So that it looks like
Code:

{if $discount gt 0}
<tr><td><font class="MarketPrice">{$lng.lbl_market_price}: <s>
{include file="currency.tpl" value=$products[product].list_price}
</s></font></td></tr>
{/if}
<tr><td class="ProductPriceConverting" valign="top">{$lng.lbl_price}:</td>


It should do what you want, but I have not tested it.


All times are GMT -8. The time now is 06:34 PM.

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