Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Adding "Regular Price" + "Sale Price" to Product Detail Pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-03-2008, 09:08 AM
 
leagcyteam2 leagcyteam2 is offline
 

Member
  
Join Date: Aug 2005
Posts: 25
 

Default Adding "Regular Price" + "Sale Price" to Product Detail Pages

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!
Attached Thumbnails
Click image for larger version

Name:	CATEGORY.jpg
Views:	144
Size:	399.1 KB
ID:	1210  Click image for larger version

Name:	PRODUCT_DETAILS.jpg
Views:	146
Size:	448.6 KB
ID:	1211  
__________________
4.1.9
Reply With Quote
  #2  
Old 11-06-2008, 05:04 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default 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.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:39 PM.

   

 
X-Cart forums © 2001-2020