Redirects WooCommerce product searches matching a product category to the product category page.
With this extension when someone searches for products and their search terms match a product category then they will be redirected to that product category instead of the search results.
This is useful if you have products which do not contain the product category name in the title or description as those products wouldn’t appear in search results when someone searches for the product category name.
Features
- Redirects search terms to product categories when matched
- Search term to category match can be in any order
- Lightweight and no configuration required
Usage
There are no settings to configure with this extension, once it is activated just try a product search for a product category and you will get redirected to that product category instead of seeing the search results.
For example, if you have a premium hoodies category then search for premium hoodies (or hoodies premium) and it will redirect you to the premium hoodies category instead of showing you the search results.
Note that the redirect will only work if you are using the standard WooCommerce product search which has URLs like this: ?s=search-term&post_type=product
.
Donate
If this product has helped you, please consider making a donation.
FAQ
Nothing happened after activating?
There are no settings to configure, see the usage section above to try out the redirects.
ChangeLog
1.3.2 – 2024-04-10
- Add: Translation information in readme.txt
- Update: WooCommerce tested up to 8.7.0
- Update: WordPress tested up to 6.5.2
1.3.1 – 2024-03-08
- Add: BETA functionality information to readme.txt
- Add: Caching information to readme.txt
- Add: Donation information to readme.txt
- Add: Works with information to readme.txt
- Update: Screen sizes information in readme.txt
- Update: WooCommerce tested up to 8.6.1
- Update: WordPress tested up to 6.4.3
1.3.0 – 2024-01-16
- Add: WooCommerce Cart/Checkout blocks compatibility
- Update: Changelog consistency
1.2.2 – 2023-12-18
- Update: Changelog keys
- Update: Code consistency
- Update: Development assets
- Update: PHP requires at least 7.3.0
- Update: WooCommerce requires at least 7.9.0
- Update: WooCommerce tested up to 8.4.0
- Update: WordPress requires at least 6.1.0
- Update: WordPress tested up to 6.4.2
1.2.1 – 2023-09-19
- Update: Header assets
- Update: WooCommerce tested up to 8.1.1
- Update: WordPress tested up to 6.3.1
1.2.0 – 2023-08-02
- Add: High Performance Order Storage (HPOS) compatibility if WooCommerce version is 8.0.0 or higher, note that this version includes several changes for HPOS compatibility, it is recommended you perform this upgrade on a staging environment before upgrading the extension on a production website regardless of whether HPOS enabled, HPOS and the compatibility in this extension are very new, use with caution
- Update: Development assets
- Update: PHP requires at least 7.2.0
- Update: WooCommerce requires at least 7.3.0
- Update: WooCommerce tested up to 7.9.0
- Update: WordPress requires at least 5.9.0
- Update: WordPress tested up to 6.2.2
1.1.3 – 2022-12-23
- Update: Minor dashboard string changes
- Update: WooCommerce tested up to 7.2.2
- Update: WordPress tested up to 6.1.1
1.1.2 – 2022-10-21
- Update: Redirect now uses wp_safe_redirect
- Update: Code refactoring
- Update: PHP requires at least 7.0.0
- Update: WooCommerce requires at least 5.0.0
- Update: WordPress requires at least 5.4.0
- Update: WordPress tested up to 6.0.3
1.1.1 – 2022-04-23
- Update: Code refactoring
- Update: WordPress tested up to 5.9.3
1.1.0 – 2022-03-25
- Add: wcpscr_product_search_category_translation function
- Add: WooCommerce not installed/activated notice
- Update: WordPress tested up to 5.9.2
- Fix: Translations (if included in future) may not load due to load_plugin_textdomain not hooked on init
1.0.1 – 2021-05-27
- Add: Check for empty product categories before attempting redirect
- Update: Plugin headers and readme
1.0.0 – 2021-05-25