WooCommerce Shortcodes List: Examples, Attributes, and Advanced Usage

On this page

If you’re building an online store with WordPress, chances are you’ve come across WooCommerce—the platform powering millions of successful shops worldwide. It’s flexible, feature-packed, and works brilliantly for selling everything from physical products to digital downloads. But here’s something many store owners overlook: WooCommerce comes with a hidden superpower—shortcodes. These small, bracketed snippets let you instantly add store features anywhere on your site without writing a single line of code.

The beauty of WooCommerce shortcodes is in their versatility. You can use them to showcase best-selling items, create a tailored checkout page, embed your shopping cart on any landing page, or even spotlight specific product categories. They work in posts, pages, widgets—anywhere WordPress supports content. Whether you’re new to eCommerce and want quick customisation, a developer building unique layouts, or a business owner running time-sensitive promotions, shortcodes make it easy. And while adding features is important, keeping your store safe matters too—check out this guide on protecting your WooCommerce store from suspicious users and IP addresses to ensure your site runs smoothly. In this guide, we’ll cover how to use WooCommerce shortcodes, share practical WooCommerce shortcode examples, and reveal tips to get the most out of them.

What Are WooCommerce Shortcodes?

In WordPress, a shortcode is a small text snippet wrapped in square brackets that acts as an instruction for the system to display a specific feature or type of content. Instead of writing complicated code, you simply place the shortcode into a page, post, or widget, and WordPress replaces it with the intended output automatically.

WooCommerce takes this concept further by providing its own set of shortcodes designed specifically for online shops. These allow you to add dynamic store elements—such as product listings, shopping carts, checkout forms, or account pages—anywhere on your site.

Key differences between WordPress and WooCommerce shortcodes

  • WordPress shortcodes – General-purpose, can be used for things like image galleries, contact forms, or embedded videos.

  • WooCommerce shortcodes – Specialised for eCommerce, working directly with product data, cart systems, and checkout processes.

Advantages of using WooCommerce shortcodes

  • Time-saving – No need to build layouts from scratch or write PHP.

  • Beginner-friendly – Works with simple bracket syntax instead of coding.

  • Flexible placement – Can be added to posts, pages, widgets, and even custom templates.

  • Dynamic content – Automatically pulls live product data from your store.

For example, if you wanted to display four products in a grid on any page, you could simply use

[products limit="4" columns="4"]

This shortcode tells WooCommerce to show four products in four columns, perfect for a homepage section or promotional landing page. With just a few words in brackets, you can achieve results that would normally require a developer’s time and effort.

How to Use WooCommerce Shortcodes (Step-by-Step)

WooCommerce shortcodes are incredibly flexible and can be placed almost anywhere on your WordPress site. Whether you’re working in the Classic Editor, Gutenberg, or a page builder like Elementor or WPBakery, shortcodes make it easy to insert store features without any coding.

1. Where You Can Place Shortcodes

You can use WooCommerce shortcodes in a variety of locations, including:

  • Pages – Great for creating custom shop, checkout, or promotional landing pages.

  • Posts – Ideal for blog articles that promote specific products or sales.

  • Widgets – Add products or categories to sidebars and footers.

  • Gutenberg blocks – Insert shortcodes directly inside content blocks.

  • Page builders – Most modern builders have shortcode elements you can drag and drop.

This flexibility means you can display your store content exactly where you want it, rather than being limited to WooCommerce’s default layouts.

2. Adding Shortcodes in the Classic Editor vs. Gutenberg

Classic Editor:

  1. Open the page or post where you want to display the WooCommerce element.

  2. Paste the shortcode directly into the content area.

  3. Update or publish the page to see the result.

Gutenberg Editor:

  1. Click the + icon to add a new block.

  2. Search for the Shortcode block and select it.

  3. Paste your shortcode inside the block.

  4. Preview or publish to see it in action.

3. Using Shortcodes with Elementor or WPBakery

Elementor:

  • Drag the Shortcode widget onto your page.

  • Paste your WooCommerce shortcode into the widget settings.

  • Style the surrounding layout with Elementor’s design tools.

WPBakery Page Builder:

  • Use the Raw HTML or Text Block element.

  • Paste your shortcode inside, save, and publish.

These page builders make it easy to combine WooCommerce functionality with custom designs, giving you full creative control.

4. Tips for Customising Shortcode Attributes

Most WooCommerce shortcodes have attributes—extra settings inside the shortcode that change how it works. For example:

[products limit="8" columns="4" category="t-shirts" orderby="date" order="DESC"]

Here’s what’s happening:

  • limit – Number of products to display.

  • columns – How many columns to show.

  • category – Only display products from a specific category.

  • orderby / order – Control the sorting (e.g., newest first).

You can combine multiple attributes to create highly targeted product displays.

5. Common Mistakes to Avoid

  • Incorrect spelling – Shortcodes must be typed exactly as shown, without spaces inside the brackets.

  • Using the wrong category slug – Ensure the category name matches its slug (lowercase, no spaces).

  • Forgetting to close the shortcode – While most WooCommerce shortcodes don’t require a closing tag, some do.

  • Using too many at once – Overloading a page with multiple product shortcodes can slow down performance.

  • Not checking mobile layouts – Shortcodes may look fine on desktop, but need adjustment for smaller screens.

Overview of Default WooCommerce Shortcodes:

ShortcodeDescription
[woocommerce_cart]Displays the cart page.
[woocommerce_checkout]Displays the checkout page.
[woocommerce_my_account]Displays the user account page.
[woocommerce_order_tracking]Displays the order tracking form; supports attributes.
[product_page]Displays a full single product page by ID or SKU.
[products]Displays multiple products based on parameters like category, tag, limit, and order.
[product_category]Shows products from a specified category with customisable layout options.
[product_categories]Displays a list or grid of product categories with optional filtering.
[add_to_cart]Displays an “Add to Cart” button for a specific product with optional styling.
[add_to_cart_url]Retrieves the URL for a product’s add-to-cart button; useful for custom links.
[shop_messages]Shows WooCommerce system messages (e.g., errors, notices) on non-shop pages.
[featured_products]Displays products marked as featured in a grid layout.
[sale_products]Shows products currently on sale with customisable display options.
[best_selling_products]Highlights your store’s best-selling products.
[top_rated_products]Displays products with the highest customer ratings.
[recent_products]Lists the most recently added products.
[related_products]Shows products related to the current product being viewed.
[product_attribute]Displays products filtered by a specific product attribute like color or size.

List of Common WooCommerce Shortcodes

WooCommerce offers a range of shortcodes that help you add powerful eCommerce features to your WordPress site quickly and easily. These shortcodes work only if you have WooCommerce installed and activated on your website.

WooCommerce Cart Shortcodes:

1. Cart
[woocommerce_cart]

This shortcode displays the contents of the shopping cart, including product thumbnails, names, prices, quantities, and the subtotal. It supports several parameters that let you customise the output, such as columns, show_shipping, show_coupon, show_totals, and button_text.

Example: [woocommerce_cart columns="2" show_shipping="true" show_coupon="true" button_text="Proceed to Checkout"]

This will display the shopping cart with 2 columns, shipping options, a coupon code field, and a checkout button labeled “Proceed to Checkout”.

2. Cart Total
[woocommerce_cart_total]

This shortcode shows the total price of the shopping cart. You can customise it using parameters like class and before.

Example: [[woocommerce_cart_total class=”my-cart-total” before=”Total: “]]

This will display the cart total with a custom CSS class and the prefix “Total: ” before the amount.

3. Cart Coupon
[woocommerce_cart_coupon]

This shortcode adds a coupon code input field on the shopping cart page. It accepts parameters such as class and placeholder.

Example: [woocommerce_cart_coupon class=”my-cart-coupon” placeholder=”Enter coupon code”]

This will display the coupon field with a custom class and placeholder text “Enter coupon code”.

4. Cart Shipping
[woocommerce_cart_shipping]

This shortcode displays the shipping options available on the cart page. You can modify it using parameters like class and before.

Example: [[woocommerce_cart_shipping class=”my-cart-shipping” before=”Shipping: “]]

This will show the shipping methods with a custom class and the label “Shipping: ” before the options.

5. Cart Contents
[woocommerce_cart_contents]

This shortcode outputs the cart contents in a table format. It supports parameters such as class, before, and after to customise the HTML structure.

Example: [woocommerce_cart_contents class=”my-cart-contents” before=”<table>” after=”</table>”]

This will display the cart items inside a table with a custom class and custom HTML tags wrapping the content.

WooCommerce Checkout Shortcodes

1 Checkout

This shortcode displays the full checkout form with all necessary fields for customers to complete their purchase. It supports parameters like order_review, terms, privacy_policy, and login_form to customise the checkout experience.

Example: [woocommerce_checkout order_review="false" terms="true" privacy_policy="true" login_form="false"]

This will show the checkout form without the order review section but with the terms and privacy policy checkboxes enabled.

2. Checkout & Cart
[woocommerce_checkout_cart]

This shortcode displays the shopping cart contents on the checkout page. It includes parameters such as show_shipping, show_coupon, and show_cart to control which elements are visible.

Example: [[woocommerce_checkout_cart show_shipping=”true” show_coupon=”false” show_cart=”false”]]

This setup displays the cart contents with shipping options but hides the coupon code field and cart totals.

3. Checkout Order Review
[woocommerce_checkout_order_review]

This shortcode renders the order review section on the checkout page, including the product list, shipping details, and total cost. You can customise it with parameters like show_shipping, show_coupon, and show_cart.

Example: [[woocommerce_checkout_order_review show_shipping=”false” show_coupon=”false” show_cart=”false”]]

This example shows only the order review section without shipping, coupon, or cart details.

4. Checkout Fields
[woocommerce_checkout_fields]

Use this shortcode to display specific checkout fields such as billing and shipping addresses, payment methods, and order notes. Parameters include order, fields, and required to specify which fields appear and which are mandatory.

Example: [[woocommerce_checkout_fields order=”billing,shipping” fields=”first_name,last_name,email,phone” required=”first_name,last_name,email”]]

This will display billing and shipping fields for first name, last name, email, and phone, requiring the first name, last name, and email fields to be filled out.

WooCommerce Product Shortcodes: Detailed Guide with Examples

1. Products

[products]

This shortcode displays a grid of multiple products on your page, complete with pagination and sorting features. You can filter and customise the products shown by using various parameters such as:

  • category — show products from a specific category

  • tag — filter products by product tags

  • limit — number of products to display

  • columns — number of columns in the grid

  • orderby — sorting criteria (e.g., date, price, popularity)

  • order — ascending (asc) or descending (desc) order

Example:
[products limit="4" columns="2" orderby="price" order="asc"]
This shortcode will display 4 products arranged in 2 columns, sorted by price in ascending order (lowest price first).

2. Product Category

[product_category]

Use this shortcode to display products from a single product category. It shares many parameters with the [products] shortcode, letting you control the number of items, layout, and sorting.

  • category — slug of the product category

  • limit — how many products to show

  • columns — number of columns

  • orderby and order — sorting options

Example:
[product_category category="clothing" limit="6" columns="3"]
This will show 6 products from the “clothing” category arranged in 3 columns.

3. Products by SKU

[[products_by_sku]]

This shortcode lets you display specific products by listing their SKUs (Stock Keeping Units). It’s useful when you want to showcase particular items without relying on categories or tags.

  • skus — comma-separated list of product SKUs

  • limit — maximum number of products to display

Example:
[[products_by_sku skus="ABC123, DEF456, GHI789" limit="3"]]
This will display 3 products identified by the SKUs ABC123, DEF456, and GHI789.

4. Recent Products

[recent_products]

Displays your newest products in a grid. Parameters allow you to specify the number of items and their layout.

  • limit — number of recent products to show

  • columns — number of columns

Example:
[recent_products limit="8" columns="4"]
This shortcode will show 8 recently added products arranged in 4 columns.

5. Best Selling Products

[best_selling_products]

Showcases your top-selling products, helping highlight popular choices in your store.

  • limit — how many best sellers to display

  • columns — grid layout columns

Example:
[best_selling_products limit="10" columns="5"]
Displays the top 10 best-selling products in 5 columns.

6. Single Product

[product]

Use this shortcode to display a single product on any page or post. You can identify the product by its ID or SKU.

  • id — product ID

  • sku — product SKU

Example:
[product id="123"]
This will show the product with the ID 123, including all its details like images, description, and price.

7. Product Attribute

[product_attribute]

Display products filtered by a specific attribute such as color, size, or material. This shortcode is handy for showcasing items sharing a particular characteristic.

  • attribute — the attribute name (e.g., color)

  • terms — attribute values to filter by (e.g., red)

  • operator — how to match terms (AND, OR)

  • limit — number of products

  • columns — number of columns

Example:
[product_attribute attribute="color" terms="red" operator="OR" limit="6" columns="3"]
This shows up to 6 products with the “red” color attribute in a 3-column grid.

