Results 1 to 10 of 14

Hybrid View

  1. #1
    Join Date
    Feb 2016
    Location
    Canada
    Posts
    190
    Plugin Contributions
    0

    Default Re: Postcode Auto Fill support thread

    Has anyone used this for Canada?

  2. #2
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    331
    Plugin Contributions
    7

    Default Re: Postcode Auto Fill support thread

    V2.0.2 of this encapsulated plugin has been submitted in plugin section and should be available soon.
    It is available on Github here.

    It corrects a bug in SQL queries where missing country zones will stop installation.
    Some code cleaning was done too.

  3. #3
    Join Date
    Apr 2008
    Location
    Qld, Australia
    Posts
    407
    Plugin Contributions
    6

    Default Re: Postcode Auto Fill support thread

    I had v2.0.1 installed, uploaded v2.0.2 to zc_plugins, uninstalled V2.0.1, installed v2.0.2 and received warning on Plugin Manager screen only (no log files)
    Unknown collation: 'utf8mb4_ja_0900_as_cs_ks'
    Table 'zc220_exp.zones_to_post_code_jp' doesn't exist
    and module is not installed.

    ZC 2.2; PHP8.4, MariaDB
    OldNGrey
    ZC222 PHP 8.4.16
    MySQL 11.8.5-MariaDB

  4. #4
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    331
    Plugin Contributions
    7

    Default Re: Postcode Auto Fill support thread

    I see you are using MariaDB. It does not seem to support the collation 'utf8mb4_ja_0900_as_cs_ks'.
    It should be working by replpacing the collation utf8mb4_ja_0900_as_cs_ks by some MariaDB equivalent at the begining of the Japanese postal cade SQL file (lines 9 & 10).
    Un fortunately I am not sure MariaDB as an equivalent, I don't have any MariaDB server at hand to test that.
    If you do not need Japanese postal codes, you can although modify line 6 of ScriptedInstaller.php, removing 'jp' from the list.

    But if version 2.0.1 was working fine there was probably a collation that can be used.

  5. #5
    Join Date
    Apr 2008
    Location
    Qld, Australia
    Posts
    407
    Plugin Contributions
    6

    Default Re: Postcode Auto Fill support thread

    Thanks. The collation for MariaDB is "uca1400_ai_ci" (based on Unicode 14.0) for versions 10.11+

    When the postcode (zip code) is entered and the city list is returned in the pop-up window, are the city /towns names supposedto be selectable?
    OldNGrey
    ZC222 PHP 8.4.16
    MySQL 11.8.5-MariaDB

  6. #6
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    331
    Plugin Contributions
    7

    Default Re: Postcode Auto Fill support thread

    Yes, for Japan, city and suburb are supposed to be selectable (if there are multipe choices).

    The table itself uses general collation but two fields need a 'kana sensitive' collation.

    Try replacing 'utf8mb4_ja_0900_as_cs_ks' in file 'zc_plugins\PostAuto\v2.0.2\installer\sql\install\zones_to_post_code_jp.php' by 'uca1400_as_cs' on lines 9 and 10.
    If the database can't make the difference between katakana and hiragana, for exemple ア and あ which read the same, then there will be a duplicate index error when installing and everything after this error won't be installed.
    If it can make the difference then everything should be installed properly.

  7. #7
    Join Date
    Apr 2008
    Location
    Qld, Australia
    Posts
    407
    Plugin Contributions
    6

    Default Re: Postcode Auto Fill support thread

    Are non-japanese locations supposed to be selectable?
    Select country = Australia, entering postcode 4121 returns the surburb Holland Park.
    If I click on the suburb field the alternate suburbs (Holland Park, Holland Park East, Holland Park West, Tarragindi, Wellers Hill) are listed in a pop-up box.

    They are not selectable from the list. Should they be?
    OldNGrey
    ZC222 PHP 8.4.16
    MySQL 11.8.5-MariaDB

 

 

Similar Threads

  1. Auto Store Open/Close (ASOC) - [Support Thread]
    By frank18 in forum All Other Contributions/Addons
    Replies: 14
    Last Post: 15 May 2018, 09:05 PM
  2. v155 File Auto-Versioning (CSS, JS, etc) for Templates [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 11
    Last Post: 19 Jul 2017, 08:26 PM
  3. Auto Fill Shopping Cart
    By grgolf in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 9 Dec 2008, 11:58 PM
  4. USPS Auto Fill Config
    By Mike Kelly in forum Addon Shipping Modules
    Replies: 0
    Last Post: 23 Jul 2007, 07:48 PM
  5. Auto-Fill Email Address
    By brchiz in forum General Questions
    Replies: 1
    Last Post: 27 May 2007, 10:14 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