WooCommerce now supports a unique identifier called “GTIN, UPC, EAN, or ISBN” which is stored as _global_unique_id
in the wp_postmeta
table of the database. This identifier is available for all product types, and FiboSearch Pro allows you to search within it.
Enabling GTIN, UPC, EAN, or ISBN search
To enable search functionality by GUID, follow these steps:
- Go to
WooCommerce
>FiboSearch
>Search config
. - Enable the “Search in GUID” option.
Note:
If the “Search in GUID” option is not visible, ensure the “Show advanced settings” toggle at the top of the page is enabled. If the option still does not appear, it is likely because no products have GUIDs assigned. The “Search in GUID” option will only be available if at least one product has a GUID.
Searching variations by exact GUID
To enable searching for product variations by exact GUID, add the following code to your website and rebuild the index under WooCommerce
> FiboSearch
> Indexer
:
add_filter( 'dgwt/wcas/variation_support_modes', function() { return ['search_in_sku', 'search_in_global_unique_id', 'exact_match']; } );
ⓘLearn how to add this snippet to your WordPress.
Ensure the “Search in GUID” option is enabled in the FiboSearch settings for this to take effect.