8. Featured Products

[featured_products]

Displays products marked as featured in your WooCommerce store. Perfect for highlighting special items on your homepage or landing pages.

  • limit — number of featured products to show

  • columns — layout columns

Example:
[featured_products limit="8" columns="4"]
This will display 8 featured products in 4 columns.

9. Product Tags

[[product_tags]]

This shortcode lists product tags with links to their archives, helping visitors browse products by tags.

  • exclude — IDs of tags to exclude

  • orderby — sort criteria (e.g., name, count)

  • order — ascending or descending

Example:
[[product_tags exclude="15,20" orderby="count" order="DESC"]]
This lists product tags ordered by the number of products, excluding tags with IDs 15 and 20.

10. Product Page

[product_page]

Embed a full product page for a specific product by ID anywhere on your site.

  • id — product ID

Example:
[product_page id="123"]
This displays the entire product page for product 123, including images, description, reviews, and purchase options.

11. Product Reviews

[[product_reviews]]

Shows a list of reviews for a specific product. You can limit how many reviews to display.

  • id — product ID

  • limit — number of reviews

Example:
[[product_reviews id="123" limit="5"]]
This will display up to 5 reviews for product 123.

12. Product Description

[[woocommerce_product_description]]

Displays the description section of a product on your page.

13. Product Price

[[woocommerce_product_price]]

Shows the current price of a product.

WooCommerce Order Tracking and User Account Shortcodes

Order Tracking Form

[woocommerce_order_tracking]

This shortcode adds a simple, user-friendly form that allows customers to track the status of their orders directly on your website. By entering their order ID and billing email address, customers can quickly view updates such as shipping progress, delivery status, and order completion without needing to log in.

This feature improves customer experience by providing transparent order tracking and reducing support requests.

Example:
[woocommerce_order_tracking]

Simply place this shortcode on any page where you want customers to have access to order tracking. It will display a clean form with two input fields and a submit button.

User Account Dashboard

[woocommerce_my_account]

This shortcode creates the customer account dashboard, a secure area where registered users can manage their personal information and order history. It includes sections for:

  • Viewing recent and past orders

  • Downloading digital products

  • Editing billing and shipping addresses

  • Changing account passwords and details

  • Managing subscriptions (if applicable)

When users are not logged in, this shortcode automatically displays login and registration forms, making it easy for new and returning customers to access their accounts.

Example:
[woocommerce_my_account]

Add this shortcode to a page titled “My Account” or similar to provide customers with a seamless way to manage their profiles and orders.

How to Troubleshoot WooCommerce Shortcode Issues

If you’re encountering issues with WooCommerce shortcodes not functioning as expected, follow these steps to identify and resolve the problem:

  1. Confirm WooCommerce is Installed and Activated
    Make sure the WooCommerce plugin is installed and active on your WordPress site. Without WooCommerce, none of its shortcodes will work.

  2. Verify Shortcode Syntax
    Check that you’re using the correct shortcode syntax, including square brackets [ ] and proper parameters. Refer to the official WooCommerce documentation for guidance.

  3. Check for Plugin Conflicts
    Other plugins may interfere with WooCommerce shortcodes. Temporarily deactivate other plugins and test your shortcodes. If the problem resolves, reactivate plugins one by one to find the conflict. If you’re managing user roles or want to block unwanted users to reduce conflicts, consider tools like Blacklister for WooCommerce.

  4. Switch to a Default Theme
    Your active theme might be causing the issue. Switch to a default WordPress theme (like Twenty Twenty-One) temporarily to see if the shortcode works.

  5. Clear Caches
    Caching plugins or server caches may prevent updates from appearing. Clear all caches and reload your site.

  6. Contact WooCommerce Support
    If none of the above solves the issue, reach out to WooCommerce support for detailed help.

Frequently Asked Questions

  1. How do I add WooCommerce shortcodes to my pages?
    To add WooCommerce shortcodes, simply edit your WordPress page or post. If you’re using the Gutenberg editor, add a “Shortcode” block and paste the shortcode like [products]. For the Classic Editor, paste the shortcode directly where you want it to appear. When saved, the shortcode will show the corresponding WooCommerce content dynamically.

  2. Can I use multiple WooCommerce shortcodes on the same page?
    Yes, you can add multiple WooCommerce shortcodes on a single page to show different elements like product grids, the shopping cart, and the checkout form. Just ensure each shortcode is placed properly and they don’t visually conflict.

  3. Why aren’t my WooCommerce shortcodes working?
    Common reasons include the WooCommerce plugin not being activated, incorrect shortcode syntax, conflicts with other plugins or themes, or caching issues. Check these areas to fix the problem.

  4. Can I customise which products are shown using shortcodes?
    Yes, many product shortcodes support parameters like limit, columns, orderby, and category to control which products display and how they’re arranged.

  5. How do I display products from a specific category?
    Use the shortcode [product_category category="category-slug" limit="6" columns="3"], replacing “category-slug” with your actual product category name.

  6. Can I add an Add to Cart button for a single product anywhere?
    Yes! Use [add_to_cart id="123"], replacing 123 with the product ID, to add an Add to Cart button anywhere on your site.

  7. Are WooCommerce shortcodes mobile-friendly?
    Yes, WooCommerce shortcodes are designed to be responsive and adapt well to mobile devices.

  8. Can I restrict shortcode content based on user roles?
    WooCommerce doesn’t offer this natively, but you can use plugins or custom code to restrict shortcode visibility by user role.

WooCommerce Country Codes: Essential Guide for E-commerce Stores

What is a WooCommerce country code? A WooCommerce country code is a two-letter ISO 3166-1 alpha-2 code (for example, US for the United States, GB for the United Kingdom, DE for Germany) that WooCommerce uses to identify billing, shipping and tax locations. WooCommerce ships with all 249 official country codes and updates them with each release.

If you’re running an online store with WooCommerce, you’ve probably encountered country codes. But what exactly are they? Simply put, a country code is a short, standardised abbreviation (usually two letters) that represents a specific country, like US for the United States or GB for Great Britain. WooCommerce uses these codes behind the scenes to identify where your customers are from, which helps it calculate shipping costs, taxes, and even the checkout options that appear during a purchase. These country codes make it easier for your store to handle international orders smoothly without confusion or errors.

WooCommerce is one of the leading e-commerce platforms, loved for its flexibility and powerful features that support selling worldwide. Thanks to the use of country codes, it lets you set up shipping zones, tax rules, and payment methods tailored precisely to different countries and regions. This means you can offer your customers accurate prices and shipping times no matter where they live.

Alongside country codes, WooCommerce also uses state or region codes, which work the same way but at a more detailed level. For example, in the US or Canada, different states or provinces may have different tax rates or shipping rules, and these codes help WooCommerce handle those details properly.

In this guide, you’ll learn everything about WooCommerce country codes: what they are, how to use them, and why they’re so important for running a smooth, professional online store that sells internationally.

What Are WooCommerce Country Codes?

WooCommerce Country Codes

When managing an online store with WooCommerce, country codes play an essential role in organising your sales and shipping across different countries. At their core, country codes are short, standardised abbreviations that represent countries worldwide. WooCommerce uses the internationally recognised ISO 3166-1 alpha-2 standard for these codes, which consists of two capital letters—such as GB for the United Kingdom, FR for France, and DE for Germany.

These codes are more than just labels. WooCommerce relies on them internally to:

  • Identify the country of a customer during checkout
  • Apply the correct shipping zones and rates based on location
  • Calculate taxes accurately according to local laws
  • Tailor payment gateways and currency options for specific countries

Understanding the difference between country codes and state codes is also important. While country codes represent entire nations, state codes (or region codes) refer to subdivisions within those countries. For example, in the United States, US is the country code, while CA stands for California, a state within the US. Similarly, in Canada, CA is the country code, and ON is the code for Ontario. WooCommerce uses both to allow store owners to set precise shipping rules or tax rates that may differ between states, provinces, or regions.

Why Accurate Country Codes Matter

Using accurate country codes is crucial for your store’s smooth operation and customer satisfaction. Here’s why:

  • Shipping Precision: Shipping costs and options often vary from country to country. Correct codes ensure customers see only the relevant shipping methods and prices.
  • Tax Compliance: Different countries—and even regions within countries—have distinct tax laws. Accurate codes help your store apply the right tax rates, avoiding legal complications.
  • Improved User Experience: When country codes are correctly set, customers get tailored checkout options like preferred currencies or local payment gateways, making purchases faster and easier.
  • Avoid Order Errors: Mistakes in country codes can lead to failed orders, incorrect shipping, or delays, which harm your reputation and increase costs.

In short, country codes are the backbone of WooCommerce’s international functionality. Ensuring they are set up properly helps you manage your global store efficiently, keeps customers happy, and keeps your business compliant with different country regulations.

List of Supported WooCommerce Country Codes

WooCommerce supports a comprehensive set of country codes based on the ISO 3166-1 alpha-2 standard. These two-letter codes allow WooCommerce to precisely identify countries for shipping, taxes, and checkout processes. Having a clear, up-to-date list of supported country codes is essential for store owners, especially those selling internationally.

Below is an alphabetised table of WooCommerce-supported country codes and their corresponding countries. This list forms the basis for WooCommerce’s shipping zones, tax calculations, and more.

Full WooCommerce country codes (ISO 3166-1 alpha-2)
Country CodeCountry NameCountry CodeCountry Name
AEUnited Arab EmiratesMDMoldova
AFAfghanistanMEMontenegro
AGAntigua and BarbudaMGMadagascar
AIAnguillaMKNorth Macedonia
ALAlbaniaMLMali
AMArmeniaMMMyanmar
AOAngolaMNMongolia
ARArgentinaMOMacau
ASAmerican SamoaMRMauritania
ATAustriaMSMontserrat
AUAustraliaMTMalta
AWArubaMUMauritius
AXÅland IslandsMVMaldives
AZAzerbaijanMWMalawi
BABosnia and HerzegovinaMXMexico
BBBarbadosMYMalaysia
BDBangladeshMZMozambique
BEBelgiumNANamibia
BFBurkina FasoNCNew Caledonia
BGBulgariaNENiger
BHBahrainNFNorfolk Island
BIBurundiNGNigeria
BJBeninNINicaragua
BLSaint BarthélemyNLNetherlands
BMBermudaNONorway
BNBruneiNPNepal
BOBoliviaNRNauru
BQBonaire, Sint Eustatius, and SabaNUNiue
BRBrazilNZNew Zealand
BSBahamasOMOman
BTBhutanPAPanama
BVBouvet IslandPEPeru
BWBotswanaPFFrench Polynesia
BYBelarusPGPapua New Guinea
BZBelizePHPhilippines
CACanadaPKPakistan
CCCocos (Keeling) IslandsPLPoland
CDDemocratic Republic of the CongoPMSaint Pierre and Miquelon
CFCentral African RepublicPNPitcairn Islands
CGRepublic of the CongoPRPuerto Rico
CHSwitzerlandPSPalestinian Territories
CICôte d’IvoirePTPortugal
CKCook IslandsPWPalau
CLChilePYParaguay
CMCameroonQAQatar
CNChinaRERéunion
COColombiaRORomania
CRCosta RicaRSSerbia
CUCubaRURussia
CVCape VerdeRWRwanda
CWCuraçaoSASaudi Arabia
CXChristmas IslandSBSolomon Islands
CYCyprusSCSeychelles
CZCzech RepublicSDSudan
DEGermanySESweden
DJDjiboutiSGSingapore
DKDenmarkSHSaint Helena
DMDominicaSISlovenia
DODominican RepublicSJSvalbard and Jan Mayen
DZAlgeriaSKSlovakia
ECEcuadorSLSierra Leone
EEEstoniaSMSan Marino
EGEgyptSNSenegal
EHWestern SaharaSOSomalia
EREritreaSRSuriname
ESSpainSSSouth Sudan
ETEthiopiaSTSão Tomé and Príncipe
FIFinlandSVEl Salvador
FJFijiSXSint Maarten
FMMicronesiaSYSyria
FOFaroe IslandsSZEswatini
FRFranceTCTurks and Caicos Islands
GAGabonTDChad
GBUnited KingdomTFFrench Southern Territories
GDGrenadaTGTogo
GEGeorgiaTHThailand
GFFrench GuianaTJTajikistan
GGGuernseyTKTokelau
GHGhanaTLTimor-Leste
GIGibraltarTMTurkmenistan
GLGreenlandTNTunisia
GMGambiaTOTonga
GNGuineaTRTurkey
GPGuadeloupeTTTrinidad and Tobago
GQEquatorial GuineaTVTuvalu
GRGreeceTZTanzania
GTGuatemalaUAUkraine
GUGuamUGUganda
GWGuinea-BissauUMUnited States Minor Outlying Islands
GYGuyanaUSUnited States
HKHong KongUYUruguay
HMHeard Island and McDonald IslandsUZUzbekistan
HNHondurasVAVatican City
HRCroatiaVCSaint Vincent and the Grenadines
HTHaitiVEVenezuela
HUHungaryVGBritish Virgin Islands
IDIndonesiaVIU.S. Virgin Islands
IEIrelandVNVietnam
ILIsraelVUVanuatu
IMIsle of ManWFWallis and Futuna
INIndiaWSSamoa
IOBritish Indian Ocean TerritoryXKKosovo
IQIraqYEYemen
IRIranYTMayotte
ISIcelandZASouth Africa
ITItalyZMZambia
JEJerseyZWZimbabwe
JMJamaica

