Post by akgamerx » Tue Nov 08, 2011 2:25 pm

Would love to see a "You Save: %" or "Save: %" standard in product prices when using a special price.

Newbie

Posts

Joined
Tue Aug 09, 2011 2:26 am

Post by jimmyphong » Tue Nov 08, 2011 3:00 pm

Code: Select all

$this->data['percent_savings'] = round((($product_info['price'] - $product_info['special']) / $product_info['price'] * 100));
this code can be to help !

Regards
Jimmy

News CMS || Plus SEO || Live Price change with Option Select


Active Member

Posts

Joined
Sat Aug 13, 2011 2:48 am


Post by roozaimee » Sat Nov 26, 2011 5:14 pm

hi

can anyone tell me how to put the code?
~beginner~

regards

Newbie

Posts

Joined
Sat Nov 26, 2011 12:12 pm

Post by greenpanda » Mon Nov 28, 2011 4:11 am

Thanks Jimmy - very nice. I'm using this code to show the exact saving:

Code: Select all

$this->data['you_save'] = $product_info['price'] - $product_info['special']; 
@roozaimee - It needs to go into the following file:
catalog/view/theme/[your-theme]/template/product/product.tpl

Newbie

Posts

Joined
Sun Nov 27, 2011 5:24 am

Post by carter16 » Thu Dec 01, 2011 11:03 pm

How to modify this code to make it work in featured module?

Newbie

Posts

Joined
Thu Dec 01, 2011 11:00 pm

Post by smifis » Sun Dec 04, 2011 9:01 pm

add it in the controller

Active Member

Posts

Joined
Sat Jan 15, 2011 10:37 pm


Post by GoGo OpenCart » Sun Dec 04, 2011 9:14 pm

You can take a look at this extension:

http://www.opencart.com/index.php?route ... on_id=4023

I also made it to be shown in the Featured module's box, by the request of the costumers who purchased it, so you'll get that, too, by email, without any additional charges.

See all my extensions: https://www.opencart.com/index.php?rout ... 20OpenCart


User avatar
Active Member

Posts

Joined
Mon Nov 14, 2011 11:30 pm

Post by missjames » Thu Dec 08, 2011 1:00 am

You might find this vQmod by Fido-X useful http://forum.opencart.com/viewtopic.php?f=131&t=39597

Version 1.5.1.3 newbie!!!!


User avatar
Newbie

Posts

Joined
Thu Nov 17, 2011 11:24 pm

Post by yesweus » Mon Aug 06, 2012 4:14 pm

Hi
I am new developer in opencart.
I am using Version 1.5.1.3 .
Where i put this codes.
Pls help

Newbie

Posts

Joined
Wed Feb 29, 2012 9:23 pm

Post by satish11nov » Mon Dec 17, 2012 2:05 am

where to put this code in product.tpl ?
$this->data['you_save'] = $product_info['price'] - $product_info['special'];

also , do i need to modify any other file?

Newbie

Posts

Joined
Fri Nov 30, 2012 6:14 pm

Post by ibietela » Sun Feb 03, 2013 4:12 am

Yeah Am interested. Where do we add the code?

New member

Posts

Joined
Fri Nov 09, 2012 12:39 am

User avatar
New member

Posts

Joined
Fri Feb 02, 2018 11:51 pm
Who is online

Users browsing this forum: No registered users and 27 guests