Instant Search & Suggest Woocommerce products
-
Thank you for your great plugin.
I am using your plugin for a custom post type (WooCommerce products).
When clicking the “View all results” button, I am redirected to the default WordPress search results page.
What I wanted to do was to be redirected to the WooCommerce search result page (that follow the layout of the store).So I tweaked the file assets/inc/iss-ajax.php, by changing line 202 from:
'permalink' => add_query_arg( array( 's' => $s ), site_url() ),
to:
'permalink' => add_query_arg( array( 's' => $s.'&post_type=product' ), site_url() ),
Is there a better way to do this, without having to alter the plugin files?
Thank you in advance!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Instant Search & Suggest Woocommerce products’ is closed to new replies.