Hi,

In Curaçao addresses do not have postal codes, only Street Name and City. This counts for Aruba & St. Maarten as well. I don't know where in the plugin this code is located, I will be looking into it to tell you exactly where it is that needs changing.

Comments

d_f’s picture

Status: Active » Fixed

Fixed. Didn't have time to look into it further, so I just reported the omission as I found it. If your country is added as postal code but should not have any postal code do the following:

  1. Download and unzip the plugin.
  2. Navigate to addressfield>plugins>format
  3. Find the file address.inc
  4. WIthin that file find the following code:
     // Those countries do not seem to have a relevant postal code.
      if (in_array($address['country'], array(
  5. Now you need your country's two letter iso code and add it in here, using the same format as the others. In the case of Curaçao, you have to add" 'CW'," to that block of code
  6. zip up, upload, and enjoy!

Status: Fixed » Closed (fixed)

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

debo7debo’s picture

Priority: Normal » Major

shouldn't it be an integrated feature for countries that don't require postal codes to automatically not require it in the form? I'm requesting this feature because I'm currently integrating this into a form that will be filled out in multiple countries and I have no way of figuring out which one doesn't require postal codes. I only found this problem because I was testing my home country.

d_f’s picture

As far as I can see, you have to do that manually. The only thing you need is the country code. Maybe if you listed the countries you need to the module page and ask nicely the dev could integrate it in the next release.