Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2011
    Location
    Tokyo
    Posts
    18
    Plugin Contributions
    1

    Default Address Format not reflected after Admin/Country updated!

    ZC 1.5.6c
    Debian 10
    PHP 5.6.40

    Hello!

    I tried to google/search the forum but didn't find anything compelling...

    I found this page https://docs.zen-cart.com/user/local...dress_formats/ explaining the address formats, that's all good.
    I also found where in the Admin Panel you can update the address_format ID in the Country definition.

    France (country 73) default is set to 1 but it's more of a 5 really (ZIP code BEFORE the city).

    So I updated France to use 5:

    Name: France
    Code ISO (2) : FR
    Code ISO (3) : FRA
    Address Format : 5

    But going around the Admin orders, the address are still using the format 1 with City, Postcode.

    Should I make modifications somewhere else as well?

    Julien

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: Address Format not reflected after Admin/Country updated!

    Quote Originally Posted by generikz View Post
    ZC 1.5.6c
    Debian 10
    PHP 5.6.40

    Hello!

    I tried to google/search the forum but didn't find anything compelling...

    I found this page https://docs.zen-cart.com/user/local...dress_formats/ explaining the address formats, that's all good.
    I also found where in the Admin Panel you can update the address_format ID in the Country definition.

    France (country 73) default is set to 1 but it's more of a 5 really (ZIP code BEFORE the city).

    So I updated France to use 5:

    Name: France
    Code ISO (2) : FR
    Code ISO (3) : FRA
    Address Format : 5

    But going around the Admin orders, the address are still using the format 1 with City, Postcode.

    Should I make modifications somewhere else as well?

    Julien
    The database's orders table includes a customers_address_format_id, billing_address_format_id and delivery_address_format_id. For the addresses to be displayed using the updated address-format, those fields will require update, too.

    Assuming that the various _country fields (3 of them) are set to France when the associated address is in France, you could (after backing up your database!) run the following SQL statements to get the orders' address formats updated, too:
    Code:
    UPDATE orders SET customers_address_format_id = 5 WHERE customers_country = 'France';
    UPDATE orders SET billing_address_format_id = 5 WHERE billing_country = 'France';
    UPDATE orders SET delivery_address_format_id = 5 WHERE delivery_country = 'France';
    Running the above statements in the admin's Tools :: Install SQL Patches will 'resolve' the DB_PREFIX. If you're using phpMyAdmin, you'll need to apply that prefix for each of the UPDATE statements, e.g. using zen_orders instead of orders.

  3. #3
    Join Date
    Sep 2011
    Location
    Tokyo
    Posts
    18
    Plugin Contributions
    1

    Default Re: Address Format not reflected after Admin/Country updated!

    Thank you!

    I will try on the DEV version first and confirm tonight.

    Julien

  4. #4
    Join Date
    Sep 2011
    Location
    Tokyo
    Posts
    18
    Plugin Contributions
    1

    Default Re: Address Format not reflected after Admin/Country updated!

    It works fine, and it shows up well in past orders!

    Thanks again.

    Julien

 

 

Similar Threads

  1. v157 Address format change for Australia and remove country from local address label
    By OldNGrey in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 Dec 2020, 05:40 AM
  2. v154 Admin side configuration changes not reflected in catalog
    By kandarp mistry in forum Installing on a Windows Server
    Replies: 3
    Last Post: 7 Feb 2016, 06:09 PM
  3. Admin default address format is not #2 USA
    By pixelpadre in forum Basic Configuration
    Replies: 2
    Last Post: 22 Nov 2013, 03:21 PM
  4. Replies: 1
    Last Post: 4 Nov 2009, 11:31 PM
  5. Editing Customer address not reflected in Orders...
    By Peace Freak in forum Managing Customers and Orders
    Replies: 4
    Last Post: 27 Nov 2006, 03:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR