The address tokens are a little bit different comparing to the 6.x-2.x version. For example, the token for "first name" in 6.x-2.x is [uc_addresses_first_name], but in 7.x-1.x this is [uc_addresses:first_name] (note the colon in the middle). There is more difference in the tokens for the country and zone fields, because they have multiple output formats. Example: [uc_addresses_zone_code] in 6.x-2.x and [uc_addresses:zone:zone_code] in 7.x-1.x.

The Ubercart Addresses address formats makes use of address tokens, so they should be updated for the 7.x-1.x version. The address formats are saved in the variable table by using this pattern:
'uc_addresses_address_format_' . $country_id
$country_id is the ID of the country as known in the uc_countries table. The upgrade script should check which countries are installed in the uc_countries table and update the address formats for each of them (only the address formats that exists, of course). Should not be too hard to implement, but most of the other issues have more priority.

This issue is here for volunteers to be picked up. Assign yourself to the issue first if you want to work on this one. This issue needs to be fixed prior to the release of 7.x-1.0-alpha1.

Comments

MegaChriz’s picture

Assigned: Unassigned » MegaChriz

I plan to work on this issue soon.

MegaChriz’s picture

Status: Active » Fixed

The script to update the Ubercart Addresses address formats from 6.x-2.x has been committed.

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