Home » Documentation » Product Search » Configuring Search Behavior » How to Search WooCommerce Products by Location

How to Search WooCommerce Products by Location

Elevated Product Search does not include a dedicated location search feature. You can achieve location-based search by creating a custom field for location data on your products, then adding that field to the Search Scope. This article shows how to set it up using a “Made In” field as an example.

Table of Contents

Step 1: Create a Location Custom Field for WooCommerce Products

Create a text-based custom field on your WooCommerce products using your preferred custom fields plugin (such as Advanced Custom Fields, Meta Box, or JetEngine).

Name the field something customers naturally search for. For a clothing store, Made In is intuitive. Other options include Origin, Ships From, or Store Location, depending on your business model.

Configure the field as a Text based field so Elevated Product Search can index the plain text values.

Custom fields plugin interface showing Made In text field created for products

Step 2: Assign Location Values to WooCommerce Products

Edit one or more products in WooCommerce.

Look for the custom field in the product editor and enter a location value. For example, enter Italy, USA, or Japan in the Made In field.

WooCommerce product editor showing Made In field populated

Save the product. Repeat for other products, assigning relevant location values to each.

Step 3: Add the Location Field to Product Search Scope

Navigate to Elevated › Product Search › Settings › Advanced Options.

Look for the Search in Custom Fields section.

Click the input field and type a keyword to find your location field. For example, type “made” to locate the Made In field.

Search in Custom Fields input showing Made In field in dropdown

Select the field from the list to add it.

Step 4: Save Product Search Settings

Click Save Settings at the top of the page.

Save Settings button highlighted for attribute

The indexer automatically rebuilds to include the location field data. A success message appears indicating how many products were indexed.

Step 5: Test Location Based Product Search

Visit a page on your frontend where the search form is placed.

Type a location value into the product search input. For example, type Italy.

Frontend search form with Italy entered and products made in Italy shown

Confirm that products with matching location values appear in the live dropdown results.

Product location search in Elevated Product Search is a custom field workaround rather than a dedicated feature. As Elevated Product Search can index custom fields, you can use this feature for geographic or origin-based filtering by storing location data in a field and adding it to the Search Scope.

This approach works for various location use cases:

  • Country of origin: A “Made In” field for apparel, accessories, or food products.
  • Regional availability: A “Region” field indicating where a product is stocked or shipped.
  • Local store pickup: A “Store Location” field showing which physical branch carries the item.

The search behavior follows standard custom field matching. Customers can type the exact value stored in the field, or partial values if your Match Strictness settings allow it. If Fuzzy Matching is enabled, minor typos in location names may still return results.

The limitation with the workaround is that you are searching raw text values, not structured geographic data. Elevated Product Search does not support radius searches, map integration, or distance filtering. If a product has “USA” in the field, searching “America” or “United States” will not match unless those exact strings are also stored. For geographic synonym handling, you must normalize your data entry (for example, always using full country names or always using abbreviations).

Advanced Troubleshooting

The location field does not appear in the custom fields list

When setting up WooCommerce search product by location, ensure that at least one product has a value saved for the field. Empty field definitions may not appear in the Elevated Product Search selector. Populate the field on a test product and return to the settings to search again.

Search returns no results for a location

Confirm you selected the correct field from the list. Verify the product has the exact value you are searching for. Remember that “USA” and “United States” are treated as different strings.

Too many or too few results appear

If you use broad location values (such as “Europe”), many products may match. If you use highly specific values (such as “Milan, Italy”), fewer products will match. Adjust your data entry strategy based on how granular you want the search to be.

Search WooCommerce Products by Location – Related Documentation

On this page
Want More?

Get Every Elevated Extension You’ll Ever Need—One Payment, Yours for Life

Build faster, smarter, and without limits. A single purchase unlocks our entire library today and every new extension we release in the future. No renewals, no upsells, just lifetime power at your fingertips
+All other extensions for unlimited sites

The All Access Pass, available for a limited time

This exclusive package won't be around forever, as we will eventually move to a subscription model. This is your chance to get in early.
  • All Current Extensions
  • All Future Extensions
  • No Renewal Fees
  • 90-Day Money-Back Guarantee