How do you add the Mexican states to WooCommerce?

Screenshot of the result of the PHP code used

After getting in touch with us so that we could help them with the configuration of our plugin WC - APG Weight Shipping for the online shop of one of their clients located in Mexico, we suggested to Imaginawebs a couple of reference links to serve as a guide for adding the Mexican states to WooCommerce, since they do not come included by default.

No sooner said than done, they set to work and used Wikipedia to obtain the official ISO codes of the Mexican states.

We have fixed and improved the code for them and we are now making it public in order to share it with the Mexican WooCommerce community.

Here you have the result:

Copy to clipboard

As always, this PHP code must be entered in the functions.php file of the child theme, thanks to which you will have the complete list of the Mexican states available in your online shop under WooCommerce.

Thank you, Paulo Lievano, for the work done.

Related posts

Comments

Suscríbete
Notificar de
0 Comments
Más antiguos
Más recientes Más votados

In this post

Products and services

Latest posts

Latest comments

Subscribe!

Lista de correos de APG

DATA PROTECTION: In accordance with data protection regulations, we provide you with the following processing information: (+)

  • Responsible: Art Project Group.
  • Treatment purposes: to respond to queries or any type of request made by the user through any of the forms of contact that are made available on the website. Sending communications about products or services (with your consent).
  • Your rights: access, rectification, portability, deletion, limitation and opposition. More information about the treatment in the Privacy Policy.

What we post on !

Se ha publicado #WooCommerce 11.2.2: actualización de seguridad que refuerza las API REST y Store, mejora la validación de CSV y corrige problemas en pagos y pedidos. Incluye cambios en la base de datos.

¡Actualiza cuanto antes!

November 5, 2026