Countries

Defines every country with the following information:

  • Country Name
  • ISO-3166 2-letter and 3-letter country code
  • Address format
  • Whether you ship to that country

Countries

Enabled countries show at the top of the list.

The address format and shipping status can be seen in the right sidebar, which is opened when a country is selected.

Countries - USA

Disabling/Enabling Countries

In your Admin->Locations/Taxes->Countries screen, you can click on the green “status” icon to toggle the country’s status off. The screen updates immediately with the change. If you don’t see the country alphabetically in the list, it may have been previously disabled, which moves a country to the end of the list. Clicking the red icon will turn the country back on.

You may update the status field in the countries table in phpMyAdmin if you wish to disable many or most countries. For example, to block sales outside the USA, you would do

UPDATE countries SET status = 0 WHERE countries_iso_code_2 != 'US'; 

As with all database changes, make a backup before doing this.




Still have questions? Use the Search box in the upper right, or try the full list of FAQs. If you can't find it there, head over to the Zen Cart support forum and ask there in the appropriate subforum. In your post, please include your Zen Cart and PHP versions, and a link to your site.

Is there an error or omission on this page? Please post to General Questions on the support forum. Or, if you'd like to open a pull request, just review the guidelines and get started. You can even PR right here.
Last modified March 20, 2023 by Scott C Wilson (1676e2c).