Learn more about search for products via GTIN, UPC, EAN, ISBN fields.
The Advanced Woo Search PRO plugin allows you to search across various product fields.
One such field is the product's unique identifier, which may be called GTIN, UPC, EAN, or ISBN. This field is located in the WooCommerce product edit page under the Inventory tab.
GTIN, UPC, EAN, or ISBN product field
With the PRO plugin version, you can search for simple, variable, and child products using this field and display the results directly in the search list.
Search by GTIN, UPC, EAN, or ISBN
To search for GTIN, UPC, EAN, or ISBN values, ensure they are indexed and enabled.
Go to Plugin Settings → Performance and locate the "Data to index" option. Ensure the "GTIN, UPC, EAN, ISBN" field is enabled.
GTIN, UPC, EAN, ISBN index field
If the field was disabled, reindex the plugin table by clicking the "Reindex table" button.
Reindex table button
Go to Plugin Settings → Search Form Instance → Search Results and find the "Search In" option. Ensure "GTIN, UPC, EAN, ISBN" is enabled.
GTIN, UPC, EAN, ISBN search field
✅ That's it! Your search field should now support GTIN, UPC, EAN, and ISBN searches for all your products.
If your products have GTIN, UPC, EAN, or ISBN numbers, you can display them directly in the search results list.
Go to Plugin Settings → Search Results and enable "Show product GTIN, UPC, EAN, or ISBN".
Show GTIN, UPC, EAN, or ISBN option
Once enabled, the unique product number will be displayed for each product that has it.
Display GTIN, UPC, EAN, or ISBN
With Advanced Woo Search PRO, you can search and display product variations alongside simple and variable products.
Additionally, if you search using a GTIN, UPC, EAN, or ISBN, the plugin will also return product variations based on their unique numbers.
Search for product variations
If variable product search is enabled, the parent product will appear in search results when searching for any GTIN number assigned to its child variations.
Search for variable products
Go to Plugin Settings → Performance and ensure "Index variations" is enabled.
Index variations option
If this option was disabled, reindex the plugin table by clicking the "Reindex table" button.
Reindex table button
Go to Plugin Settings → Search Form Instance → Search Results and adjust the "Variable Products" setting according to your needs.
Variable products setting
Yes, you can customize the relevance score using the aws_relevance_scores
filter. Here's an example:
add_filter( 'aws_relevance_scores', function ( $relevance_array ) { $relevance_array['gtin'] = 1000; return $relevance_array; } );