How Is This List Maintained and Updated?

WooCommerce regularly updates its country code list to stay aligned with the official ISO 3166-1 alpha-2 standard maintained by the International Organization for Standardization (ISO). Changes can happen if countries rename, merge, split, or new territories are recognised. WooCommerce reflects these updates in their codebase through periodic software updates and patches.

For store owners, this means that keeping WooCommerce up to date will usually ensure your country code list remains current without manual intervention.

How to Access This List Within WooCommerce

If you want to see or work directly with the list of country codes WooCommerce supports, you can access it in several ways:

  • Within WooCommerce Plugin Files: The country codes are stored in a PHP file called countries.php inside the WooCommerce plugin folder (typically found at woocommerce/i18n/countries.php). This file contains an array mapping country codes to country names.
  • Through WooCommerce Settings: In your WordPress admin dashboard, go to WooCommerce > Settings > General > Selling Locations or Shipping Zones. When configuring shipping or tax zones, WooCommerce uses this country code list internally to let you choose which countries or regions you want to target.

Programmatically: If you are developing custom code or plugins, WooCommerce provides functions to retrieve the country list, such as:

php
CopyEdit
WC()->countries->get_countries();

  •  This returns an array of all supported countries and their codes.

WooCommerce State Codes and Their Importance

Just as WooCommerce uses country codes to identify nations, it also relies on state codes to represent subdivisions within those countries—such as states, provinces, regions, or territories. These codes follow the ISO 3166-2 standard, which defines codes for the principal subdivisions of all countries coded in ISO 3166-1.

State codes are crucial in WooCommerce for several reasons:

  • Shipping: Many shipping methods and carriers calculate rates based on specific states or provinces rather than just countries. State codes let WooCommerce assign shipping zones more precisely.
  • Tax Calculations: Tax rates often differ between regions within the same country. For example, sales tax in California differs from Texas. WooCommerce uses state codes to apply accurate tax rules.
  • Checkout and Billing: Correct state codes ensure customers see appropriate options and avoid confusion during checkout.
  • Legal Compliance: Some regulations require storing location data at a regional level, making state codes essential.

Because these subdivisions vary widely across countries, WooCommerce allows you to customise or add state codes based on your target markets.

List of WooCommerce State Codes:-

Albanian (AL) states

CodeStateCodeStateCodeState
AL-01BeratAL-02DurrësAL-03Elbasan
AL-04FierAL-05GjirokastërAL-06Korçë
AL-07KukësAL-08LezhëAL-09Dibër
AL-10ShkodërAL-11TiranaAL-12Vlorë

Angolan (AO) States

CodeStateCodeStateCodeState
BGOBengoBLUBenguelaBIEBié
CABCabindaCNNCuneneHUAHuambo
HUIHuílaCCUKuando KubangoCNOKwanza-Norte
CUSKwanza-SulLUALuandaLNOLunda-Norte
LSULunda-SulMALMalanjeMOXMoxico
NAMNamibeUIGUígeZAIZaire

Argentinian (AR) Provinces

CodeStateCodeStateCodeState
CCiudad Autónoma de Buenos AiresBBuenos AiresKCatamarca
HChacoUChubutXCórdoba
WCorrientesEEntre RíosPFormosa
YJujuyLLa PampaFLa Rioja
MMendozaNMisionesQNeuquén
RRío NegroASaltaJSan Juan
DSan LuisZSanta CruzSSanta Fe
GSantiago del EsteroVTierra del FuegoTTucumán

Australian (AU) States

CodeStateCodeState
ACTAustralian Capital TerritoryNSWNew South Wales
NTNorthern TerritoryQLDQueensland
SASouth AustraliaTASTasmania
VICVictoriaWAWestern Australia

Bangladeshi (BD) Districts

CodeStateCodeStateCodeState
BD-05BagerhatBD-01BandarbanBD-02Barguna
BD-06BarishalBD-07BholaBD-03Bogura
BD-04BrahmanbariaBD-09ChandpurBD-10Chattogram
BD-12ChuadangaBD-11Cox’s BazarBD-08Cumilla
BD-13DhakaBD-14DinajpurBD-15Faridpur
BD-16FeniBD-19GaibandhaBD-18Gazipur
BD-17GopalganjBD-20HabiganjBD-21Jamalpur
BD-22JashoreBD-25JhalokatiBD-23Jhenaidah
BD-24JoypurhatBD-29KhagrachhariBD-27Khulna
BD-26KishoreganjBD-28KurigramBD-30Kushtia
BD-31LakshmipurBD-32LalmonirhatBD-36Madaripur
BD-37MaguraBD-33ManikganjBD-39Meherpur
BD-38MoulvibazarBD-35MunshiganjBD-34Mymensingh
BD-48NaogaonBD-43NarailBD-40Narayanganj
BD-42NarsingdiBD-44NatoreBD-45Nawabganj
BD-41NetrakonaBD-46NilphamariBD-47Noakhali
BD-49PabnaBD-52PanchagarhBD-51Patuakhali
BD-50PirojpurBD-53RajbariBD-54Rajshahi
BD-56RangamatiBD-55RangpurBD-58Satkhira
BD-62ShariatpurBD-57SherpurBD-59Sirajganj
BD-61SunamganjBD-60SylhetBD-63Tangail
BD-64Thakurgaon

Bulgarian (BG) States

CodeStateCodeStateCodeState
BG-01BlagoevgradBG-02BurgaBG-08Dobrich
BG-07GabrovoBG-26HaskovoBG-09Kardzhali
BG-10KyustendilBG-11LovechBG-12Montana
BG-13PazardzhikBG-14PernikBG-15Pleven
BG-16PlovdivBG-17RazgradBG-18Ruse
BG-27ShumenBG-19SilistraBG-20Sliven
BG-21SmolyanBG-23SofiaBG-22Sofia-Grad
BG-24Stara ZagoraBG-25TargovishteBG-03Varna
BG-04Veliko TarnovoBG-05VidinBG-06Vratsa
BG-28Yambol

Beninese (BJ) States

CodeStateCodeStateCodeState
ALAliboriAKAtakoraAQAtlantique
BOBorgouCOCollinesKOKouffo
DODongaLILittoralMOMono
OUOuéméPLPlateauZOZou

Bolivian (BO) States

CodeStateCodeStateCodeState
BO-BBeniBO-HChuquisacaBO-CCochabamba
BO-LLa PazBO-OOruroBO-NPando
BO-PPotosíBO-SSanta CruzBO-TTarija

Brazilian (BR) States

CodeStateCodeStateCodeState
ACAcreALAlagoasAPAmapá
AMAmazonasBABahiaCECeará
DFDistrito FederalESEspírito SantoGOGoiás
MAMaranhãoMTMato GrossoMSMato Grosso do Sul
MGMinas GeraisPAParáPBParaíba
PRParanáPEPernambucoPIPiauí
RJRio de JaneiroRNRio Grande do NorteRSRio Grande do Sul
RORondôniaRRRoraimaSCSanta Catarina
SPSão PauloSESergipeTOTocantins

Canadian (CA) Provinces and Territories

CodeProvince/TerritoryCodeProvince/TerritoryCodeProvince/Territory
ABAlbertaBCBritish ColumbiaMBManitoba
NBNew BrunswickNLNewfoundland and LabradorNTNorthwest Territories
NSNova ScotiaNUNunavutONOntario
PEPrince Edward IslandQCQuebecSKSaskatchewan
YTYukon Territory

Algerian (DZ) States

CodeStateCodeStateCodeState
DZ-01AdrarDZ-02ChlefDZ-03Laghouat
DZ-04Oum El BouaghiDZ-05BatnaDZ-06Béjaïa
DZ-07BiskraDZ-08BécharDZ-09Blida
DZ-10BouiraDZ-11TamanghassetDZ-12Tébessa
DZ-13TlemcenDZ-14TiaretDZ-15Tizi Ouzou
DZ-16AlgiersDZ-17DjelfaDZ-18Jijel
DZ-19SétifDZ-20SaïdaDZ-21Skikda
DZ-22Sidi Bel AbbèsDZ-23AnnabaDZ-24Guelma
DZ-25ConstantineDZ-26MédéaDZ-27Mostaganem
DZ-28M’SilaDZ-29MascaraDZ-30Ouargla
DZ-31OranDZ-32El BayadhDZ-33Illizi
DZ-34Bordj Bou ArréridjDZ-35BoumerdèsDZ-36El Tarf
DZ-37TindoufDZ-38TissemsiltDZ-39El Oued
DZ-40KhenchelaDZ-41Souk AhrasDZ-42Tipasa
DZ-43MilaDZ-44Aïn DeflaDZ-45Naama
DZ-46Aïn TémouchentDZ-47GhardaïaDZ-48Relizane

Ecuadorian (EC) States

CodeStateCodeStateCodeState
EC-AAzuayEC-BBolívarEC-FCañar
EC-CCarchiEC-HChimborazoEC-XCotopaxi
EC-OEl OroEC-EEsmeraldasEC-WGalápagos
EC-GGuayasEC-IImbaburaEC-LLoja
EC-RLos RíosEC-MManabíEC-SMorona-Santiago
EC-NNapoEC-DOrellanaEC-YPastaza
EC-PPichinchaEC-SESanta ElenaEC-SDSanto Domingo de los Tsáchilas
EC-USucumbíosEC-TTungurahuaEC-ZZamora-Chinchipe

Egyptian (EG) States

CodeStateCodeStateCodeState
EGALXAlexandriaEGASNAswanEGASTAsyut
EGBARed SeaEGBHBeheiraEGBNSBeni Suef
EGCCairoEGDKDakahliaEGDTDamietta
EGFYMFaiyumEGGHGharbiaEGGZGiza
EGISIsmailiaEGJSSouth SinaiEGKBQalyubia
EGKFSKafr el-SheikhEGKNQenaEGLXLuxor
EGMNMinyaEGMNFMonufiaEGMTMatrouh
EGPTSPort SaidEGSHGSohagEGSHRAl Sharqia
EGSINNorth SinaiEGSUZSuezEGWADNew Valley

Spanish (ES) States

CodeStateCodeStateCodeState
CA CoruñaVIAraba/ÁlavaABAlbacete
AAlicanteALAlmeríaOAsturias
AVÁvilaBABadajozPMBaleares
BBarcelonaBUBurgosCCCáceres
CACádizSCantabriaCSCastellón
CECeutaCRCiudad RealCOCórdoba
CUCuencaGIGironaGRGranada
GUGuadalajaraSSGipuzkoaHHuelva
HUHuescaJJaénLOLa Rioja
GCLas PalmasLELeónLLleida
LULugoMMadridMAMálaga
MLMelillaMUMurciaNANavarra
OROurensePPalenciaPOPontevedra
SASalamancaTFSanta Cruz de TenerifeSGSegovia
SESevillaSOSoriaTTarragona
TETeruelTOToledoVValencia
VAValladolidBIBiscayZAZamora
ZZaragoza

Ghanaian (GH) Regions

CodeStateCodeStateCodeState
AFAhafoAHAshantiBABrong-Ahafo
BOBonoBEBono EastCPCentral
EPEasternAAGreater AccraNENorth East
NPNorthernOTOtiSVSavannah
UEUpper EastUWUpper WestTVVolta
WPWesternWNWestern North

Greek (GR) Regions

CodeStateCodeStateCodeState
IAtticaAEast Macedonia and ThraceBCentral Macedonia
CWest MacedoniaDEpirusEThessaly
FIonian IslandsGWest GreeceHCentral Greece
JPeloponneseKNorth AegeanLSouth Aegean
MCrete

Guatemalan (GT) States

CodeStateCodeStateCodeState
GT-AVAlta VerapazGT-BVBaja VerapazGT-CMChimaltenango
GT-CQChiquimulaGT-PREl ProgresoGT-ESEscuintla
GT-GUGuatemalaGT-HUHuehuetenangoGT-IZIzabal
GT-JAJalapaGT-JUJutiapaGT-PEPetén
GT-QZQuetzaltenangoGT-QCQuichéGT-RERetalhuleu
GT-SASacatepéquezGT-SMSan MarcosGT-SRSanta Rosa
GT-SOSololáGT-SUSuchitepéquezGT-TOTotonicapán
GT-ZAZacapa

Hong Kong (HK) States

