Active
Project:
Ubercart Fee
Version:
6.x-1.0-beta2
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Aug 2010 at 15:49 UTC
Updated:
16 May 2011 at 08:30 UTC
Jump to comment: Most recent file
First off, thank you for a great module!
I'm having some trouble figuring out the best conditional action setup for a particular case. I'm learning through trial & error. Because of that, i've wrongfuly applied fees that i need to delete or edit on a number of orders. But when I edit or delete the uc_fee line item in an order and click the Submit changes button, changes are not saved. I guess that's what you would call sticky fees! :-) See attachment.
I've tried deactivating and reactivating the module. Still the same. I'm thinking about deactivating & uninstalling the module before reactivating but I'm affraid this will delete all applied fees, including those which are OK. Am I right?
Help!
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | regen_fees_in_checkout_only-889706-2.patch | 732 bytes | stewart.adam |
| Picture 3.jpg | 105.88 KB | bisonbleu |
Comments
Comment #1
tommy kaneko commentedI had the same problem, same headache. I couldn't come up with a definite solution, but here's a hack. It basically ignores the module while in the admin edit screen. Not clean, but in my case acceptable...
In uc_fee.module , replace the uc_fee_order function with the code below. The only new code here is the bit with the comment starting "// TK"
Comment #2
stewart.adam commentedI have attached a patch for branch 6.x-2.x similar to the change above but instead of checking the path components, it checks the order's status to determine if it is in checkout (fees should be set automatically) or not (honour changes made by the user).
If the order is in checkout, then the behaviour of the function is not changed. If the order is not, then the function breaks out immediately and the line items are not modified. This prevents uc_fee from changing the total on a previous order when a fee amount has changed since that order, and allows users to make manual changes or deletions to uc_fee line items.