Im working on a site for a client who had on a previous theme the 3rd party plugin woocommerce predictive search pro, by A3REV.
I would like to integrate this into this theme as the main function of the search field is for users to enter product codes from other suppliers that then match the clients products.
The suppliers codes are an attribute and part of the Yoast focus keywords, so a user will search for egger f1488, and be shown all products that match that code.
I have a child theme setup and a copy of the header.php, I have been trying to swap out what i think is the right code but I haven’t got it to work.
Could you help please.
The code to add from the 3rd party is:
<?php $ps_echo = true ; if ( function_exists( 'woo_predictive_search_widget' ) ) woo_predictive_search_widget( $ps_echo ); ?>
In the x-store header.php the code i think it needs to replace is this:
<?php if(etheme_get_option('search_form')): ?> <?php etheme_search_form( array( 'action' => 'default' )); ?> <?php endif; ?>
Its not crashing the site, but its not working either.
If you want to replace the search for header type that you use at present you need to copy xstore/headers/advanced.php into child theme and replace
<?php etheme_search_form( array( 'action' => 'default' )); ?>
You must be logged in to reply to this topic.Log in/Sign up
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.