CodeStateCodeStateCodeState
HONG KONGHong Kong IslandKOWLOONKowloonNEW TERRITORIESNew Territories

Honduran (HN) States

CodeStateCodeStateCodeState
HN-ATAtlántidaHN-IBBay IslandsHN-CHCholuteca
HN-CLColónHN-CMComayaguaHN-CPCopán
HN-CRCortésHN-EPEl ParaísoHN-FMFrancisco Morazán
HN-GDGracias a DiosHN-INIntibucáHN-LELempira
HN-LPLa PazHN-OCOcotepequeHN-OLOlancho
HN-SBSanta BárbaraHN-VAValleHN-YOYoro

Hungarian (HU) States

CodeStateCodeStateCodeState
BKBács-KiskunBEBékésBABaranya
BZBorsod-Abaúj-ZemplénBUBudapestCSCsongrád-Csanád
FEFejérGSGyőr-Moson-SopronHBHajdú-Bihar
HEHevesJNJász-Nagykun-SzolnokKEKomárom-Esztergom
NONógrádPEPestSOSomogy
SZSzabolcs-Szatmár-BeregTOTolnaVAVas
VEVeszprémZAZala

Indonesian (ID) Provinces

CodeStateCodeStateCodeState
ACDaerah Istimewa AcehSUSumatera UtaraSBSumatera Barat
RIRiauKRKepulauan RiauJAJambi
SSSumatera SelatanBBBangka BelitungBEBengkulu
LALampungJKDKI JakartaJBJawa Barat
BTBantenJTJawa TengahJIJawa Timur
YODaerah Istimewa YogyakartaBABaliNBNusa Tenggara Barat
NTNusa Tenggara TimurKBKalimantan BaratKTKalimantan Tengah
KIKalimantan TimurKSKalimantan SelatanKUKalimantan Utara
SASulawesi UtaraSTSulawesi TengahSGSulawesi Tenggara
SRSulawesi BaratSNSulawesi SelatanGOGorontalo
MAMalukuMUMaluku UtaraPAPapua
PBPapua Barat

Irish (IE) States

CodeStateCodeStateCodeState
CWCarlowCNCavanCEClare
COCorkDLDonegalDDublin
GGalwayKYKerryKEKildare
KKKilkennyLSLaoisLMLeitrim
LKLimerickLDLongfordLHLouth
MOMayoMHMeathMNMonaghan
OYOffalyRNRoscommonSOSligo
TATipperaryWDWaterfordWHWestmeath
WXWexfordWWWicklow

Indian (IN) States

CodeStateCodeStateCodeState
APAndhra PradeshARArunachal PradeshASAssam
BRBiharCTChhattisgarhGAGoa
GJGujaratHRHaryanaHPHimachal Pradesh
JKJammu and KashmirJHJharkhandKAKarnataka
KLKeralaLALadakhMPMadhya Pradesh
MHMaharashtraMNManipurMLMeghalaya
MZMizoramNLNagalandOROdisha
PBPunjabRJRajasthanSKSikkim
TNTamil NaduTSTelanganaTRTripura
UKUttarakhandUPUttar PradeshWBWest Bengal
ANAndaman and Nicobar IslandsCHChandigarhDNDadra and Nagar Haveli
DDDaman and DiuDLDelhiLDLakshadeep
PYPuducherry

Iranian (IR) States

CodeStateCodeStateCodeState
KHZKhuzestan (خوزستان)THRTehran (تهران)ILMIlaam (ایلام)
BHRBushehr (بوشهر)ADLArdabil (اردبیل)ESFIsfahan (اصفهان)
YZDYazd (یزد)KRHKermanshah (کرمانشاه)KRNKerman (کرمان)
HDNHamadan (همدان)GZNGhazvin (قزوین)ZJNZanjan (زنجان)
LRSLuristan (لرستان)ABZAlborz (البرز)EAZEast Azarbaijan (آذربایجان شرقی)
WAZWest Azarbaijan (آذربایجان غربی)CHBChaharmahal and Bakhtiari (چهارمحال و بختیاری)SKHSouth Khorasan (خراسان جنوبی)
RKHRazavi Khorasan (خراسان رضوی)NKHNorth Khorasan (خراسان شمالی)SMNSemnan (سمنان)
FRSFars (فارس)QHMQom (قم)KRDKurdistan / کردستان)
KBDKohgiluyeh and BoyerAhmad (کهگیلوییه و بویراحمد)GLSGolestan (گلستان)GILGilan (گیلان)
MZNMazandaran (مازندران)MKZMarkazi (مرکزی)HRZHormozgan (هرمزگان)
SBNSistan and Baluchestan (سیستان و بلوچستان)

Italian (IT) Provinces

CodeStateCodeStateCodeState
AGAgrigentoALAlessandriaANAncona
AOAostaARArezzoAPAscoli Piceno
ATAstiAVAvellinoBABari
BTBarletta-Andria-TraniBLBellunoBNBenevento
BGBergamoBIBiellaBOBologna
BZBolzanoBSBresciaBRBrindisi
CACagliariCLCaltanissettaCBCampobasso
CECasertaCTCataniaCZCatanzaro
CHChietiCOComoCSCosenza
CRCremonaKRCrotoneCNCuneo
ENEnnaFMFermoFEFerrara
FIFirenzeFGFoggiaFCForlì-Cesena
FRFrosinoneGEGenovaGOGorizia
GRGrossetoIMImperiaISIsernia
SPLa SpeziaAQL’AquilaLTLatina
LELecceLCLeccoLILivorno
LOLodiLULuccaMCMacerata
MNMantovaMSMassa-CarraraMTMatera
MEMessinaMIMilanoMOModena
MBMonza e della BrianzaNANapoliNONovara
NUNuoroOROristanoPDPadova
PAPalermoPRParmaPVPavia
PGPerugiaPUPesaro e UrbinoPEPescara
PCPiacenzaPIPisaPTPistoia
PNPordenonePZPotenzaPOPrato
RGRagusaRARavennaRCReggio Calabria
REReggio EmiliaRIRietiRNRimini
RMRomaRORovigoSASalerno
SSSassariSVSavonaSISiena
SRSiracusaSOSondrioSUSud Sardegna
TATarantoTETeramoTRTerni
TOTorinoTPTrapaniTNTrento
TVTrevisoTSTriesteUDUdine
VAVareseVEVeneziaVBVerbano-Cusio-Ossola
VCVercelliVRVeronaVVVibo Valentia
VIVicenzaVTViterbo

Amaican (JM) parishes

CodeStateCodeStateCodeState
JM-01KingstonJM-02Saint AndrewJM-03Saint Thomas
JM-04PortlandJM-05Saint MaryJM-06Saint Ann
JM-07TrelawnyJM-08Saint JamesJM-09Hanover
JM-10WestmorelandJM-11Saint ElizabethJM-12Manchester
JM-13ClarendonJM-14Saint Catherine

Japanese (JP) prefectures

CodeStateCodeStateCodeState
JP01HokkaidoJP02AomoriJP03Iwate
JP04MiyagiJP05AkitaJP06Yamagata
JP07FukushimaJP08IbarakiJP09Tochigi
JP10GunmaJP11SaitamaJP12Chiba
JP13TokyoJP14KanagawaJP15Niigata
JP16ToyamaJP17IshikawaJP18Fukui
JP19YamanashiJP20NaganoJP21Gifu
JP22ShizuokaJP23AichiJP24Mie
JP25ShigaJP26KyotoJP27Osaka
JP28HyogoJP29NaraJP30Wakayama
JP31TottoriJP32ShimaneJP33Okayama
JP34HiroshimaJP35YamaguchiJP36Tokushima
JP37KagawaJP38EhimeJP39Kochi
JP40FukuokaJP41SagaJP42Nagasaki
JP43KumamotoJP44OitaJP45Miyazaki
JP46KagoshimaJP47Okinawa

Kenyan (KE) counties

CodeStateCodeStateCodeState
KE01BaringoKE02BometKE03Bungoma
KE04BusiaKE05Elgeyo-MarakwetKE06Embu
KE07GarissaKE08Homa BayKE09Isiolo
KE10KajiadoKE11KakamegaKE12Kericho
KE13KiambuKE14KilifiKE15Kirinyaga
KE16KisiiKE17KisumuKE18Kitui
KE19KwaleKE20LaikipiaKE21Lamu
KE22MachakosKE23MakueniKE24Mandera
KE25MarsabitKE26MeruKE27Migori
KE28MombasaKE29Murang’aKE30Nairobi County
KE31NakuruKE32NandiKE33Narok
KE34NyamiraKE35NyandaruaKE36Nyeri
KE37SamburuKE38SiayaKE39Taita-Taveta
KE40Tana RiverKE41Tharaka-NithiKE42Trans Nzoia
KE43TurkanaKE44Uasin GishuKE45Vihiga
KE46WajirKE47West Pokot

Laotian (LA) provinces

CodeStateCodeStateCodeState
ATAttapeuBKBokeoBLBolikhamsai
CHChampasakHOHouaphanhKHKhammouane
LMLuang NamthaLPLuang PrabangOUOudomxay
PHPhongsalySLSalavanSVSavannakhet
VIVientiane ProvinceVTVientianeXASainyabuli
XESekongXIXiangkhouangXSXaisomboun

Liberian (LR) provinces

CodeStateCodeStateCodeState
BMBomiBNBongGAGbarpolu
GBGrand BassaGCGrand Cape MountGGGrand Gedeh
GKGrand KruLOLofaMAMargibi
MYMarylandMOMontserradoNMNimba
RVRivercessRGRiver GeeSNSinoe

Moldovan (MD) states

CodeStateCodeStateCodeState
CChișinăuBLBălțiANAnenii Noi
BSBasarabeascaBRBriceniCHCahul
CTCantemirCLCălărașiCSCăușeni
CMCimișliaCRCriuleniDNDondușeni
DRDrochiaDBDubăsariEDEdineț
FLFăleștiFRFloreștiGEUTA Găgăuzia
GLGlodeniHNHînceștiILIaloveni
TLTeleneștiUNUngheni

Mexican (MX) states

CodeStateCodeStateCodeState
DFCiudad de MéxicoJAJaliscoNLNuevo León
AGAguascalientesBCBaja CaliforniaBSBaja California Sur
CMCampecheCSChiapasCHChihuahua
COCoahuilaCLColimaDGDurango
GTGuanajuatoGRGuerreroHGHidalgo
MXEstado de MéxicoMIMichoacánMOMorelos
NANayaritOAOaxacaPUPuebla
QTQuerétaroQRQuintana RooSLSan Luis Potosí
SISinaloaSOSonoraTBTabasco
TMTamaulipasTLTlaxcalaVEVeracruz
YUYucatánZAZacatecas

Malaysian (MY) states

CodeStateCodeStateCodeState
JHRJohorKDHKedahKTNKelantan
LBNLabuanMLKMalacca (Melaka)NSNNegeri Sembilan
PHGPahangPNGPenang (Pulau Pinang)PRKPerak
PLSPerlisSBHSabahSWKSarawak
SGRSelangorTRGTerengganuPJYPutrajaya
KULKuala Lumpur

Mozambican (MZ) provinces

CodeStateCodeStateCodeState
MZPCabo DelgadoMZGGazaMZIInhambane
MZBManicaMZLMaputo ProvinceMZMPMMaputo
MZNNampulaMZANiassaMZSSofala
MZTTeteMZQZambézia

Namibian (NA) regions

CodeStateCodeStateCodeState
ERErongoHAHardapKAKaras
KEKavango EastKWKavango WestKHKhomas
KUKuneneOWOhangwenaOHOmaheke
OSOmusatiONOshanaOTOshikoto
ODOtjozondjupaCAZambezi

Nigerian (NG) provinces

CodeStateCodeStateCodeState
ABAbiaFCAbujaADAdamawa
AKAkwa IbomANAnambraBABauchi
BYBayelsaBEBenueBOBorno
CRCross RiverDEDeltaEBEbonyi
EDEdoEKEkitiENEnugu
GOGombeIMImoJIJigawa
KDKadunaKNKanoKTKatsina
KEKebbiKOKogiKWKwara
LALagosNANasarawaNINiger
OGOgunONOndoOSOsun
OYOyoPLPlateauRIRivers
SOSokotoTATarabaYOYobe
ZAZamfara

Nepalese (NP) zones

CodeStateCodeStateCodeState
BAGBagmatiBHEBheriDHADhaulagiri
GANGandakiJANJanakpurKARKarnali
KOSKoshiLUMLumbiniMAHMahakali
MECMechiNARNarayaniRAPRapti
SAGSagarmathaSETSeti

Nicaraguan (NI) states

CodeStateCodeStateCodeState
NI-ANAtlántico NorteNI-ASAtlántico SurNI-BOBoaco
NI-CACarazoNI-CIChinandegaNI-COChontales
NI-ESEstelíNI-GRGranadaNI-JIJinotega
NI-LELeónNI-MDMadrizNI-MNManagua
NI-MSMasayaNI-MTMatagalpaNI-NSNueva Segovia
NI-RIRivasNI-SJRío San Juan

