| Project: | Ubercart Contributions |
| Component: | Code |
| Category: | |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | patch (needs review) |
Description
Project:
Ubercart I'm working on a system that generates a number of checkout_panes on the fly, based on the items the user has in the cart.
Rather than using variable functions and having a slew of different checkout_pane callbacks, I'd like to use the same callback for each, but be able to differentiate them, based, for example, on the unique checkout_pane id I'm assigning each in hook_checkout_pane.
As far as I can tell there isn't a straightforward way to get the id of the current checkout_pane from within its callback.
I've attached a little patch which modifies the function call to add the pane array as an argument. Could this be applied to ubercart core, or could you explain an existing technique for doing this, if such a thing exists?
Version:
Ubercart 2.x-dev | Preview | Attachment | Size |
|---|---|---|
| uc_cart.pages_.inc_.pane-callback.patch | 454 bytes |
