Administrator
- Join Date:
- Feb 2006
- Location:
- Tampa Bay, Florida
- Posts:
- 10,748
- Plugin Contributions:
- 56
Interoperability betwen Super Orders/Edit Orders and non-native discounting mods
If you are using Super Orders or Edit Orders and an order total discount other than Group Discounts (e.g. Better Together, Quantity Discounts, Military Discounts, Newsletter Discounts, Combination Discounts, Big Spender, Big Chooser, Frequency Discounts, or any other contribution written by someone other than me), the process of editing an order using either of those mods will flip the sign on a discount causing it to appear to be a surcharge.
The fix is straightforward; both admin/edit_orders.php and admin/super_edit.php simply list discount classes ("ot_coupon", etc.) You simply have to add any additional classes you are using to if statements in those two files which enumerate through the order total discount classes. Searching for "ot_coupon" will show you what to change.
The full fix and more notes are on my blog at http://thecartblog.com/2009/12/21/zen-cart-edit-orders-and-my-discounting-mods/
Scott
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.