New Zealand (NZ) states

CodeStateCodeStateCodeState
NLNorthlandAKAucklandWAWaikato
BPBay of PlentyTKTaranakiGIGisborne
HBHawke’s BayMWManawatu-WanganuiWEWellington
NSNelsonMBMarlboroughTMTasman
WCWest CoastCTCanterburyOTOtago
SLSouthland

Panamanian (PA) states

CodeStateCodeStateCodeState
PA-1Bocas del ToroPA-2CocléPA-3Colón
PA-4ChiriquíPA-5DariénPA-6Herrera
PA-7Los SantosPA-8PanamáPA-9Veraguas
PA-10West PanamáPA-EMEmberáPA-KYGuna Yala
PA-NBNgöbe-Buglé

Peruvian (PE) states

CodeStateCodeStateCodeState
CALEl CallaoLMAMunicipalidad Metropolitana de LimaAMAAmazonas
ANCAncashAPUApurímacAREArequipa
AYAAyacuchoCAJCajamarcaCUSCusco
HUVHuancavelicaHUCHuánucoICAIca
JUNJunínLALLa LibertadLAMLambayeque
LIMLimaLORLoretoMDDMadre de Dios
MOQMoqueguaPASPascoPIUPiura
PUNPunoSAMSan MartínTACTacna
TUMTumbesUCAUcayali

Philippine (PH) provinces

CodeStateCodeStateCodeState
ABRAbraAGNAgusan del NorteAGSAgusan del Sur
AKLAklanALBAlbayANTAntique
APAApayaoAURAuroraBASBasilan
BANBataanBTNBatanesBTGBatangas
BENBenguetBILBiliranBOHBohol
BUKBukidnonBULBulacanCAGCagayan
CANCamarines NorteCASCamarines SurCAMCamiguin
CAPCapizCATCatanduanesCAVCavite
CEBCebuCOMCompostela ValleyNCOCotabato
DAVDavao del NorteDASDavao del SurDACDavao Occidental
DAODavao OrientalDINDinagat IslandsEASEastern Samar
GUIGuimarasIFUIfugaoILNIlocos Norte
ILSIlocos SurILIIloiloISAIsabela
KALKalingaLUNLa UnionLAGLaguna
LANLanao del NorteLASLanao del SurLEYLeyte
MAGMaguindanaoMADMarinduqueMASMasbate
MSCMisamis OccidentalMSRMisamis OrientalMOUMountain Province
NECNegros OccidentalNERNegros OrientalNSANorthern Samar
NUENueva EcijaNUVNueva VizcayaMDCOccidental Mindoro
MDROriental MindoroPLWPalawanPAMPampanga
PANPangasinanQUEQuezonQUIQuirino
RIZRizalROMRomblonWSASamar
SARSaranganiSIQSiquijorSORSorsogon
SCOSouth CotabatoSLESouthern LeyteSUKSultan Kudarat
SLUSuluSUNSurigao del NorteSURSurigao del Sur
TARTarlacTAWTawi-TawiZMBZambales
ZANZamboanga del NorteZASZamboanga del SurZSIZamboanga Sibugay
00Metro Manila

Pakistani (PK) states

CodeStateCodeStateCodeState
JKAzad KashmirBABalochistanTAFATA
GBGilgit BaltistanISIslamabad Capital TerritoryKPKhyber Pakhtunkhwa
PBPunjabSDSindh

Paraguayan (PY) states

CodeStateCodeStateCodeState
PY-ASUAsunciónPY-1ConcepciónPY-2San Pedro
PY-3PY-4GuairáPY-5Caaguazú
PY-6CaazapáPY-7ItapúaPY-8Misiones
PY-9ParaguaríPY-10Alto ParanáPY-11Central
PY-12ÑeembucúPY-13AmambayPY-14Canindeyú
PY-15Presidente HayesPY-16Alto ParaguayPY-17Boquerón

Romanian (RO) states

CodeStateCodeStateCodeState
ABAlbaARAradAGArgeș
BCBacăuBHBihorBNBistrița-Năsăud
BTBotoșaniBRBrăilaBVBrașov
BBucureștiBZBuzăuCLCălărași
CSCaraș-SeverinCJClujCTConstanța
CVCovasnaDBDâmbovițaDJDolj
GLGalațiGRGiurgiuGJGorj
HRHarghitaHDHunedoaraILIalomița
ISIașiIFIlfovMMMaramureș
MHMehedințiMSMureșNTNeamț
OTOltPHPrahovaSJSălaj
SMSatu MareSBSibiuSVSuceava
TRTeleormanTMTimișTLTulcea
VLVâlceaVSVasluiVNVrancea

Salvadoran (SV) states

CodeStateCodeStateCodeState
SV-AHAhuachapánSV-CACabañasSV-CHChalatenango
SV-CUCuscatlánSV-LILa LibertadSV-MOMorazán
SV-PALa PazSV-SASanta AnaSV-SMSan Miguel
SV-SOSonsonateSV-SSSan SalvadorSV-SVSan Vicente
SV-UNLa UniónSV-USUsulután

Thai (TH) states

CodeStateCodeStateCodeState
TH-37Amnat CharoenTH-15Ang ThongTH-14Ayutthaya
TH-10BangkokTH-38Bueng KanTH-31Buri Ram
TH-24ChachoengsaoTH-18Chai NatTH-36Chaiyaphum
TH-22ChanthaburiTH-50Chiang MaiTH-57Chiang Rai
TH-20ChonburiTH-86ChumphonTH-46Kalasin
TH-62Kamphaeng PhetTH-71KanchanaburiTH-40Khon Kaen
TH-81KrabiTH-52LampangTH-51Lamphun
TH-42LoeiTH-16LopburiTH-58Mae Hong Son
TH-44Maha SarakhamTH-49MukdahanTH-26Nakhon Nayok
TH-73Nakhon PathomTH-48Nakhon PhanomTH-30Nakhon Ratchasima
TH-60Nakhon SawanTH-80Nakhon Si ThammaratTH-55Nan
TH-96NarathiwatTH-39Nong Bua Lam PhuTH-43Nong Khai
TH-12NonthaburiTH-13Pathum ThaniTH-94Pattani
TH-82Phang NgaTH-93PhatthalungTH-56Phayao
TH-67PhetchabunTH-76PhetchaburiTH-66Phichit
TH-65PhitsanulokTH-54PhraeTH-83Phuket
TH-25Prachin BuriTH-77Prachuap Khiri KhanTH-85Ranong
TH-70RatchaburiTH-21RayongTH-45Roi Et
TH-27Sa KaeoTH-47Sakon NakhonTH-11Samut Prakan
TH-74Samut SakhonTH-75Samut SongkhramTH-19Saraburi
TH-91SatunTH-17Sing BuriTH-33Sisaket
TH-90SongkhlaTH-64SukhothaiTH-72Suphan Buri
TH-84Surat ThaniTH-32SurinTH-63Tak
TH-92TrangTH-23TratTH-34Ubon Ratchathani
TH-41Udon ThaniTH-61Uthai ThaniTH-53Uttaradit
TH-95YalaTH-35Yasothon

Turkish (TR) states

CodeStateCodeStateCodeState
TR01AdanaTR02AdıyamanTR03Afyon
TR04AğrıTR05AmasyaTR06Ankara
TR07AntalyaTR08ArtvinTR09Aydın
TR10BalıkesirTR11BilecikTR12Bingöl
TR13BitlisTR14BoluTR15Burdur
TR16BursaTR17ÇanakkaleTR18Çankırı
TR19ÇorumTR20DenizliTR21Diyarbakır
TR22EdirneTR23ElazığTR24Erzincan
TR25ErzurumTR26EskişehirTR27Gaziantep
TR28GiresunTR29GümüşhaneTR30Hakkari
TR31HatayTR32IspartaTR33İçel
TR34İstanbulTR35İzmirTR36Kars
TR37KastamonuTR38KayseriTR39Kırklareli
TR40KırşehirTR41KocaeliTR42Konya
TR43KütahyaTR44MalatyaTR45Manisa
TR46KahramanmaraşTR47MardinTR48Muğla
TR49MuşTR50NevşehirTR51Niğde
TR52OrduTR53RizeTR54Sakarya
TR55SamsunTR56SiirtTR57Sinop
TR58SivasTR59TekirdağTR60Tokat
TR61TrabzonTR62TunceliTR63Şanlıurfa
TR64UşakTR65VanTR66Yozgat
TR67ZonguldakTR68AksarayTR69Bayburt
TR70KaramanTR71KırıkkaleTR72Batman
TR73ŞırnakTR74BartınTR75Ardahan
TR76IğdırTR77YalovaTR78Karabük
TR79KilisTR80OsmaniyeTR81Düzce

Tanzanian (TZ) states

CodeStateCodeStateCodeState
TZ01ArushaTZ02Dar es SalaamTZ03Dodoma
TZ04IringaTZ05KageraTZ06Pemba North
TZ07Zanzibar NorthTZ08KigomaTZ09Kilimanjaro
TZ10Pemba SouthTZ11Zanzibar SouthTZ12Lindi
TZ13MaraTZ14MbeyaTZ15Zanzibar West
TZ16MorogoroTZ17MtwaraTZ18Mwanza
TZ19CoastTZ20RukwaTZ21Ruvuma
TZ22ShinyangaTZ23SingidaTZ24Tabora
TZ25TangaTZ26ManyaraTZ27Geita
TZ28KataviTZ29NjombeTZ30Simiyu

Serbian (RS) districts

CodeStateCodeStateCodeState
RS00BelgradeRS14BorRS11Braničevo
RS02Central BanatRS10DanubeRS23Jablanica
RS09KolubaraRS08MačvaRS17Morava
RS20NišavaRS01North BačkaRS03North Banat
RS24PčinjaRS22PirotRS13Pomoravlje
RS19RasinaRS18RaškaRS06South Bačka
RS04South BanatRS07SremRS12Šumadija
RS21ToplicaRS05West BačkaRS15Zaječar
RS16ZlatiborRS25KosovoRS26Peć
RS27PrizrenRS28Kosovska MitrovicaRS29Kosovo-Pomoravlje
RSKMKosovo-MetohijaRSVOVojvodina

Ukrainian (UA) oblasts

CodeStateCodeStateCodeState
VNVinnytsia OblastVLVolyn OblastDPDnipropetrovsk Oblast
DTDonetsk OblastZTZhytomyr OblastZKZakarpattia Oblast
ZPZaporizhzhia OblastIFIvano-Frankivsk OblastKVKyiv Oblast
KHKirovohrad OblastLHLuhansk OblastLVLviv Oblast
MYMykolaiv OblastODOdessa OblastPLPoltava Oblast
RVRivne OblastSMSumy OblastTPTernopil Oblast
KKKharkiv OblastKSKherson OblastKMKhmelnytskyi Oblast
CKCherkasy OblastCHChernihiv OblastCVChernivtsi Oblast

Ugandan (UG) districts

CodeStateCodeStateCodeState
UG314AbimUG301AdjumaniUG322Agago
UG323AlebtongUG315AmolatarUG324Amudat
UG216AmuriaUG316AmuruUG302Apac
UG303AruaUG217BudakaUG218Bududa
UG201BugiriUG235BugweriUG420Buhweju
UG117BuikweUG219BukedeaUG118Bukomansimbi
UG220BukwaUG225BulambuliUG416Buliisa
UG401BundibugyoUG430BunyangabuUG402Bushenyi
UG202BusiaUG221ButalejaUG119Butambala
UG233ButeboUG120BuvumaUG226Buyende
UG317DokoloUG121GombaUG304Gulu
UG403HoimaUG417IbandaUG203Iganga
UG418IsingiroUG204JinjaUG318Kaabong
UG404KabaleUG405KabaroleUG213Kaberamaido
UG427KagadiUG428KakumiroUG101Kalangala
UG222KaliroUG122KalunguUG102Kampala
UG205KamuliUG413KamwengeUG414Kanungu
UG206KapchorwaUG236KapelebyongUG126Kasanda
UG406KaseseUG207KatakwiUG112Kayunga
UG407KibaaleUG103KibogaUG227Kibuku
UG432KikuubeUG419KiruhuraUG421Kiryandongo
UG408KisoroUG305KitgumUG319Koboko
UG325KoleUG306KotidoUG208Kumi
UG333KwaniaUG228KweenUG123Kyankwanzi
UG422KyegegwaUG415KyenjojoUG125Kyotera
UG326LamwoUG307LiraUG229Luuka
UG104LuweroUG124LwengoUG114Lyantonde
UG223ManafwaUG320MarachaUG105Masaka
UG409MasindiUG214MayugeUG209Mbale
UG410MbararaUG423MitoomaUG115Mityana
UG308MorotoUG309MoyoUG106Mpigi
UG107MubendeUG108MukonoUG334Nabilatuk
UG311NakapiripiritUG116NakasekeUG109Nakasongola
UG230NamayingoUG234NamisindwaUG224Namutumba
UG327NapakUG310NebbiUG231Ngora
UG424NtorokoUG411NtungamoUG328Nwoya
UG331OmoroUG329OtukeUG321Oyam
UG312PaderUG332PakwachUG210Pallisa
UG110RakaiUG429RubandaUG425Rubirizi
UG431RukigaUG412RukungiriUG111Sembabule
UG232SerereUG426SheemaUG215Sironko
UG211SorotiUG212TororoUG113Wakiso
UG313YumbeUG330Zombo

