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

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

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-18-2007, 01:49 PM
 
xcarter xcarter is offline
 

Senior Member
  
Join Date: Sep 2005
Posts: 146
 

Default 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.
__________________
Version 4.1.9
Reply With Quote
  #2  
Old 01-30-2007, 03:12 AM
 
xcarter xcarter is offline
 

Senior Member
  
Join Date: Sep 2005
Posts: 146
 

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

Anyone??

Please....
__________________
Version 4.1.9
Reply With Quote
  #3  
Old 01-31-2007, 03:47 AM
 
xcarter xcarter is offline
 

Senior Member
  
Join Date: Sep 2005
Posts: 146
 

Default 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.
__________________
Version 4.1.9
Reply With Quote
  #4  
Old 01-31-2007, 03:56 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default 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}
__________________
xcartmods.co.uk
Reply With Quote
  #5  
Old 02-01-2007, 03:42 AM
 
xcarter xcarter is offline
 

Senior Member
  
Join Date: Sep 2005
Posts: 146
 

Default 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.
__________________
Version 4.1.9
Reply With Quote
  #6  
Old 02-01-2007, 03:49 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default 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
__________________
xcartmods.co.uk
Reply With Quote
  #7  
Old 02-01-2007, 04:16 AM
 
xcarter xcarter is offline
 

Senior Member
  
Join Date: Sep 2005
Posts: 146
 

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

Worked a charm.
You're a master!

I'm indebted to you.

Thanks.
__________________
Version 4.1.9
Reply With Quote
  #8  
Old 02-01-2007, 07:13 AM
 
just wondering just wondering is offline
 

X-Adept
  
Join Date: Oct 2006
Location: UK
Posts: 471
 

Default 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...)
__________________
Location: UK
X-Cart: Gold 4.4.2, Status: Finalizing
Template: Colors
Free Mods: Colour Coded Orders, FAQ Manager
Paid Mods: None... yet.
Server: Linux, Apache: 2.2.15 (Unix), MySQL: 5.0.90-community, PHP: 5.2.13
Reply With Quote
  #9  
Old 02-04-2007, 03:08 AM
 
xcarter xcarter is offline
 

Senior Member
  
Join Date: Sep 2005
Posts: 146
 

Default 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.
__________________
Version 4.1.9
Reply With Quote
  #10  
Old 02-04-2007, 03:28 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

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

Set your RRP to zero and it won't appear.
__________________
xcartmods.co.uk
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 08:16 AM.

   

 
X-Cart forums © 2001-2020