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.10 - Critical Update pbrunnen 10 Oct 2008  

Major bug fixed where item quantity not computed into discount (all items treated as qty.1). Also removed several lines of code not needed due to finding a built-in variable.

Enjoy. -Cheers, Peter.

Percentage Discount w/ Quantity + Category Exclusion pbrunnen 8 Sep 2008