United States Minor Outlying Islands (UM)

CodeStateCodeStateCodeState
81Baker Island84Howland Island86Jarvis Island
67Johnston Atoll89Kingman Reef71Midway Atoll
76Navassa Island95Palmyra Atoll79Wake Island

United States (US) states

CodeStateCodeStateCodeState
ALAlabamaAKAlaskaAZArizona
ARArkansasCACaliforniaCOColorado
CTConnecticutDEDelawareDCDistrict Of Columbia
FLFloridaGAGeorgiaHIHawaii
IDIdahoILIllinoisINIndiana
IAIowaKSKansasKYKentucky
LALouisianaMEMaineMDMaryland
MAMassachusettsMIMichiganMNMinnesota
MSMississippiMOMissouriMTMontana
NENebraskaNVNevadaNHNew Hampshire
NJNew JerseyNMNew MexicoNYNew York
NCNorth CarolinaNDNorth DakotaOHOhio
OKOklahomaOROregonPAPennsylvania
RIRhode IslandSCSouth CarolinaSDSouth Dakota
TNTennesseeTXTexasUTUtah
VTVermontVAVirginiaWAWashington
WVWest VirginiaWIWisconsinWYWyoming
AAArmed Forces (AA)AEArmed Forces (AE)APArmed Forces (AP)

Uruguayan (UY) states

CodeStateCodeStateCodeState
UY-ARArtigasUY-CACanelonesUY-CLCerro Largo
UY-COColoniaUY-DUDuraznoUY-FSFlores
UY-FDFloridaUY-LALavallejaUY-MAMaldonado
UY-MOMontevideoUY-PAPaysandúUY-RNRío Negro
UY-RVRiveraUY-RORochaUY-SASalto
UY-SJSan JoséUY-SOSorianoUY-TATacuarembó
UY-TTTreinta y Tres

Venezuelan (VE) states

CodeStateCodeStateCodeState
VE-ACapitalVE-BAnzoáteguiVE-CApure
VE-DAraguaVE-EBarinasVE-FBolívar
VE-GCaraboboVE-HCojedesVE-IFalcón
VE-JGuáricoVE-KLaraVE-LMérida
VE-MMirandaVE-NMonagasVE-ONueva Esparta
VE-PPortuguesaVE-RSucreVE-STáchira
VE-TTrujilloVE-UYaracuyVE-VZulia
VE-WFederal DependenciesVE-XLa Guaira (Vargas)VE-YDelta Amacuro
VE-ZAmazonas

South African (ZA) states

CodeStateCodeStateCodeState
ECEastern CapeFSFree StateGPGauteng
KZNKwaZulu-NatalLPLimpopoMPMpumalanga
NCNorthern CapeNWNorth WestWCWestern Cape

Zambian (ZM) provinces

CodeStateCodeStateCodeState
ZM-01WesternZM-02CentralZM-03Eastern
ZM-04LuapulaZM-05NorthernZM-06North-Western
ZM-07SouthernZM-08CopperbeltZM-09Lusaka
ZM-10Muchinga

How to Use WooCommerce Country Codes in Your Store

When customers visit your WooCommerce store and proceed to checkout, the default country and state must be set correctly to provide a smooth experience.

By default, WooCommerce uses your store address to guess the customer’s location. However, you can explicitly set the default country and state to match your primary market or most frequent customer base. This helps reduce friction and speeds up the checkout process.

How to set it:

  1. Go to your WordPress admin dashboard.
  2. Navigate to WooCommerce > Settings > General.
  3. Find the Selling location(s) and Default customer location options.
  4. Under Default customer location, select Specific country, and pick the country using the two-letter ISO country code (e.g., US for the United States, CA for Canada).
  5. To set the default state, you may need to add a small snippet of code or use a plugin that allows setting default states by country codes.

Using the correct country and state codes ensures the checkout fields are pre-filled with the right default values, enhancing the user experience.

Restricting Sales to Specific Countries or States Using Country Codes

If you want to restrict where you sell or ship products, WooCommerce allows you to limit sales to specific countries — or even states — using country/state codes.

Why restrict sales?

  • You only want to sell to countries where you can ship.
  • Tax regulations require limiting sales by location.
  • Business strategy dictates regional availability.

How to set it:

  1. Go to WooCommerce > Settings > General.
  2. Under Selling location(s), select Sell to specific countries.
  3. Enter the ISO country codes of the countries you want to sell to, separated by commas (e.g., US,CA,GB).
  4. To restrict by states or provinces, use a plugin or customization that accepts codes like US-NY for New York or CA-ON for Ontario.

Adding Custom Countries or States (Step-by-Step Guide)

Sometimes you may want to add custom countries or states not available in WooCommerce by default — e.g., territories or special regions.

Step 1: Add a custom country

add_filter( 'woocommerce_countries', 'add_custom_country' );

function add_custom_country( $countries )

{

    $countries['XX'] = 'Customland'; // 'XX' = new country code

    return $countries;

<span style="font-weight: 400;">}

Step 2: Add states to that custom country

add_filter( 'woocommerce_states', 'add_custom_country_states' );

function add_custom_country_states( $states ) {

    $states['XX'] = array(

        'XX-01' => 'Custom State 1',

        'XX-02' => 'Custom State 2',

    );

    return $states;

}

Step 3: Use them in WooCommerce settings

Your custom country and states will now show up throughout WooCommerce — including checkout, shipping zones, and tax rules.

Modifying Country or State Names Shown to Users

You can also change how country or state names appear to customers — ideal for localization, branding, or translations.

Rename a country’s display name:

add_filter( 'woocommerce_countries', 'modify_country_names' );

function modify_country_names( $countries ) {

    if ( isset( $countries['US'] ) ) {

        $countries['US'] = 'United States of Awesome';

    }

    return $countries;

}

Rename a state’s display name:

add_filter( 'woocommerce_states', 'modify_state_names' );

function modify_state_names( $states ) {

    if ( isset( $states['US']['CA'] ) ) {

        $states['US']['CA'] = 'California Dreamin\'';

    }

    return $states;

}

Using Country Codes in Shipping & Tax Plugins

Most WooCommerce shipping and tax plugins rely on country and state codes to work properly.

Examples include:

  • Shipping Zones — configured using country/state codes (e.g., US, US-TX).
  • Tax Rules — applied to specific regions using codes for correct tax calculation.
  • Third-Party Plugins: such as the powerful Tax Display by Country for WooCommerce plugin, which displays product prices inclusive/exclusive of tax based on the customer’s country code.

Using official ISO country and state codes ensures compatibility and prevents configuration errors.

 

How to Identify and Block High-Risk Users in WooCommerce

As eCommerce continues to grow, so do the risks, especially for WooCommerce store owners. From fraudulent transactions to fake accounts, the threats are becoming more frequent and sophisticated. Without proper protections in place, these high-risk users can drain revenue, waste resources, and damage your store’s reputation.

That’s why it’s critical to identify and block high-risk users in WooCommerce early in the process. Doing so helps protect your store, streamline operations, and maintain customer trust.

The goal of this article is simple: to show you how to detect high-risk users in WooCommerce and implement automated strategies to block high-risk users in WooCommerce before they cause harm.

What is a High-Risk User in WooCommerce?

A high-risk user is someone who poses a strong likelihood of committing fraud or abusing your store’s features. These users may exploit vulnerabilities to steal, scam, or disrupt your operations.

Common Examples of High-Risk Users:

  • Users with fake or stolen payment details — leading to chargebacks and loss of revenue.

  • Customers are abusing return or refund policies by making false claims or exploiting loopholes.

  • Bots that create fake accounts or place spam orders, adding strain to your system and skewing analytics.

  • Repeat offenders using known blacklisted information, such as flagged IPs, emails, or phone numbers.

Common Signs of High-Risk Behavior

Detecting high-risk users early starts with recognising the warning signs. While some behaviors may seem harmless in isolation, patterns often reveal fraudulent intent. Here are the most common red flags to watch for in your WooCommerce store:

  • Multiple Failed Login or Checkout Attempts
    Repeated login failures or unsuccessful payment attempts may indicate bot activity or someone testing stolen credentials.

  • Mismatched Billing and Shipping Addresses
    Orders where the billing and shipping details don’t align—especially across different countries—can signal potential fraud.

  • Suspicious Email Domains
    Temporary or disposable email addresses (e.g., *@tempmail.com, *@mailinator.com) are commonly used by fraudsters to avoid detection and bypass account verification.

  • Known Blacklisted IPs or Countries
    Orders originating from flagged IP addresses or high-risk regions are often linked to scams, fraud rings, or automated attacks. Blocking users by IP address can help reduce this threat.

  • Unusually Large or Repeated Orders
    Large-value orders placed without a purchase history—or multiple identical orders in a short timeframe—can be signs of account compromise or payment fraud.

  • Abnormal Customer Behavior
    Activities such as placing many low-value “test” orders or rapidly switching addresses and payment methods are strong indicators of automated fraud attempts or system probing.

Identifying these behaviors early allows you to take preventive action before a fraudulent order impacts your revenue or reputation.

Tools and Techniques to Identify High-Risk Users

To protect your WooCommerce store from fraud, you need more than just intuition—you need the right tools. Combining automated systems with manual checks can help you identify and block high-risk users before they cause damage.

1. Fraud Scoring Systems

Plugins like FraudLabs Pro, WooCommerce Anti-Fraud, and similar tools analyse each order using fraud scoring. They assess factors such as IP address, email domain, billing/shipping mismatch, and more, then assign a risk score to help you decide whether to accept, review, or reject the order.

2. Behavior Monitoring

Tracking user behavior—such as failed login attempts, unusual cart activity, or multiple sessions from the same IP—can uncover suspicious patterns early. Many security plugins offer dashboards or logs to monitor this behavior in real-time.

3. IP Geolocation and VPN/Proxy Detection

Fraudsters often hide behind VPNs or proxies to disguise their location. Using geolocation tools helps detect when orders originate from unexpected or high-risk regions. This data can be used to trigger alerts or automatic blocks.

4. Email and Phone Validation Tools

Temporary and disposable emails are a red flag. Use validation tools that check the email domain reputation or block known temporary domains. For guidance on email blocking, refer to this step-by-step guide on blocking email addresses in WooCommerce. Similarly, validating phone numbers—especially international or non-mobile ones—can also filter out risky users.

5. Manual Order Review and Pattern Recognition

Sometimes, human intuition catches what automation misses. Reviewing high-risk orders manually and identifying patterns—such as repeat offenses or frequent address changes—can help you refine your fraud detection rules over time.

How to Block High-Risk Users in WooCommerce

When running a WooCommerce store, identifying high-risk users is only half the battle—blocking them effectively is what truly protects your revenue and operations. One of the most reliable ways to do this is by using a dedicated security plugin like Aelia Blacklister for WooCommerce, which enables precise and flexible blacklisting based on user behavior and data.

Why Use Aelia Blacklister?

Aelia Blacklister helps WooCommerce store owners proactively block fraudulent customers before they can complete an order. It allows you to blacklist users based on IP addresses, email addresses, phone numbers, physical addresses, and even names, using both exact and partial matches. You can stop fake orders, prevent abuse of return policies, and block suspicious users at checkout.

How to Configure Aelia Blacklister Plugin

Setting up Aelia Blacklister for WooCommerce is simple and intuitive, even for non-technical users. Here’s a step-by-step guide:

Step 1: Download and Install the Aelia Blacklister Plugin

Part 1: Download the Plugin

  • Visit the Official Aelia Website
    Head to aelia.co and navigate to the Aelia Blacklister plugin page to get the most recent and secure version.

  • Purchase or Access the Plugin
    If the plugin is paid, complete your purchase to access the download link.

  • Download the ZIP Archive
    Click the Download button to save the plugin ZIP file to your computer. This file contains everything needed for installation.

Part 2: Upload the Plugin to Your WordPress Site

  • Log in to WordPress Admin
    Access your WordPress admin dashboard.

  • Go to Plugins > Add New
    From the left-hand menu, hover over Plugins, then click Add New.

  • Click ‘Upload Plugin’
    At the top of the page, click the Upload Plugin button.

  • Select the ZIP File
    Click Choose File, locate the downloaded Aelia Blacklister ZIP file, and select it.

  • Install the Plugin
    Click Install Now to upload and install the plugin.

