Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Really sorry, but I can't install a .dev now just to make a patch. It's a one-liner. In uc_order.module, in uc_order_view(), add a single line to make order panes observe the order set by weight:
$order->content[$pane['id']] = array(
'#prefix' => '<div class="order-pane ' . $pane['class'] . '" id="order-pane-' . $pane['id'] . '">',
'#suffix' => '</div>',
'#weight' => $pane['weight'], // <<<<<<<<<<<
);
Comments
Comment #1
longwaveI can already change the order of the panes by rearranging them at /admin/store/settings/orders/display without this patch.
The pane settings at /admin/store/settings/orders need to be removed as they are no longer needed, there is an open task for this at #1196602: Order admin settings: panes vs manage fields/display tabs
Comment #2
longwaveComment #4
rimu CreditAttribution: rimu commented/admin/store/settings/orders/display doesn't cut it for me because that form does not show my custom pane that was defined using hook_uc_order_pane().
Comment #5
rimu CreditAttribution: rimu commentedComment #6
longwavehttp://api.ubercart.me/api/drupal/ubercart!uc_order!uc_order.module/func...
This function is responsible for generating /admin/store/settings/orders/display, the 'show' array in your hook_uc_order_pane() definition needs to include either 'view' or customer' for it to show up on that page.