Community Add-Ons

Maintainers: pbrunnen
No public uploads allowed
Top » Order Total Modules

Percentage Discount w/ Quantity + Category Exclusion
for osCommerce Online Merchant v2.2

This add-on is register_globals compatible

Percentage Discount w/ Quantity + Category Exclusion
----
This order total module will compute a discount on each item in the order based on the percentage defined in the admin module control and subtract the discount from the order total. If ordered properly, it can be made to not effect tax calculations. This is perfect if you need to collect tax on total value and not paid amount.

It will process only if the minimum quantity of items are in the cart (also defined in the admin module control).

Additionally, category ids can be entered (in the admin module control) for exclusion. Items in these categories will not be discounted. This does not effect other items in non-excluded categories, which will still discount as expected.

Much of the base for this module was created from, and thus many thanks to the author of, 'ot_total.php' module v1.7 (2003/02/13 00:12:04 hpdl).

And as expected, released under the GNU General Public License provided with your distribution of osCommerce.

Enjoy. I hope it is found useful by others.
-Cheers, Peter.

Legend:  Download   Report
Expand All / Collapse All
v1.20 - Feature pbrunnen 22 Dec 2008  

A feature was added to enable recursive category exclusions via the module settings. Thus products that belong to categories which are inside of an excluded category will also be excluded automatically.

As always, please make sure to uninstall your existing percent discount module via the admin interface before replacing the files on your site. Failure to do so may cause unexpected behavior.

Enjoy. -Cheers, Peter.

v1.10 - Critical Update pbrunnen 10 Oct 2008  
Percentage Discount w/ Quantity + Category Exclusion pbrunnen 8 Sep 2008