Part 3: Activate the Plugin

  • Wait for Installation to Finish
    Once installed, WordPress will show a confirmation message.

  • Activate the Plugin
    Click Activate Plugin to enable Aelia Blacklister.

  • Verify Activation
    After activation, you’ll find the plugin listed under active plugins and see a new settings section in WooCommerce > Aelia Blacklister.

Step 2: Configure Blocking Rules in Aelia Blacklister

Now that the plugin is installed, it’s time to configure your blacklist rules to stop high-risk users from placing orders.

1. Block by Name and Surname

How to Block:


Go to the blacklist settings and input the full names, first names, or surnames you wish to block.

Why It Matters:
Fraudsters may change emails or IPs, but often reuse the same names. Blocking by name helps catch repeat offenders.

Steps:

  • Open the Blacklist Customer section.

  • Add names to the blacklist.

  • Click Save Changes.

2. Block by Address (Street, Postcode, City, State, Country)

How to Block:

Block High-Risk Users in WooCommerce
Target specific address components like street name, postal code, or country.

Why It Matters:
Fake or stolen addresses from high-risk regions are often reused by fraudsters.

Steps:

  • Navigate to the Address section.

  • Enter full or partial addresses.

  • Choose blocking levels (e.g., region, postcode).

  • Click Save.

3. Block by Email Address

How to Block:

Block High-Risk Users in WooCommerce
Enter full email addresses or entire domains (e.g., *@tempmail.com).

Why It Matters:
Disposable and fake emails are commonly used to bypass security.

Steps:

  • Go to the Email Address field.

  • Add the emails or domains.

  • Save the settings.

4. Block by Phone Number

How to Block:

Block High-Risk Users in WooCommerce
Input full numbers or area codes commonly linked to fraud.

Why It Matters:
Fake or stolen phone numbers are often tied to suspicious orders.

Steps:

  • Go to the Phone Number section.

  • Add the numbers or codes.

  • Save the configuration.

5. Block by IP Address

How to Block:

Block High-Risk Users in WooCommerce
Use exact IPs, wildcards (e.g., 192.168.*.*), or regex to match patterns.

Why It Matters:
Fraudsters may return under the same IP or a known range. Blocking IPs prevents repeat access.

Steps:

  • Access the IP Address section.

  • Enter specific IPs or ranges.

  • Apply regex patterns for advanced control.

  • Click Save.

Final Step: Save and Activate Your Rules

After adding all your blocking criteria, ensure you click Save or Update in the plugin settings.
Regularly reviewing and updating your blacklist will help you stay ahead of new fraud attempts.

Enhance Your Store Security with Complementary Tools

While Aelia Blacklister offers robust blocking capabilities to protect your WooCommerce store from fraudulent orders, you can take your store’s security and overall performance even further by integrating additional solutions from Aelia.

For example, the Prices by Country for WooCommerce plugin is a powerful companion tool. It enables you to display tailored pricing based on the visitor’s location, simplifying international sales management and reducing risks associated with currency fluctuations or regional pricing abuses. Combining these tools helps you create a safer, smarter, and more efficient WooCommerce store.

Blocking Repeat Offenders in WooCommerce:Protecting Your Store

Managing a WooCommerce store comes with many challenges, but one of the most persistent issues is dealing with repeat offenders. These are customers or bad actors who repeatedly attempt fraudulent activities—placing fake orders, abusing store policies, or exploiting loopholes. Such repeated fraud not only drains your revenue but also disrupts daily operations, from inventory management to customer service. That’s why WooCommerce Protecting Your Store isn’t just a best practice—it’s a necessity for maintaining business stability and customer trust.

Repeat fraudsters can lead to chargebacks, lost products, and wasted time verifying orders—costs that add up quickly and threaten the profitability of your business. This makes proactive blocking strategies crucial. By identifying and stopping these offenders early, you safeguard your store, protect your genuine customers, and maintain a healthy bottom line.

Who Are Repeat Offenders?

Repeat offenders come in many forms, each causing unique challenges for your WooCommerce store:

  • Customers placing multiple fraudulent orders often use stolen credit cards or fake details to repeatedly make purchases.

  • Users exploiting coupons or return policies take advantage of your store’s offers or return process to get free or discounted products unfairly.

  • Bots or bad actors testing stolen credentials try to access accounts or place orders by repeatedly using compromised login information.

These activities lead to revenue loss, operational disruptions, and can harm your store’s reputation. To effectively combat this, it’s essential to implement proactive blocking strategies.

One powerful method is to block users by their IP addresses, which can prevent known offenders from accessing your store entirely. If you want to learn how to set this up in WooCommerce, check out this quick guide on blocking users by IP address.

Risks and Consequences of Repeat Offenders

Repeat offenders can have a serious impact on your WooCommerce store, including:

  • Financial loss due to chargebacks, refunds, and lost sales.

  • Inventory theft and product loss from fraudulent orders that never pay or are falsely returned.

  • Increased workload as your team spends more time reviewing suspicious orders and handling disputes.

  • Damage to your store’s reputation and loss of customer trust when fraud goes unchecked.

Why WooCommerce Default Features Are Insufficient

While WooCommerce offers many essential tools, its default features fall short when it comes to effectively managing repeat offenders:

  • There is no built-in mechanism to track or automatically block repeat offenders based on user behavior or details.

  • Manual detection is time-consuming, error-prone, and often ineffective at stopping determined fraudsters.

  • WooCommerce provides limited control over blocking users by specific patterns, such as repeated use of fraudulent email addresses or abusive accounts.

To strengthen your defenses, consider enhanced blocking options like email filtering. Learn how to block suspicious or malicious email addresses effectively with this detailed guide on blocking email addresses in WooCommerce.

Strategies to Block Repeat Offenders in WooCommerce

Protecting your WooCommerce store from repeat offenders requires a multi-layered approach. Here are some effective strategies you can implement:

  • Use Security and Anti-Fraud Plugins: Leverage specialised plugins designed to detect and block fraudulent activity automatically, saving you time and reducing risk.

  • Implement Blacklist Rules: Set up blocking based on IP addresses, email addresses, phone numbers, and physical addresses to stop known offenders from placing orders.

  • Apply Login Security Measures: Enhance account security by enabling two-factor authentication (2FA) and CAPTCHA challenges to prevent bots and unauthorised access.

  • Monitor Suspicious Order Patterns: Keep an eye on unusual purchasing behavior, such as multiple orders from the same IP or email, and set limits to prevent abuse.

  • Use Order Review and Manual Approval: For higher-risk orders, introduce a manual review process to verify legitimacy before processing payment or shipping.

By combining these strategies, you can significantly reduce fraudulent transactions and protect your store’s revenue and reputation.

Spotlight on Effective Tools: Aelia Blacklister for WooCommerce

When it comes to blocking repeat offenders and securing your WooCommerce store, Aelia Blacklister for WooCommerce stands out as a powerful and user-friendly solution. Here’s how it helps you protect your business from fraudulent users and malicious activity:

Blacklisting Based on User Data

Aelia Blacklister allows you to block users by a variety of data points, including:

  • Name: Block specific first names, last names, or full names that have been linked to fraudulent behavior.

  • Email Address: Prevent orders from suspicious or disposable email addresses, or block entire domains to cut off groups of fraudsters.

  • Phone Number: Stop orders from known fraudulent phone numbers or area codes linked to abuse.

  • IP Address: Block single IP addresses or entire IP ranges that have been used in previous fraud attempts.

This comprehensive approach gives you multiple layers of defense, targeting offenders regardless of how they try to disguise themselves.

Customizable Rules with Exact and Partial Matches

The plugin lets you create flexible blacklisting rules:

  • Exact Matches: Block an exact name, email, or IP to stop a known offender immediately.

  • Partial Matches: Use partial strings or wildcards to catch variations and new attempts related to the same offender (e.g., blocking all emails from *@frauddomain.com).

This flexibility is crucial because fraudsters often try to bypass restrictions by making small changes to their details.

Blocking Checkout Before Order Completion

One of Aelia Blacklister’s standout features is its ability to block malicious users early in the checkout process, before an order is even placed. This means:

  • Fraudulent users are prevented from completing transactions, saving you the hassle of processing fake orders or dealing with chargebacks.

  • It reduces server load and resource waste since fraudulent requests don’t reach your payment gateway or fulfillment process.

By intercepting offenders before they finish their orders, you minimise damage and improve store efficiency.

How to Set Up Aelia Blacklister for WooCommerce: Step-by-Step Guide

Step 1: Install and Activate the Plugin

WooCommerce Protecting Your Store

  • Download the Aelia Blacklister plugin from the official Aelia website or your WooCommerce marketplace.

  • Log in to your WordPress admin dashboard.

  • Navigate to Plugins > Add New > Upload Plugin.

  • Upload the plugin ZIP file and click Install Now.

  • Once installed, click Activate to enable the plugin.

Step 2: Access Aelia Blacklister Settings

  • Go to WooCommerce > Settings > Aelia Blacklister or find the plugin’s menu in the dashboard.

  • Here you’ll see options to configure blocking rules based on user data.

Step 3: Set Up Blacklist Rules

WooCommerce Protecting Your Store

  • Block by Name: Enter specific names (first, last, or full) that you want to blacklist. You can add multiple names and specify whether to block exact or partial matches.

  • Block by Email: Add individual email addresses or entire domains (e.g., *@frauddomain.com) to prevent orders from these sources.

  • Block by Phone Number: Input phone numbers or area codes associated with fraudsters.

  • Block by IP Address: Enter single IPs or use wildcards to block ranges of IP addresses.

Step 4: Configure Blocking Behavior

  • Decide at which stage users should be blocked, such as immediately when they enter checkout details or before order completion.

  • Enable notifications or logging features if you want to keep track of blocked attempts.

Step 5: Save Settings and Test

WooCommerce Protecting Your Store

  • Click Save Changes to apply your blacklist rules.

  • Test by attempting to place an order with blacklisted details to ensure that blocking works as expected.

Step 6: Monitor and Update Regularly

  • Regularly review logs or reports to identify new suspicious patterns.

  • Update your blacklist with new names, emails, phones, or IPs as needed to stay ahead of fraudsters.

For WooCommerce store owners looking to enhance their overall store management beyond fraud prevention, Aelia also offers other useful plugins like Tax Display by Country for WooCommerce, which helps show accurate tax rates based on your customer’s location. Combining such plugins with fraud prevention tools like Aelia Blacklister can create a more secure and compliant online shopping experience.

Best WooCommerce Plugins to Prevent Fraud and Block Malicious Users

Without proper security, managing a WooCommerce store becomes a losing battle. Manually screening every customer for fraud is like trying to carry water in your hands—most of it slips right through. The effort feels almost pointless.

This naturally leads to the question: Is WooCommerce safe?

If you run a WooCommerce store, you already know the answer isn’t simple. Fake orders are an ongoing headache. You’re stuck reviewing emails, addresses, phone numbers, and order details to figure out which transactions are legitimate. It’s time-consuming, exhausting, and far from scalable. But skipping this step is risky — it could cost you far more than just time.

Letting a fraudulent order slip through can set off a chain reaction. First, you lose inventory. Then your customer service team gets overwhelmed handling disputes. Worst of all? The financial fallout. You may not get paid for the order and could face chargebacks or penalties from your payment processor. In some cases, not having sufficient security measures could even result in fines. Simply put, the cost of inaction is steep.

The good news? You don’t have to do it manually anymore.

For instance, you can block suspicious activity by IP address using tools that walk you through step‑by‑step how to identify and blacklist problematic IPs: How to Block Users by IP Address in WooCommerce.

In this article, we’ll take a closer look at the best plugins built specifically to combat fraud in WooCommerce. We’ll explore its features, ease of use, pricing, and overall value to help you choose the right one for your store.

Best Plugin To Prevent Fraud and Block Malicious Users in WooCommerce

The Aelia Blacklister plugin offers a powerful way to configure rules that block orders from specific users in WooCommerce. It helps protect your store by filtering out malicious customers based on various criteria, including:

  • Name and Surname

  • Address (Street, postcode, city, province/state, country)

  • Email Address

  • Phone Number

  • IP Address

How to Set Up Aelia Blacklister for WooCommerce

Setting up the Aelia Blacklister plugin is straightforward, even for users with limited technical knowledge. Follow these steps to enhance your store’s security by blocking fraudulent customers:

Step 1: Install the Aelia Blacklister Plugin

Part 1: Download the Plugin

  • Visit the official Aelia website to download the latest, most reliable version.

  • If the plugin requires purchase, complete the payment process.

  • Download the plugin ZIP file to your computer.

