Page 1 of 2

How to show both normal price and discount price

Posted: Thu Mar 18, 2010 12:19 pm
by akaash_garg
Hi,

please tell me how to show both the list price and discouted price on the store front and product description page ??

Re: How to show both normal price and discount price

Posted: Thu Mar 18, 2010 3:56 pm
by 24-7-open
See the special tab in the product sheets. It's the fifth tab after General, Data, Options and (quantity) Discount.

Catalogue > Products > edit a specific product

Greetings,

24-7-open

Re: How to show both normal price and discount price

Posted: Fri Mar 19, 2010 12:56 am
by akaash_garg
thanks for Replying
But I am using opencart 1.4 and after entering any special price to the product it is only shows the special price on the store front.

I want my customers to see both the prices ie.

Price before Discount
Price after Discount
on the same page where product details are shown
But it is only showing special price ....
How to do that ??

Please Guide

Regards Akaash Garg

Re: How to show both normal price and discount price

Posted: Sat Mar 20, 2010 3:51 am
by webvet
I am running v1.4.0 and it displays both normal and special price on all pages with no problem.

Which 1.4.x version are you using?

Re: How to show both normal price and discount price

Posted: Sat Mar 20, 2010 3:56 am
by i2Paq
Do you use a non modified default template?

Re: How to show both normal price and discount price

Posted: Sun Mar 21, 2010 11:49 am
by akaash_garg
i2Paq wrote:Do you use a non modified default template?

Yes I am using non modified default template... ???
What I need to use ?

Re: How to show both normal price and discount price

Posted: Sun Mar 21, 2010 6:00 pm
by i2Paq
Link to your shop?

Re: How to show both normal price and discount price

Posted: Sun Mar 21, 2010 6:40 pm
by japanees
I am looking for the same thing,

price
normal price
you saved

Is that possible?

Re: How to show both normal price and discount price

Posted: Sun Mar 21, 2010 6:43 pm
by i2Paq
japanees wrote:I am looking for the same thing,

price
normal price
you saved

Is that possible?
This is something completly differend.

Re: How to show both normal price and discount price

Posted: Mon Mar 22, 2010 2:22 am
by akaash_garg
i2Paq wrote:
japanees wrote:I am looking for the same thing,

price
normal price
you saved

Is that possible?
This is something completly differend.

yes this is what i am asking ?

Re: How to show both normal price and discount price

Posted: Mon Mar 22, 2010 2:23 am
by akaash_garg
http://tandtbooks.com/

Link to the website

Re: How to show both normal price and discount price

Posted: Mon Mar 22, 2010 2:40 am
by i2Paq
Maybe you should first add products to the Special Offers.....

Re: How to show both normal price and discount price

Posted: Mon Mar 22, 2010 11:51 am
by akaash_garg
i2Paq wrote:Maybe you should first add products to the Special Offers.....
Thank you i1Paq for your reply ... I have got the solution... actually I was leaving blank the "priority in special discount" ... This is such a silly mistake ....

I am really sorry for your time..


Thank you again


Akaash

Re: How to show both normal price and discount price

Posted: Mon Mar 22, 2010 11:54 am
by akaash_garg
i2Paq wrote:
japanees wrote:I am looking for the same thing,

price
normal price
you saved

Is that possible?
This is something completly differend.
I am looking for this query also ...
If you can help please... your help will be appreciated...

Regards

Re: How to show both normal price and discount price

Posted: Mon Mar 22, 2010 2:00 pm
by rph
This should be done properly in the backend but this will work:

/catalog/view/theme/[theme]/template/product/category.tpl (and other places)

Code: Select all

<span style="color: #900; font-weight: bold; text-decoration: line-through;"><?php echo $products[$j]['price']; ?></span> <span style="color: #F00;"><?php echo $products[$j]['special']; ?></span>
to

Code: Select all

<span style="color: #900; font-weight: bold; text-decoration: line-through;"><?php echo $products[$j]['price']; ?></span> <span style="color: #F00;"><?php echo $products[$j]['special']; ?></span><br /><span>You save: <?php $save = (preg_replace('/[^0-9.]/', '', $products[$j]['price']) - preg_replace('/[^0-9.]/', '', $products[$j]['special'])); echo "$" . number_format($save, 2); ?></span>
Note that this will display only one hardcoded currency.

Re: How to show both normal price and discount price

Posted: Tue Sep 07, 2010 9:51 am
by optimus_1
Sorry to resurrect the topic, I have managed to put the above in and it is working:

http://www.electricseconds.com/shop

RRP: $219.00
Our Price: $129.00
You save: $90.00

BUT how would I get that same format to show up on the actual product page like for example on this one?
I would like to replace the price field in the top to actually read the same as per above?

http://www.electricseconds.com/shop/ld1420t2

Any help would be much appreciated

Re: How to show both normal price and discount price

Posted: Thu Sep 22, 2011 7:24 pm
by clapiana
rhp the above works great thank you. i am using it for an update to the category and special listings.

i really would like to also see a 'you saved' in the product page but can not figure out how to do it. any idea?

here the "you saved" shows on a category listing and also the special listing which is perfect when i click on a product i am hoping to also display it on the product page, too.

http://www.chefwarekits.com/chefware-items
http://www.chefwarekits.com/index.php?r ... ct/special

i tried looking at this thread and reviewing the 1493 version vs mine using winmerge but still no dice.
http://forum.opencart.com/viewtopic.php?f=22&t=22341

i am using oc 1495

blessings!
craig

Re: How to show both normal price and discount price

Posted: Fri Sep 23, 2011 12:40 pm
by rph
Haven't tested it but it should work by replacing

Code: Select all

<span style="text-decoration: line-through;"><?php echo $price; ?></span> <span style="color: #F00;"><?php echo $special; ?></span>
with

Code: Select all

<span style="text-decoration: line-through;"><?php echo $price; ?></span> <span style="color: #F00;"><?php echo $special; ?></span><br /><span>You save: <?php $save = (preg_replace('/[^0-9.]/', '', $price) - preg_replace('/[^0-9.]/', '', $special)); echo "$" . number_format($save, 2); ?></span>
in catalog/view/theme/default/template/product/product.tpl

Re: How to show both normal price and discount price

Posted: Sat Sep 24, 2011 8:53 pm
by clapiana
ryan you are the man!!! thanks dude that works

Re: How to show both normal price and discount price

Posted: Tue Oct 11, 2011 4:39 pm
by shiokguy
Dear rph
Thank you for your contribution, I am looking for something slightly different.
I am using 1.5.1.1
Default Template

I have 3 customer groups:
1. Default (Retail)
2. Wholesales
3. Prepaid

I would like to displace all 3 prices even when they are not logon, all the visitor will see all the price:

For example: -
Product Code: 82912
Reward Points: 0
Availability:In Stock
Retail Price: RM44.00
Wholesales Price: RM32.00
Prepaid Price: RM32.00

I would love to have this in HOME PAGE, Category and Product Listing

Kindly help!

Regards
mike

rph wrote:Haven't tested it but it should work by replacing

Code: Select all

<span style="text-decoration: line-through;"><?php echo $price; ?></span> <span style="color: #F00;"><?php echo $special; ?></span>
with

Code: Select all

<span style="text-decoration: line-through;"><?php echo $price; ?></span> <span style="color: #F00;"><?php echo $special; ?></span><br /><span>You save: <?php $save = (preg_replace('/[^0-9.]/', '', $price) - preg_replace('/[^0-9.]/', '', $special)); echo "$" . number_format($save, 2); ?></span>
in catalog/view/theme/default/template/product/product.tpl