Active
Project:
UC Free Order Payment Method
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Nov 2009 at 16:28 UTC
Updated:
12 Jan 2013 at 12:05 UTC
Jump to comment: Most recent
Comments
Comment #1
webchickI'm also seeing this on the latest 6.x-1.0-beta4 release.
The subtotal comes out as 0, but the order total becomes full-price:
I threw some debugging code in uc_free_order_order() and it appears the problem is that the line uc_payment_enter($arg1->order_id, 'free_order', 0, 0, NULL, t('Checkout completed for a free order.')); never gets called.
I checked the docs for http://www.ubercart.org/docs/api/hook_order and it appear 'submit' is a valid operation; I also tried 'total' and 'save' but neither seemed to have an effect.
Comment #2
webchickWell. It works if I invoke op 'total':
But obviously this is no kind of fix, since:
a) Not everyone's products cost $199. ;P
b) This makes /all/ orders free; I need to somehow get context that the free payment system was used, but I don't see that embedded anywhere in the order object. $arg1 doesn't yet have the payment_method property that it has in op submit. Hmmm.
Comment #3
webchickThe first time into hook_order op total, the order object looks like this:
I'm not sure what in there I can switch on to tell that this order was affected by uc_free_order module. Maybe subtotal?
Comment #4
webchickHm. I think I'm heading down the wrong track.. in our case, this seems to be uc_discount module related... that module is not properly applying the price adjustments that are set up in our conditional actions.
Comment #5
rismondo commentedsubscribing
Comment #6
fletchgqc commentedJust installed the latest dev version and am receiving this error. I think webchick is suffering from a different error though; I'm having the exact same problem as in the original report by Nathan.Ray - everything including the order total looks correct, only this error message comes up and blocks you from progressing.
Comment #7
fletchgqc commentedOK I changed the text on line 36 to say "Order total is $order->order_total. We cannot process your order without payment." and thereby realised that the VAT is still being charged... complicated but I think the problem does not rest with this module so I'll leave it here. Might I suggest that this text be changed in the module to something like what I've written above - will help future people debugging.
Comment #8
nirvanajyothi commentedNot completely similar to the error here. But adding if somebody requires it later.
We got the error when the order Total was a negative 1 as the discount applied was $111 against subtotal of $110.
In our case changing the coupon discount from $110 to 100% changed the Total to zero and the error went away.