arg1 in hook_order_pane callback is empty on view operation
aaronbauman - October 20, 2009 - 17:14
| Project: | Ubercart |
| Version: | 6.x-2.0-rc7 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
i defined a checkout pane with hook_order_pane, and my callback is being invoked when cart/checkout loads with $op = 'view', but $arg1 and $arg2 are always null, when http://www.ubercart.org/docs/developer/245/checkout indicates that $arg1 should reference the order object.

#1
There shouldn't be an order object the first time it's loaded, only on subsequent page loads. The order object doesn't get created till the user submits the checkout form, and if they should go "Back" from the review form it will be present. This is what the docs mean when they say:
$arg1 is the current order object if it exists.#2
I see - that makes sense now. thanks for the quick response.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.