Closed (fixed)
Project:
Ubercart Discount Coupons
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Dec 2008 at 22:11 UTC
Updated:
6 Feb 2009 at 16:20 UTC
Use the patch and see your weight problems disappear!
The coupon was not saving with its weight into the order_line_items table.
The attached patch is probably not the best way to solve the problem, but it will at least get the record to save with the weight value coded in the line item definition so that it appears in the correct place when the payment info is displayed.
| Comment | File | Size | Author |
|---|---|---|---|
| coupon_weight.patch.txt | 1.55 KB | bob.hinrichs |
Comments
Comment #1
bob.hinrichs commentedIt occurs to me it would be better to configure the weight in the coupon edit screen for each coupon. This is because you may want to change the weight so that the coupon is applied before or after other line items.
Comment #2
longwaveThe line item code has been reworked in 1.6-beta1 so this should be resolved, though the coupon line item has a fixed weight of 2 for now.