If you are running any promotions (Specials in OpenCart parlance), then it is a great idea to tell the customers not only what the regular and special prices are, but also what they are saving.I would like to donate this code to OpenCart core as it is useful for many people.
I have already submitted a pull request (meaning submitted the code to core team).
Please vote at http://opencart.uservoice.com/forums/52 ... e-you-save to encourage the core team to include my code (this feature) in OpenCart core.
Following the example of Amazon, this extension add a savings notice "You save: $x (y%)" below the price on product page. Because this is a vQmod, no core files are touched, and the changes should carry over to the next version.
I hope you enjoy this extension. If you'd like to donate, please click on the Donate button in my signature.
Requirements
- This is a vQmod for Opencart. Hence you need Opencart (tested on 1.5.3.1) and vQmod (tested on 2.1.7) preinstalled. Opencart is available at http://www.opencart.com/index.php?route ... d/download and vQmod is available at http://code.google.com/p/vqmod/downloads/list
- This vQmod is made for the Default theme. Hence you should have the default theme as the active theme for this to work. While you can very easily modify this for other themes, the out-of-the-box support is only for Default theme. If you don't know how, and need me to do paid customization, please PM me
Upload the contents of the uploads folder to your shop's root folder.
Styling
You can change what the savings notice looks like by adding you-save class to your stylesheet.css e.g.
Code: Select all
.you-save {color:red;}
If you have a non English language installed, you need to edit the file
Code: Select all
catalog/language/yourlanguage/product/product.php
Code: Select all
// Entry
Code: Select all
$_['text_yousave'] = 'You save:';
Extension page: http://www.opencart.com/index.php?route ... on_id=8319