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

List Market Price on Product Detail Page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-07-2006, 07:50 PM
 
bixnet bixnet is offline
 

Newbie
  
Join Date: Mar 2006
Posts: 6
 

Default List Market Price on Product Detail Page

Hi,

I have X-Cart 4.0 gold, I would like to add "Maket Price" above "Sale Price", how to do it?

Thank you in advance

Bill Shu
BiX Computers
__________________
xcart gold 4.0
Reply With Quote
  #2  
Old 03-07-2006, 07:52 PM
 
bixnet bixnet is offline
 

Newbie
  
Join Date: Mar 2006
Posts: 6
 

Default sorry, forgot to tell which page

Sorry, I mean in product detail page, I like to list "Market Price" above "Sale Price"

Thanks.

Bill Shu
__________________
xcart gold 4.0
Reply With Quote
  #3  
Old 06-13-2006, 09:12 AM
 
smh7233 smh7233 is offline
 

Member
  
Join Date: Dec 2005
Posts: 13
 

Default

Did you ever figure this out? Im looking to do the same thing.
__________________
Gold 4.1.9
Reply With Quote
  #4  
Old 06-13-2006, 09:36 AM
 
bixnet bixnet is offline
 

Newbie
  
Join Date: Mar 2006
Posts: 6
 

Default

I added following lines on product.tpl:


<tr><td width="30%>
<FONT class="MarketPrice">{$lng.lbl_market_price}: </td><td><S>
${$product.list_price}
</S></FONT></td></tr> {/if}

The line was added before:

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



Bill Shu
__________________
xcart gold 4.0
Reply With Quote
  #5  
Old 06-13-2006, 09:38 AM
 
bixnet bixnet is offline
 

Newbie
  
Join Date: Mar 2006
Posts: 6
 

Default

Sorry, I missed one line, the complete added lines are:

{if $product.list_price gt 0}

<tr><td width="30%>
<FONT class="MarketPrice">{$lng.lbl_market_price}: </td><td><S>
${$product.list_price}
</S></FONT></td></tr> {/if}


This way, if you don't have a list price, then it will not show on the page.

Bill Shu
__________________
xcart gold 4.0
Reply With Quote
  #6  
Old 06-13-2006, 10:14 AM
 
smh7233 smh7233 is offline
 

Member
  
Join Date: Dec 2005
Posts: 13
 

Default

Quote:
Originally Posted by bixnet
Sorry, I missed one line, the complete added lines are:

{if $product.list_price gt 0}

<tr><td width="30%>
<FONT class="MarketPrice">{$lng.lbl_market_price}: </td><td><S>
${$product.list_price}
</S></FONT></td></tr> {/if}


This way, if you don't have a list price, then it will not show on the page.

Bill Shu


Thanks That worked. Any idea how I could make the font bigger and or have it bold just like the Price.
__________________
Gold 4.1.9
Reply With Quote
  #7  
Old 07-10-2006, 06:14 PM
 
lannyg lannyg is offline
 

Member
  
Join Date: Jun 2006
Posts: 23
 

Default market price in prod detail

Thanks for this mod, I just used it and worked great
__________________
Version 4.0.18 [unix]
Reply With Quote
  #8  
Old 07-13-2006, 12:38 PM
 
qantixrob qantixrob is offline
 

Member
  
Join Date: Dec 2005
Posts: 22
 

Default Thanks from me !

Just to add my thanks - it's neat and shows the clearly the benefit of the price you are offering the product at, compared to the retail price - just a bit more psychology to help with the sale !
__________________
Rob - www.eyewearsystems.co.uk
v4.0.16 [UNIX]
England
Reply With Quote
  #9  
Old 07-19-2006, 01:50 AM
 
subzero subzero is offline
 

eXpert
  
Join Date: Mar 2005
Posts: 238
 

Default

worked a treat thanks
to make it bold or bigger just find marketprice in skin1.css file and change it to you liking

does anyone know how to stop it showing this price as crossed out??? id like to remove the strike thru from the price
__________________
Version 4.0.17
Reply With Quote
  #10  
Old 09-07-2006, 07:30 AM
  abeight's Avatar 
abeight abeight is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Cleveland, OH
Posts: 479
 

Default Re: List Market Price on Product Detail Page

I used this code on my product.tpl file, but the problem that I ran into is that it always displays the market price even if the product isn't on sale. How would you make it appear only if the product is listed with a sale price?
__________________
~ Andrea Beight
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 11:47 AM.

   

 
X-Cart forums © 2001-2020