Closed (fixed)
Project:
Ubercart
Version:
7.x-3.x-dev
Component:
Payment
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Apr 2012 at 19:09 UTC
Updated:
5 May 2012 at 19:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
wodenx commentedComment #2
longwaveComment #3
longwaveShouldn't we set $order->payment_method always instead of using $default?
Comment #4
wodenx commentedWell, I guess my thought was not to alter the $order object in a 'view' callback, but it doesn't really make any difference, and I violated my own principle in #1525490: Pass payment method name to callback function., which is also fixed by doing it this way...
Comment #5
longwave#4: 1524716-payment-ajax-4.patch queued for re-testing.
Comment #6
longwaveThe drupal_goto() means that if you select (say) a country that has no payment methods available, navigate away, then try to navigate back to the checkout page, you are redirected away and aren't given the option to change your country again.
The attached patch reworks #4 so the checkout is always shown, just with a disabled radio button if no methods are available. It also simplifies and reworks some of the surrounding code to make it a bit easier to follow.
Comment #7
longwaveCommitted #6.