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)
-   -   List Market Price on Product Detail Page (https://forum.x-cart.com/showthread.php?t=20374)

bixnet 03-07-2006 07:50 PM

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

bixnet 03-07-2006 07:52 PM

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

smh7233 06-13-2006 09:12 AM

Did you ever figure this out? Im looking to do the same thing.

bixnet 06-13-2006 09:36 AM

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

bixnet 06-13-2006 09:38 AM

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

smh7233 06-13-2006 10:14 AM

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.

lannyg 07-10-2006 06:14 PM

market price in prod detail
 
Thanks for this mod, I just used it and worked great :)

qantixrob 07-13-2006 12:38 PM

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 ! :D

subzero 07-19-2006 01:50 AM

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

abeight 09-07-2006 07:30 AM

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?

tunnelvisionmusic 09-14-2006 07:21 PM

Re: List Market Price on Product Detail Page
 
I am using 4.1 and can't find the above code anyone one know where to look?

mrkenzie 09-15-2006 06:02 AM

Re: List Market Price on Product Detail Page
 
It is in the skin1/customer/main/product.tpl file where you add the code.

mssmit 11-25-2006 06:50 AM

Re: List Market Price on Product Detail Page
 
Quote:

Originally Posted by abeight
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?


change this

{if $product.list_price gt 0}

into

{if $product.list_price gt $product.taxed_price}

BMC Performance 12-31-2006 05:16 PM

Re: List Market Price on Product Detail Page
 
Awesome, thank you so much!!

Sisom 01-01-2007 02:08 PM

Re: List Market Price on Product Detail Page
 
Quote:

Originally Posted by bixnet
I added following lines on product.tpl:


<tr><td width="30%>

Bill Shu


Just in case anybody else hasn't noticed it, there is a speech mark missing from the above, after the 30%, it should be

<tr><td width="30%">

Could I also ask, what does the <S> tag do? I couldn't find anything about it on Google.

Sisom 01-01-2007 02:20 PM

Re: List Market Price on Product Detail Page
 
Does anybody know how to remove the strikethrough? And also does anybody know how to change the price from dollars to pounds? (I'm in the U.K.)

Sisom 01-14-2007 01:13 PM

Re: List Market Price on Product Detail Page
 
I contacted Qualiteam to find out how to fix this problem, so in case anybody else has got this far, the <S> tag is the strikethrough, and to show pounds instead of dollars, use:

{if $product.list_price gt $product.taxed_price}
<tr><td width="60" nowrap="nowrap">
{$lng.lbl_market_price}: </td><td>
&pound;{$product.list_price}
</td></tr> {/if}


lbl_market_price in this case is "R.R.P."

&pound; replaces the dollar sign

leagcyteam2 01-27-2007 02:00 PM

Re: List Market Price on Product Detail Page
 
I have a CSS Skin and I cannot find the text before which I am supposed to insert the MOD.

I have just added the MOD to a random spot in the file but it did not work.

Please advise...thanks!


All times are GMT -8. The time now is 05:39 AM.

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