Forums / All Other Contributions/Addons / Postcode Auto Fill support thread

Postcode Auto Fill support thread

Views: 4,460

Results 21 to 25 of 25
17 Oct 2026, 4:49 AM
#21
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
414
Plugin Contributions:
6

Postcode Auto Fill support thread

njcyx:

zc 2.1.0. php 8.2. opc 2.7.0

Hi. I just installed the Postcode 2.0.8 but I cannot make it work. Per your instruction, during the OPC checkout page, I first filled the zipcode, but the city & state didn't pop up/fill automatically. I verified the zipcode in the datafile (zones_to_post_code_us.php).

If you edit your address during checkout with OPC, this plugin won't work because OPC completely changed the structure of the form (dom), fields have different names which JavaScript needs to know to manipulate them.

In other parts of ZC (create account, edit address in my Account), the plugin still works.

I will see if I can make some custom files for OPC, but it may take some time.

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

17 Oct 2026, 10:19 AM
#22
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Postcode Auto Fill support thread

pilou2:

njcyx:

zc 2.1.0. php 8.2. opc 2.7.0

Hi. I just installed the Postcode 2.0.8 but I cannot make it work. Per your instruction, during the OPC checkout page, I first filled the zipcode, but the city & state didn't pop up/fill automatically. I verified the zipcode in the datafile (zones_to_post_code_us.php).

If you edit your address during checkout with OPC, this plugin won't work because OPC completely changed the structure of the form (dom), fields have different names which JavaScript needs to know to manipulate them.

In other parts of ZC (create account, edit address in my Account), the plugin still works.

I will see if I can make some custom files for OPC, but it may take some time.

Right, that's because OPC makes a distinction between the address fields for the billing address and shipping address.

Those fields might be temporary (like in a guest checkout) where the 3-page checkout's processing stores the address fields in the database so the address is based on the billto/sendto address-book id.

20 Oct 2026, 10:22 AM
#23
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
414
Plugin Contributions:
6

Re: Postcode Auto Fill support thread

For those in need of a solution for One Page Checkout plugin, you can use the actual GitHub code tagged OPC.

This is not a release yet, it is the development version 2.1.0 with a quick fix for OPC and that should be OK for MariaDB databse too.

Dbltoe came up with a better code that will eventually be available in version 3.0.0 with other changes.

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

20 Oct 2026, 9:02 PM
#24
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
376
Plugin Contributions:
0

Re: Postcode Auto Fill support thread

Thanks for all the help. I will try your new code then.

Meanwhile, OPC is really a great plug-in. You should try it when you get a chance.

23 Oct 2026, 4:48 AM
#25
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
414
Plugin Contributions:
6

Re: Postcode Auto Fill support thread

Release v2.1.0 has been submitted to plugin section.

It is available on GitHub here.

This an important bugs fix and update:

Fixed problem with missing Japanese collation for MariaDB users. These Japanese special collations were not necessary anymore but I forgot to update the SQL install file.

Added compatibility with OPC. This is a quick temporary update until v3.0.0 better code is released.

Few bugs fixed by dbltoe:

  • A lowercase installer/ is never found on case-sensitive (Linux) hosts. Renamed folder to Installer (uppercase i)
  • A stray space before <?php in the observer was sent ahead of every page.
  • Redirects are blocked only for the plugin's own lookup request, not for every ajax.php call (including One-Page Checkout's and payment modules').
  • Stylesheet loaded on every pages; the PowerTip stylesheet (now jquery.powertip.min.css) loads only on address pages.

US postal codes database updated by ncjyx. Lots of postcodes were missing in original database. Thanks ncjyx!

Japanese postal codes database updated to 09/2026 data.
Name 'Postal Code Automatic' changed to be consistent and use 'Postcode Auto Fill' everywhere.

If you did not customized your postal codes database and started to use this plugin with versions older than 2.0.1, you should delete them before updating to get fresh updated data. Last database udpdate might not have performed as required.

If you installed this plugin after v2.0.1, then the updater will take care of the database update.

Thanks again to dbltoe and ncjyx for their participation.

For Zen Cart v2.1.0 to v3.0.0 and newer.

ZC v2.2.2 PHP 8.4+ MySQL 8.4+