About this feature
This feature will display additional address fields in original order panes on the order edit page.

Issues
Currently, this feature requires a modification on Ubercart, because it uses the unavailable hook_order_pane_alter() hook which I hope will get in Ubercart core.

Test
I have implemented this feature in an optional module, so it won't affect original Extra Fields Pane code. This is done because the feature only works with a modification on Ubercart and so it should not in Extra Fields Pane code before it works with a stable version of Ubercart.

Review
Please review this feature and tell me if you think this is the way to go.

Additional info
This module will temporary remove the order panes 'extra_delivery' and 'extra_billing' defined by the Extra Fields Pane module. This is because to prevent double fields on order edit forms. This is an unwanted behaviour, but I will fix this when this feature gets in Extra Fields Pane module. I implemented it this way so I didn't need to alter the Extra Fields Pane module. I first want to know what you think about this feature.

Comments

megachriz’s picture

I opened an issue related to this issue in the Ubercart issue queue: #970744: Hook to alter order panes

megachriz’s picture

StatusFileSize
new7.15 KB

The solution posted above works only with the 2.x-dev version of Extra Fields Pane from September 2.
Here is a new version of this solution, which will work with the 2.x-dev version of Extra Fields Pane from November 26 and December 2.

megachriz’s picture

Status: Needs review » Fixed

The latest development version of Extra Fields Pane 6.x-2.x now shows extra address fields inside the original order panes ("ship to" and "bill to") if you have Ubercart 6.x-2.6 or higher installed. When you have an older version of Ubercart installed, extra address fields will still be shown in separate order panes.

megachriz’s picture

Title: Potential features: Show additional address fields in original order panes » Show additional address fields in original order panes

No longer "potential" ;-). This issue is done.

Status: Fixed » Closed (fixed)
Issue tags: -Ubercart

Automatically closed -- issue fixed for 2 weeks with no activity.