When values of address fields are displayed (thus not in forms) their weight setting is ignored (which can be set at the address field settings page). This is not the case in address forms.

This bug can be fixed easily by saving the weight in the uc_extra_fields table. Now only the weights of custom order fields (in the extra information pane) are stored in this table. The weights of address fields are stored in the uc_address_fields_weight variable. The only cons of saving the weight in the uc_extra_fields table is that the weight value will then be saved in two places (both the table and the variable). Also, the value in the uc_address_fields_weight variable (if it exists) will always supersede the weight value saved in the uc_extra_fields table.

The Drupal 7 version of Extra Fields Pane also has this issue.

I'm working on a fix.

Comments

megachriz’s picture

Status: Active » Fixed

Fixed: the weights of address fields are now also saved in the uc_extra_fields table. When loading a field through the API (via the FieldList class), the weight value will be overwritten by the value in the uc_address_fields_weight variable, if a weight value for the field exists in that variable.

Status: Fixed » Closed (fixed)

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