My Country States For WooCommerce

外掛說明

My Country States For WooCommerce, the ultimate solution to a common WooCommerce limitation. As any international e-commerce store owner knows, providing a smooth and efficient checkout process is crucial. However, WooCommerce doesn’t include states or provinces for all countries by default, leading to frustrating manual entry for customers.

We’ve taken this challenge head-on and are proud to present a feature-packed solution. Our plugin adds support for over 160 countries, ensuring that when a customer selects their country, the corresponding states or provinces are automatically populated. No more tedious typing, no more errors in state names—just a seamless checkout experience that boosts user satisfaction and trust in your online store.

Whether you’re dealing with orders from Afghanistan to Zimbabwe, our plugin has you covered. It’s not just a time-saver; it’s an accuracy-enhancer. Shipping rates and tax calculations will be spot on, creating a more reliable shopping experience for your customers.

Key Features

  • Support for 160+ countries: No more missing states or provinces.
  • Automatic population: States are populated based on the selected country.
  • Error reduction: Eliminate mistakes from manual entry.
  • Seamless integration: Easy setup with no coding required. No admin settings as well. Just install, activate, and enjoy.
  • Works out of the box: A hassle-free enhancement to your WooCommerce store.

Upgrade your WooCommerce store today with ‘My Country States For WooCommerce.’ Elevate the user experience, increase operational efficiency, and drive customer satisfaction to new heights. Your global customers deserve nothing less.

螢幕擷圖

  • List of Sweden States.
  • List of Belgium States.
  • List of France States.
  • List of Tajikistan States.

安裝方式

Requieres WooCommerce

This section describes how to install the plugin and get it working.

From within WordPress

  1. Visit Plugins > Add New
  2. Search for My Country States For WooCommerce
  3. Install and activate My Country States For WooCommerce for WordPress from your Plugins menu from WordPress.

Manually

  1. Download the plugin.
  2. Unzip the file.
  3. Upload the my-country-states-for-woocommerce/ folder to the /wp-content/plugins/ directory by using cPanel or SFTP/FTP.
  4. Activate the plugin through the Plugins menu in WordPress.

常見問題集

How do I set up the plugin?

No configuration required. All states are automatically for countries whose states are not implemeted in the WooCommerce.

How can I customize the list of states for a country implemented by this plugin?

You can customize the list of states for any country by using the mcsfwc_states_of_{TWO_CHARACTER_COUNTRY_CODE_IN_LOWER_CASE} filter hook provided by the plugin. For example, if you want to override the states for Afghanistan, use mcsfwc_states_of_af filter hook, for Singapore use mcsfwc_states_of_sg filter hook

How can I customize the list of states for Afghanistan?

The mcsfwc_states_of_af filter hook allows you to customize the list of states for Afghanistan in your WooCommerce checkout or other parts of your site where states are listed.

Here is an example of how to use the filter in your theme’s functions.php file:

<?php
function custom_afghanistan_states( $states ) {
    $states = array(
        'BDS' => 'Badakhshan',
        'BGL' => 'Baghlan',
        'BAL' => 'Balkh',
        // Add your custom states here
        'KAB' => 'Kabul',  // Example: Adding a custom state
    );
    return $states;
}
add_filter( 'mcsfwc_states_of_af', 'custom_afghanistan_states' );
?>

Is there any interface in Admin panel where I can customize the States listing?

No, currently you can customize the states list using the avaibale filter hooks. We are planning to implemente this feature in the next paid version.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈My Country States For WooCommerce〉的開發相關工作。

參與者

〈My Country States For WooCommerce〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈My Country States For WooCommerce〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.1.0

  • Update: Check for compatibility with WC 9.0.1 and WordPress 6.6.1
  • New: Add support for the WooCommerce Cart and Checkout Blocks
  • Improvement: Code readability

1.0

  • Initial release.