Plugin Author
ILLID
(@mihail-barinov)
Hello,
It is strange. Can you please give me the link where I can find working search form? And also please tell me example of search query that you have problem with.
Regards
Hi there – Thanks – Sure
Have a look at : https://www.jasaco.dk/
Ex. Search query ( in Danish 🙂 “dørstopper”
It shows all the products where it says “dørstopper” in search form
But when i press “Show all” (Danish) “Se alle resultater” it only shows 5 products
I have the same issue with a lot of other search querys
Cheers
Kimo
Hey ILLID (@mihail-barinov)
Could you find any solution
Cheers
Kimo
Plugin Author
ILLID
(@mihail-barinov)
Hello,
Sorry for the long response.
As I see looks like your search page shows the results for standard search, not AWS search results.
Can you please tell me the name of the theme that you are using? Also – do you use any plugins that somehow can effect on search results page?
Regards
Hi there – No sweat
The theme is: https://themeforest.net/item/electro-electronics-store-woocommerce-theme/15720624
I most definitely have some plugins that have effect on AWS 🙂
But what i dont understand is how it finds all (14 products) when i search.
But only shows some (5 products) when i clik “Show all”
I looks like AWS finds all products that have the search query im looking for.
But when i clik “Show all” – it onlue shows products that have that search query
as a title.
I could try deactivating some of the plugins to see if that would make any change.
/Kim
Plugin Author
ILLID
(@mihail-barinov)
I test your theme and looks like the problem is not in it.
So can you please tell me the list of your active plugins that can affect on search results page?
Hi there
Woow – i dont know exactly which that have affect on AWS
But ill have to try to deactivate some of them, to see if it changes the outcome
Ill keep you informed
The Electro WordPress theme has a product search function
But wuold you suggest that we use “Seamless integration” ?
Thank you for the supar quick reply
Cheers
/Kimo
Plugin Author
ILLID
(@mihail-barinov)
No matter do you use “Seamless integration” option or now.
If you open search results page and inside its URL you see ‘&type_aws=true’ than it is plugin search results. AWS plugin doesn’t creates its own search results page layout. Plugin just add its search results to the existing layout of your theme. And it is possible that some other plugin breaks this behavior.
Regards
Hi there
Think i found the plugin thats crating the trouble:
https://barn2.co.uk/wordpress-plugins/woocommerce-product-table/
When i deactivate this plugin – it shows all the search query results when i click.
“Show all”
Ill try to send my question to them – see if thay can explain the conflict.
Cheers
/Kimo
Plugin Author
ILLID
(@mihail-barinov)
Hello,
Looks like I found the solution for you.
Please use following code snippet
add_filter( 'wc_product_table_data_config', 'my_wc_product_table_data_config' );
add_filter( 'aws_posts_per_page', 'my_wc_product_table_posts_per_page' );
public function my_wc_product_table_data_config( $config ) {
if ( isset( $_GET['type_aws'] ) && isset( $config['search'] ) ) {
$config['search']['search'] = '';
}
return $config;
}
public function my_wc_product_table_posts_per_page( $num ) {
if ( isset( $_GET['type_aws'] ) ) {
return 9999;
}
return $num;
}
Also on Monday I release new plugin version where will include all this changes.
Hi ILLID
Wuub Wuub – Your the best
Thanks for the reply
Does the code above goes into function file?
Once again – Thanks
Cheers
/Kimo
Plugin Author
ILLID
(@mihail-barinov)
Yes, you can add it to functions.php file.