Post by akaash_garg » Thu Mar 18, 2010 12:19 pm

Hi,

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

Newbie

Posts

Joined
Wed Mar 10, 2010 12:34 am

Post by 24-7-open » Thu Mar 18, 2010 3:56 pm

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

New member

Posts

Joined
Tue Feb 23, 2010 6:45 pm

Post by akaash_garg » Fri Mar 19, 2010 12:56 am

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
Last edited by i2Paq on Sat Mar 20, 2010 3:55 am, edited 4 times in total.
Reason: No need to bump within 24hrs with no new info

Newbie

Posts

Joined
Wed Mar 10, 2010 12:34 am

Post by webvet » Sat Mar 20, 2010 3:51 am

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?

Genuine, Honest Opencart Support @ http://webvetservices.com


User avatar
Active Member

Posts

Joined
Thu May 14, 2009 2:04 am
Location - Shropshire, UK

Post by i2Paq » Sat Mar 20, 2010 3:56 am

Do you use a non modified default template?

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by akaash_garg » Sun Mar 21, 2010 11:49 am

i2Paq wrote:Do you use a non modified default template?

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

Newbie

Posts

Joined
Wed Mar 10, 2010 12:34 am

Post by i2Paq » Sun Mar 21, 2010 6:00 pm

Link to your shop?

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by japanees » Sun Mar 21, 2010 6:40 pm

I am looking for the same thing,

price
normal price
you saved

Is that possible?

New member

Posts

Joined
Sat Mar 20, 2010 12:34 am

Post by i2Paq » Sun Mar 21, 2010 6:43 pm

japanees wrote:I am looking for the same thing,

price
normal price
you saved

Is that possible?
This is something completly differend.

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by akaash_garg » Mon Mar 22, 2010 2:22 am

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 ?

Newbie

Posts

Joined
Wed Mar 10, 2010 12:34 am

Post by akaash_garg » Mon Mar 22, 2010 2:23 am

http://tandtbooks.com/

Link to the website

Newbie

Posts

Joined
Wed Mar 10, 2010 12:34 am

Post by i2Paq » Mon Mar 22, 2010 2:40 am

Maybe you should first add products to the Special Offers.....

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by akaash_garg » Mon Mar 22, 2010 11:51 am

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

Newbie

Posts

Joined
Wed Mar 10, 2010 12:34 am

Post by akaash_garg » Mon Mar 22, 2010 11:54 am

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

Newbie

Posts

Joined
Wed Mar 10, 2010 12:34 am

Post by rph » Mon Mar 22, 2010 2:00 pm

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.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by optimus_1 » Tue Sep 07, 2010 9:51 am

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

Newbie

Posts

Joined
Sat Sep 04, 2010 9:36 am

Post by clapiana » Thu Sep 22, 2011 7:24 pm

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

New member

Posts

Joined
Thu Sep 01, 2011 6:22 pm

Post by rph » Fri Sep 23, 2011 12:40 pm

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

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by clapiana » Sat Sep 24, 2011 8:53 pm

ryan you are the man!!! thanks dude that works

New member

Posts

Joined
Thu Sep 01, 2011 6:22 pm

Post by shiokguy » Tue Oct 11, 2011 4:39 pm

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

New member

Posts

Joined
Wed Jul 13, 2011 3:28 pm
Who is online

Users browsing this forum: No registered users and 69 guests