I was happy with Ubercart 2.3 introducing the hook 'hook_checkout_pane_alter()'.
I implemented this hook for the 6.x.2.x-dev version of 'uc_extra_fields_pane', where I help working on and I assumed that the hook 'hook_order_pane_alter()' would also have been introduced, but unfortenately, I found out this wasn't the case. Also it would be very helpfull if I could alter how the order address is formatted. This way I don't have to lookup all the places where the order address is printed. I couldn't find a way yet to override uc_order_address(). I was thinking of a hook called hook_uc_order_address_alter().
In order to complete the new features in for uc_extra_fields_pane, I would need these hooks.
So that's why I'm posting a patch.
Patch info
Patch applies on latest dev from the branch 'DRUPAL-6--2', August 2, 2010.
Patch introduces the hooks hook_uc_order_address_alter() and hook_order_pane_alter().
Comment | File | Size | Author |
---|---|---|---|
#1 | 878628-ubercart_MC_002.patch | 2.52 KB | MegaChriz |
ubercart_MC_001-new-hooks.patch | 1.69 KB | MegaChriz | |
Comments
Comment #1
MegaChriz CreditAttribution: MegaChriz commentedProviding a new patch. An alter hook for the store address format would also be very helpfull.
Patch info
Patch applies on latest dev from the branch 'DRUPAL-6--2', August 19, 2010
Patch introduces the hooks hook_uc_order_address_alter(), hook_uc_store_address_alter() and hook_order_pane_alter()
Can you please review my code? Without it a stable version of uc_extra_fields_pane 6.x.2.x is unlikely to happen.
Comment #2
mpaler CreditAttribution: mpaler commented+1 for inclusion
Comment #3
john.oltman CreditAttribution: john.oltman commentedsubscribe - I need this too
Comment #4
MegaChriz CreditAttribution: MegaChriz commentedI moved the issue to alter the order panes: #970744: Hook to alter order panes