WooCommerce uses a post type archive template to facilitate search results. This extension allows SearchWP to work with this default behavior by WooCommerce. This extension also incorporates other features of WooCommerce search such as Layered Navigation.
If you are using the native WordPress search (e.g. your search results URL does not have post_type=product
 anywhere) this extension is not necessary. As a result, if you would like to disable SearchWP’s notification add the following to your theme’s functions.php
:
// This is for SearchWP 4.
add_filter('searchwp\missing_integration_notices', '__return_false');
// This is for SearchWP 3.
add_filter( 'searchwp_missing_integration_notices', '__return_false' );
WooCommerce is one of the leading e-commerce platforms for WordPress. SearchWP makes searching your WooCommerce store much more powerful than native WordPress search. WooCommerce also has it’s own set of search tools and filtering options. WooCommerce Integration aims to bridge the gap between all of WooCommerce’s search tools and SearchWP.
Simply download WooCommerce Integration and activate it alongside SearchWP. SearchWP extensions are separate plugins that in and of themselves are standalone WordPress plugins.
WooCommerce stores Product Variations in a different way than it does Products. There are a few things you can do to integrate Product Variation data alongside your Products depending on how you want results to appear.
If you would like to index Product Variation data alongside Products (allowing Product Variation data to cause the parent Product to appear in search results) you can follow the example outlined by this KB article:Â Indexing and Searching WooCommerce Product Variation SKUs
Alternatively, you can force Product Variations to appear as their own post type by using this as a starting point:Â view code snippet
© 2021-2024 PT.GARUDEYA KREASI PERSADA. Trademarks and brands are the property of their respective owners.
User Reviews
There are no reviews yet.