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

Display Market Price on Product Detail page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-15-2008, 09:20 PM
 
wicked wicked is offline
 

Advanced Member
  
Join Date: Aug 2005
Location: Sydney
Posts: 39
 

Default Display Market Price on Product Detail page

Can someone advise how to Display Market Price on Product Detail page as well as the discounted price as Xcart by default only displays the discounted price, thanks.
__________________
Cheers, Steve

Wicked Digital | Jacksons Rare Guitars | Boutique Music
Reply With Quote
  #2  
Old 06-16-2008, 12:27 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Display Market Price on Product Detail page

{$product.list_price} - Market price

{$product.taxed_price} - Taxed Price

Just add this varible in the file skin1/customer/main/product.tpl
Reply With Quote
  #3  
Old 06-16-2008, 01:34 AM
 
wicked wicked is offline
 

Advanced Member
  
Join Date: Aug 2005
Location: Sydney
Posts: 39
 

Default Re: Display Market Price on Product Detail page

That is great, but I should explain further: It should only display the Market price (And Label) if the sell price is not the same. And if it is the same, then only show Sell Price. Please advise....
__________________
Cheers, Steve

Wicked Digital | Jacksons Rare Guitars | Boutique Music
Reply With Quote
  #4  
Old 07-04-2008, 07:42 PM
 
s.morgan s.morgan is offline
 

Member
  
Join Date: Jan 2007
Posts: 10
 

Default Re: Display Market Price on Product Detail page

I have exactly the same problem, anyone can help?
__________________
s.morgan/l.zhang

X-Cart 4.1.9

Hosting: www.ewdhosting.com
Reply With Quote
  #5  
Old 10-19-2008, 07:41 AM
  JWait's Avatar 
JWait JWait is offline
 

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

Default Re: Display Market Price on Product Detail page

Quote:
Originally Posted by wicked
That is great, but I should explain further: It should only display the Market price (And Label) if the sell price is not the same. And if it is the same, then only show Sell Price. Please advise....

X-cart does this by default. In admin - general settings - product options options tr checking the "The dynamic updating of the Save Money label depending on the selected product options is enabled:" and see if that does it. It should display "Market Price" and a "Save %" graphic if the "price" is less than the "market price", or only the "price" if they are the same or "market price" is less than "price".

This is determined by the following code ( I pulled mine from product.tpl version 4.1.11 but yours should be the same). Also, products.tpl and products_t.tpl should have something similar if not the same code. This displays "Market Price" and "Price".
Code:
{if $product.taxed_price ne 0 || $variant_price_no_empty} <font class="ProductDetailsTitle"><span id="product_price" style="white-space: nowrap;">{include file="currency.tpl" value=$product.taxed_price plain_text_message=true}</span></font><font class="MarketPrice"> <span id="product_alt_price" style="white-space: nowrap;">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.taxed_price plain_text_message=true}</span></font> {if $product.taxes}<br />{include file="customer/main/taxed_price.tpl" taxes=$product.taxes}{/if} {else} <input type="text" size="7" name="price" /> {/if}
In the same file but closer to the top you will 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 displays the "Save Money" graphic, and if I remember right, is only in product.tpl.
__________________
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:43 AM.

   

 
X-Cart forums © 2001-2020