Part 2: Upload the Plugin to WordPress

  • Log in to your WordPress Admin Dashboard.

  • Navigate to Plugins > Add New.

  • Click on Upload Plugin at the top of the page.

  • Choose the downloaded ZIP file and click Install Now.

Part 3: Activate the Plugin

  • Wait for installation to complete; a success message will appear.

  • Click Activate to enable the plugin.

  • Once activated, you’ll find Aelia Blacklister listed under active plugins and available in WooCommerce settings.

Blocking Options in Aelia Blacklister

1. Block by User Name

Prevent orders from specific users by blocking their names (first name, last name, or full name). This is useful for stopping known fraudsters who use consistent identity details.

  • Enter the full name or parts of the name in the User Name section.

  • You can block exact matches or partial names to catch variations.

  • Click Save to apply the block.

2. Block by Address

Block orders based on specific address details such as street, postcode, city, province/state, or country. This helps stop fraudsters using fake or stolen addresses.

  • Enter full or partial address details in the Address section.

  • Choose the blocking criteria (street, postal code, region).

  • Click Save to apply.

3. Block by Email Address

Block individual email addresses or entire domains to prevent fraudulent sign-ups or orders.

  • Input the email or domain (e.g., *@disposablemail.com) in the Email Address field.

  • Save changes to enforce the block.

4. Block by Phone Number

Block specific phone numbers or entire area codes often associated with fraudulent activity.

  • Enter phone numbers or area codes in the Phone Number section.

  • Save to activate the block.

5. Block by IP Address

Block single IPs or IP ranges to prevent repeated fraud from the same network. You can use wildcards or regex for advanced patterns.

  • Enter IP addresses or ranges in the IP Address section.

  • Save the settings.

Final Step: Save and Apply Changes

After configuring your blocks, make sure to save all settings. Regularly update your blacklist to keep up with new fraudulent attempts and maintain your store’s security.

Why Use Aelia Blacklister for WooCommerce Compared to Other Plugins?

  1. Comprehensive Blocking Options
    Aelia Blacklister allows you to block orders based on multiple user details — including name, address, email, phone number, and IP address — offering more granular control than many other plugins that focus on only one or two criteria.

  2. User-Friendly Setup
    The plugin is designed for ease of use, allowing store owners with limited technical skills to configure powerful security rules without complicated setups or coding.

  3. Flexible and Advanced Filtering
    Supports partial matches, wildcards, and even regex for IP addresses, enabling highly customizable and effective blocking rules that can adapt to complex fraud patterns.

  4. Seamless WooCommerce Integration
    Aelia Blacklister integrates smoothly into the WooCommerce environment, with settings accessible directly through the WooCommerce dashboard for convenience and consistency.

  5. Regular Updates and Reliable Support
    Developed and maintained by a trusted team, the plugin receives updates to stay compatible with WooCommerce and WordPress, along with responsive customer support to help you troubleshoot.

  6. Protects Against Multiple Types of Fraud
    By blocking based on various user data points, it helps prevent common fraudulent behaviors like using fake addresses, disposable emails, stolen phone numbers, or repeated IP abuse.

  7. Scalable for Growing Stores
    Whether your store is small or rapidly growing, Aelia Blacklister scales with you, helping maintain security as order volume and customer base increase.

Securing your WooCommerce store is no longer optional—it’s a necessity. With the increasing threats of fraud, spam orders, and data breaches, having a tool like Aelia Blacklister empowers you to proactively safeguard your business. Its advanced filtering capabilities, simple setup, and seamless integration with WooCommerce make it one of the top security plugins available today.

To enhance conversions and elevate the overall shopping experience, consider pairing Aelia Blacklister with another powerful solution from the same developer: the Aelia Currency Switcher for WooCommerce. This plugin enables your store to display prices and accept payments in multiple currencies, making it easier to serve a global audience, all while maintaining tight control over fraud risks.

 

Why You Need a Security Plugin to Block Fraudulent WooCommerce Users

WooCommerce has become a cornerstone of global eCommerce, powering millions of online stores across industries. Its flexibility, affordability, and ease of use make it a go-to solution for businesses of all sizes looking to sell online. As more merchants flock to WooCommerce, so do fraudsters. Fake accounts, fraudulent transactions, chargeback scams, and spam orders are on the rise, costing businesses time, money, and customer trust. To protect your store, it’s essential to block fraudulent WooCommerce users proactively. What’s worse, many of these attacks go unnoticed until the damage is already done.

In today’s environment, proactive fraud prevention isn’t optional — it’s essential. Relying on manual vetting or generic security plugins is no longer enough to stay ahead of evolving threats.

That’s where purpose-built tools like Aelia Blacklister for WooCommerce come in. Designed specifically for WooCommerce, Aelia Blacklister helps store owners block known bad actors before they can cause harm, whether by email, IP address, geographic location, or other criteria.

In this article, we’ll explore why a security plugin like Aelia Blacklister is crucial for any WooCommerce store and how it can help you stay one step ahead of fraudulent users.

Understanding Fraud in WooCommerce

Running a WooCommerce store isn’t just about selling products — it’s also about managing risk. As your store grows, so does your exposure to fraud. Understanding the different forms this can take is the first step to protecting your business.

Common Types of Fraudulent Activity:

  • Fake Orders
    Orders placed with bogus customer details, often just to test stolen credit cards or overwhelm your operations.

  • Stolen Credit Card Use
    Fraudsters use compromised payment information, which often leads to chargebacks and financial penalties for the merchant.

  • Spam Accounts
    Automated bots or malicious users register accounts en masse to clog up your system or exploit discounts and promotions. Learn how email blacklisting helps stop spam accounts in WooCommerce.

  • Suspicious IP Activity
    Repeated login attempts, geographic anomalies, or access from known proxy/VPN services often signal fraudulent behavior.

  • Refund Abuse
    Users place legitimate orders only to claim fake issues and demand refunds, sometimes repeatedly.

Real-World Consequences:

Fraud isn’t just an annoyance — it has serious consequences:

  • Lost revenue from fraudulent or refunded transactions.

  • Chargeback fees and penalties from payment processors.

  • Inventory loss occurs when products are shipped before fraud is detected.

  • Damaged brand trust as legitimate customers lose confidence in your site’s security.

Why the Standard WooCommerce Setup Falls Short

While WooCommerce is a powerful platform, its out-of-the-box security features are fairly basic when it comes to fraud prevention.

Here’s Why That’s a Problem:

  • No Built-in Filtering for User Data
    WooCommerce doesn’t offer native tools to block users by email domain, country, or IP address — common indicators of fraud.

  • Limited Blacklisting Capabilities
    There’s no straightforward way to stop known bad actors from placing new orders or creating new accounts.

  • Reactive Rather Than Proactive
    By default, WooCommerce puts the burden on store owners to monitor transactions and manually catch fraud after it’s occurred — a slow and error-prone process.

To truly protect your store, you need a solution that works before fraud happens, not after.

Introducing the Aelia Blacklister for WooCommerce

When it comes to fraud prevention, a proactive approach is key — and that’s exactly what Aelia Blacklister offers.

This powerful plugin is designed to block orders from suspicious or known-bad users before they can complete a transaction. With simple installation and an intuitive interface, Aelia Blacklister integrates seamlessly into any WooCommerce store, giving you granular control over who can place orders — and who can’t.

Whether you’re dealing with spam accounts, repeated refund abusers, or fraudulent IPs, Aelia Blacklister gives you the tools to fight back automatically.

 Key Features of Aelia Blacklister

Aelia Blacklister stands out for its customisability and precision targeting. It allows you to configure flexible rules that automatically block users based on the following data:

 Block Users By:

  • Customer Name or Surname

  • Email Address

  • Phone Number

  • Shipping Address

  • IP Address

Each of these fields can be used with exact matches or partial matches using regular expressions, giving you advanced control over how strict or broad your blacklist should be.

IP Address Filtering
IPs can be filtered using exact values, subnet masks (e.g., 192.168.1.*), or ranges to block entire regions or networks.

 Custom Error Messaging

If a user is blocked at checkout, the plugin can show a customisable message explaining why their transaction was rejected, keeping your communication clear and professional.

 Easy Backend Management

The plugin adds a dedicated menu to your WooCommerce admin area where you can:

  • Create and manage blacklist rules.

  • Add or remove specific entries.

  • Test and preview matching behavior.

Aelia Blacklister is built for store owners who need powerful tools without a steep learning curve. Whether you’re tech-savvy or just starting, its interface is approachable, and the rule configuration is straightforward.

How to Install the Aelia Blacklister Plugin for WooCommerce

Installing the Aelia Blacklister plugin is a quick and straightforward process that adds powerful fraud prevention tools to your WooCommerce store. Whether you’re looking to block suspicious users by IP, email, or even billing details, this plugin gives you full control from right inside your WordPress dashboard. Follow the steps below to get started.

Step 1: Purchase and Download the Plugin

  • Visit the official Aelia website: Aelia For WooCommerce

  • Purchase the Blacklister for WooCommerce plugin.

  • Once the purchase is complete, download the plugin .zip file to your computer.

Step 2: Install the Plugin on Your WordPress Site

  • Log in to your WordPress admin dashboard.

  • Navigate to Plugins > Add New.

  • Click the “Upload Plugin” button at the top.

  • Select the .zip file you downloaded.

  • Click Install Now, then Activate Plugin after installation completes.

Step 3: Access the Blacklister Settings

  • In your WordPress dashboard, go to WooCommerce > Blacklister.

  • This opens the plugin’s configuration panel, where you can start setting up your blacklist rules.

Step 4: Create Blacklist Rules by Customer Name or Surname

How to Block:


Within the Blacklister settings, find the Customer Name/Surname section. Here, you can enter full names or parts of names to block suspicious or fraudulent users.

Why It’s Important:
Fraudsters often reuse fake or stolen identities. Blocking names helps prevent repeat offenders from placing orders on your store.

Steps to Block:

  • Enter the exact names or use partial matches with regular expressions (e.g., block all names starting with “John”).

  • Click Save Changes to apply the blacklist.

Step 5: Create Blacklist Rules by Email Address

How to Block:


Emails are a common way fraudsters sign up or place orders. In the Email Address section, add specific emails or entire domains to block unwanted users.

Why It’s Important:
Blocking disposable or suspicious email domains prevents fraudsters from creating multiple fake accounts.

Steps to Block:

  • Enter single email addresses (e.g., fraudster@example.com) or domain patterns with wildcards/regex (e.g., *@tempmail.com).

  • Save your changes.

Step 6: Create Blacklist Rules by Phone Number

How to Block:

Block Fraudulent WooCommerce Users
In the Phone Number section, list phone numbers or area codes to block fraudulent users who attempt purchases using stolen or fake phone numbers.

Why It’s Important:
Phone numbers linked to fraud can be prevented from completing transactions, adding an extra security layer.

Steps to Block:

  • Add individual numbers or use regex to block number patterns (e.g., all numbers starting with +1234).

  • Save your settings.

Step 7: Create Blacklist Rules by Address

How to Block:

Block Fraudulent WooCommerce Users
Use the  Address section to block suspicious addresses, including street, city, postal code, province/state, or country.

Why It’s Important:
Blocking addresses associated with fraudulent activity can reduce fake orders and chargebacks.

Steps to Block:

  • Enter full or partial addresses. You may use regex for flexible matching (e.g., block all P.O. Boxes with .*P.O. Box.*).

  • Save your changes.

Step 8: Create Blacklist Rules by IP Address

How to Block:

Block Fraudulent WooCommerce Users
Block suspicious IP addresses or entire IP ranges using the IP Address section. This helps stop repeated fraud attempts from the same network.

Why It’s Important:
Fraudsters often use the same IPs or VPN ranges to mask their identity. Blocking these reduces multiple fraudulent attempts.

Steps to Block:

  • Enter exact IPs (e.g., 192.168.1.10), masks (e.g., 192.168.1.*), or ranges (e.g., 192.168.0.1-192.168.0.255).

  • Use regex for more advanced blocking if needed.

  • Save your settings.

Step 9: Customise the Checkout Error Message

You can personalise the message customers see if their order is blocked.

  • In the plugin settings, find the Messages section.

  • Enter your custom message (e.g., “Your order cannot be completed at this time. Please contact support.”).

  • Save changes.

Step 10: Test Your Blacklist Rules

After setting up your rules:

  • Try placing test orders with blocked details to confirm the plugin correctly stops fraudulent attempts.

  • Adjust rules as needed based on test results.

Enhance Your WooCommerce Store Further with Aelia Currency Switcher

Block Fraudulent WooCommerce Users

Now that you’ve strengthened your store’s security with the Aelia Blacklister plugin, consider improving your customers’ shopping experience by offering multi-currency support. The Aelia Currency Switcher for WooCommerce allows your customers to view prices and pay in their preferred currency seamlessly.

This is especially useful for stores with international customers, reducing cart abandonment and boosting conversions by showing accurate prices in real time.

Learn more and get the plugin here: Currency Converter for WooCommerce