Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Missing address format...

    I've recently noticed that I'm missing an address format form my database.

    When I checked the address_format table I only had 5 rows of data, not 6.

    Can anyone advise me if it's safe to run the following SQL code on my database (via the Zen Cart admin) to re-create my address_format table?

    Code:
    #
    # Table structure for table 'address_format'
    #
    DROP TABLE IF EXISTS address_format;
    CREATE TABLE address_format (
    address_format_id int(11) NOT NULL auto_increment,
    address_format varchar(128) NOT NULL default '',
    address_summary varchar(48) NOT NULL default '',
    PRIMARY KEY (address_format_id)
    ) TYPE=MyISAM;
    
    # 1 - Default, 2 - USA, 3 - Spain, 4 - Singapore, 5 - Germany, 6 - UK/GB
    INSERT INTO address_format VALUES (1, '$firstname $lastname$cr$streets$cr$city, $postcode$cr$statecomma$country','$city / $country');
    INSERT INTO address_format VALUES (2, '$firstname $lastname$cr$streets$cr$city, $state $postcode$cr$country','$city, $state / $country');
    INSERT INTO address_format VALUES (3, '$firstname $lastname$cr$streets$cr$city$cr$postcode - $statecomma$country','$state / $country');
    INSERT INTO address_format VALUES (4, '$firstname $lastname$cr$streets$cr$city ($postcode)$cr$country', '$postcode / $country');
    INSERT INTO address_format VALUES (5, '$firstname $lastname$cr$streets$cr$postcode $city$cr$country','$city / $country');
    INSERT INTO address_format VALUES (6, '$firstname $lastname$cr$streets$cr$city$cr$state$cr$postcode$cr$country','$postcode / $country');
    The above SQL code was taken from the mysql_zencart.sql file (Zen Cart 1.3.8).

    I'm sure running the above code will be fine, just want to get some confirmation.

    Thanks in advance.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Missing address format...

    Yes, it's fine to run that SQL.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Feb 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: Missing address format...

    Just to follow this question.:)

    $state calls the zone_id. I need the zone_name. How to do?

    Than I need the European address format:

    firstname lastname
    street 1
    street 2
    country_id-post code city
    country

    How to do?

    Thanks for your help.

 

 

Similar Threads

  1. address format
    By soxophoneplayer in forum Basic Configuration
    Replies: 2
    Last Post: 3 Apr 2010, 06:27 PM
  2. address format different on checkout page vs address book
    By ladyhypnotist in forum General Questions
    Replies: 2
    Last Post: 22 May 2009, 04:13 PM
  3. Address format- no 6??????
    By jthomo in forum General Questions
    Replies: 5
    Last Post: 2 Oct 2007, 05:27 PM
  4. Address Format?
    By Chepster in forum General Questions
    Replies: 5
    Last Post: 10 Mar 2007, 10:11 AM

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