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)
-   -   Putting RRP and savings (as $) in product page. (https://forum.x-cart.com/showthread.php?t=28145)

xcarter 01-18-2007 01:49 PM

Putting RRP and savings (as $) in product page.
 
Hi guys,

Can someone please tell me how I can edit product page to show the RRP along with a saving in $ (not %) with the sale price.

For example: RRP: $89.95

Our Price: $69.95

Save $20.00!


There was a similar thread, but that wasn't much help.
Any help would be greatly appreciated.

Many thanks.

xcarter 01-30-2007 03:12 AM

Re: Putting RRP and savings (as $) in product page.
 
Anyone??

Please....

xcarter 01-31-2007 03:47 AM

Re: Putting RRP and savings (as $) in product page.
 
Has no-one implemented such a mod?

I think it's a very good idea, from a sales perspective.

PhilJ 01-31-2007 03:56 AM

Re: Putting RRP and savings (as $) in product page.
 
Try this...
Code:

{if $product.list_price ne "0"}
<b>{$lng.lbl_list_price}:</b> {$config.General.currency_symbol}{$product.list_price}<br>
<b>{$lng.lbl_price}:</b> {$config.General.currency_symbol}{$product.taxed_price}<br>
<b>{$lng.lbl_save}:</b> {$config.General.currency_symbol}{math equation="x - y" x=$product.list_price y=$product.taxed_price format="%.2f"} !
{/if}


xcarter 02-01-2007 03:42 AM

Re: Putting RRP and savings (as $) in product page.
 
Hey thanks so much for your help.

Though it didn't work. I kept getting an error.

Can you please tell me which file I should edit, and where?

I'm almost certain it should be product.tpl

Cheers. :)

PhilJ 02-01-2007 03:49 AM

Re: Putting RRP and savings (as $) in product page.
 
There was a typo, I've updated the code.

Demo - http://www.xcartmods.co.uk/demos/4018/product.php?productid=16134

The file is /skin1/customer/main/product.tpl

xcarter 02-01-2007 04:16 AM

Re: Putting RRP and savings (as $) in product page.
 
Worked a charm.
You're a master!

I'm indebted to you.

Thanks.

just wondering 02-01-2007 07:13 AM

Re: Putting RRP and savings (as $) in product page.
 
Doesn't the 4.1.x Version sort of do this by default, except it gives a % saving? (which, I suppose, could easily be changed...)

xcarter 02-04-2007 03:08 AM

Re: Putting RRP and savings (as $) in product page.
 
Is there anyway to edit that code so that if nothing is entered as list price, nothing else apart from the price itself shows.

Because, now for items with no saving I get

RRP: $29.95

Our Price: $29.95

You Save: $0.00!



Many thanks.

PhilJ 02-04-2007 03:28 AM

Re: Putting RRP and savings (as $) in product page.
 
Set your RRP to zero and it won't appear.

xcarter 02-05-2007 04:32 AM

Re: Putting RRP and savings (as $) in product page.
 
Hi, when I put zero in RRP nothing at all shows.

No RRP, List Price, or Saving.


Please help.
:(

PhilJ 02-05-2007 04:36 AM

Re: Putting RRP and savings (as $) in product page.
 
Double check you've used my updated code.

xcarter 02-05-2007 04:58 AM

Re: Putting RRP and savings (as $) in product page.
 
Yeah sure I have.

The other wasn't working.

Unless you've updated the code again?

PhilJ 02-05-2007 05:05 AM

Re: Putting RRP and savings (as $) in product page.
 
Code:

{if $product.list_price gt $product.taxed_price}
<b>{$lng.lbl_list_price}:</b> {$config.General.currency_symbol}{$product.list_price}<br>
<b>{$lng.lbl_price}:</b> {$config.General.currency_symbol}{$product.taxed_price}<br>
<b>{$lng.lbl_save}:</b> {$config.General.currency_symbol}{math equation="x - y" x=$product.list_price y=$product.taxed_price format="%.2f"} !
{/if}


xcarter 02-06-2007 04:15 AM

Re: Putting RRP and savings (as $) in product page.
 
This code gives me an error.

:(

PhilJ 02-06-2007 04:17 AM

Re: Putting RRP and savings (as $) in product page.
 
It would help if you post the error.


All times are GMT -8. The time now is 09:58 AM.

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