Hello I want to use your product search to replace my current one as it doesnt search deep enough. Thing is a long time ago I added some code in the functions.php to have the position of the search box in the upper right. So i guess I have to add your shortcode here? But I am a bit struggling how to make that work
this is my current search bar setup.
So does this has to be altered into Advance woo search for it to make it work by adding echo
do_shortcode(?'[aws_search_form]'
);
in it?
Hope someone can help me. Thank you in advance.
//* POSITION THE PRODUCT SEARCH BUTTON TO UPPER RIGHT *//
add_filter( 'wp_nav_menu_items', 'wpstudio_add_woo_search', 10, 2 );
function wpstudio_add_woo_search( $menu, $args ) {
//* Change 'primary' to 'secondary' to add the woocommerce search to the secondary navigation menu
if ( 'secondary' !== $args->theme_location )
return $menu;
$form = '<form role="search" method="get" id="searchform" action="' . esc_url( home_url( '/' ) ) . '">
<input type="text" value="' . get_search_query() . '" name="s" id="s" placeholder="' . __( 'Search for products', 'woocommerce' ) . '" />
<input type="submit" id="searchsubmit" value="'. esc_attr__( 'Search', 'woocommerce' ) .'" />
<input type="hidden" name="post_type" value="product" />
</form>';
$menu .= '<li class="search right">' . $form . '</li>';
return $menu;
}
]]>
I’ve tried using a few filters but none of them seem to trigger on the ajax search. I’m not using a separate search page so only the ajax search. Is there any filter that I can use to exclude post ids from my search results?
I’ve validated that the filters are not triggering using an error_log that works on the WP init action.
Hello,
The search was working perfectly. Only new products were not shown. As per the documentation, I made sure that under Settings -> Performance, the Sync index table is on.
I also initiated a full Reindex table for troubleshooting. Before the reindex started, 478 articles were shown, and after the reindex, 560. So, it did something.
See an example: https://ibb.co/w7jfZQM
It is on a production site, so I cannot enable the WP debug functions.
Your suggestions are appreciated.
With kind regards,
Willem-Jan
Hi,
In v3.19 it says in the changelog: “Update – styles for search form. Fix min height for input”.
It’s always a problem when a plugin updates styles… changing the design of an existing website that had already been designed.
Can you please let us know exactly what was changed in the css of the plugin. Which class, what was before and what is now, so we can make a note of it before updating the plugin and then we can see if we need to revert back to a style that has been applied.
Thank you very much!
]]>Hi, is the search case sensitive?
I have a strange issue with Greek language where if i search for “�Ϧ̦Ц�?�˦�” (umbrella) it will not show the umbrella items that have in their title “���̦Ц�?�˦�” (Umbrella).
Even more strange that if i search for “��?�˦ɦͦ�” (wooden) it will show results that have in the title “��?�˦ɦͦ�” (Wooden) so it’s not consistent.
Any idea what is the problem?
Hello. Is it possible to disable AJAX. In our case testing the plugin AJAX is very slow. Thanks
]]>I have placed the AWS search form next to a regular WordPress search bar in the header of the site.
I am trying to get the two forms to look the same. I need to change the border-radius to 25px so that the corners of the AWS search bare are rounded.
I also tried to change the css for the regular WordPress search bar, but I couldn’t get the css to change that border-radius to 0px (to remove the curved corners).
The css to change font-size and border-color are working fine.
]]>Hi,
When I’ve tested my website functionalities on different devices, I noticed that only on tablets (iPads of different sizes and on Samsung tablets and other tablets) the full screen search form doesn’t display.
This is after enabling the plugin settings of ‘Mobile Full Screen’.
On mobile phones it works. On phones if I focus on the search field, it opens the full screen search form and I can type in a search query. But on tablets the only response is that the keyboard pops up, but no search form opens on the screen.
In the ‘Mobile full screen’ settings it says: ‘Full screen search on focus. Will not work if the search form is inside the block with position: fixed’. I don’t see that the search form is inside a block with a fixed position so I don’t think this is the issue (and, as mentioned, it’s working on mobile phones).
We can replicate this issue in the link I’ve provided here (which is a test site just for testing things).
The search form is at the very top of the page, inside the header.
If we inspect it with developer tools, toggle the device toolbar and choose ‘Dimensions: Responsive’, no matter what screen size we display the webpage in, whether it’s a screen size of a tablet or a phone, focusing on the search field would open up the full screen search form.
However, if we select for the screen dimensions a specific device:
If we select any phone, such as Galaxy s9+, iPhone 12 Pro, iPhone 14 Pro Max, Samsung Galaxy s20 Ultra etc, again the full screen search form would display as it should.
But, if we select from the dimensions drop down any device that is a tablet, such as iPad, iPad Air, iPad Pro, iPad Mini, Galaxy Tab s4, Surface Pro 7 etc, focusing on the search field won’t open the full screen search form.
I would appreciate if you could please let me know how this can be resolved. If I can add a function to functions.php, or modify something in the plugin files, or with css I would gladly do so.
Thank you very much!
]]>Does the plugin support searching for variable product SKU?
I have a product with 4 variables and i have added SKU’s: FAN04, FAN06, FAN06, FAN07
The main product does not have an SKU
No matter what i do i can get it in the results when searching for FAN06
Hi
I am really happy with your plugin, but I was wondering if it was possible to have the blog posts be included in the search result? Same design as the product, just so it would show up in between?
I couldn’t find anything in the support forum, which kind of surprises me because I think it is a functionality a lot of people need when their webshop also has a blog.
Best
Peter
]]>Hello. I have faced this issue: Through ajax search does not find some products by some names (for example Dionysus, marmont, Matelasse, GG), but if I enter the query Dionysus bag, then in ajax search I see the necessary results. Normal search (by clicking on the Search button works fine). Also, if I enter the word ��GG�� I don’t see any results in the ajax search, but if I enter ��LP�� I see results.
For the test I changed the name on one product from: GG Dionysus Small 25cm Shoulder Bag to: GG Abrakada Small 25cm Shoulder Bag and now that item appears in the instant search results. But when I changed the name back to Dionysus it stopped finding again.
In the plugin settings I disabled caching of results, also I tried to re-index tables, remove the check for misspellings, change query hook.Also for the test I disabled almost all plugins, leaving only Woocommerce+Woo Adv Search + Kadence.
Thanks in advance
]]>Hi
I have been using pro version for a while and noticing some buggy behavior
If I search “Century Lounge” on the link https://fomosa.co.za, it doesn’t show me results but takes me straight to a product page that has the word “Century” in it, even though I have about 20 products with the word “Century” as well as about 5 products with the words “Century Lounge”
I am using One Press plugin with a Woocomerce store
All my setting as far as I am aware are correct
]]>Really great plugin which I have been using happily for years, however I now have a really strange problem. I cannot update the placeholder text. I had already added some custom text to replace the standard ‘search’ but now I cannot get any new custom placeholder text to display on the front end – it just displays the old text. I have altered the text in Search Form > Text for search field.
To test this I have:
– Cleared all caches on the server (including CDN)
– Cleared browser caches
– Deleted and re-installed the plugin
I am at a loss as to why it won’t update and can’t think of other things to try. Any ideas or suggestions? Thanks
]]>Hi,
I’m using your plugin as the shortcode version. I’m currently doing a lot of cleanup of db queries and some optimizations. I noticed that your plugin checks if the AWS_INDEX_TABLE exists on every pageview and if i would use your shortcode more than once it would check for each of them… The reason is that the check for the table is right at the beginning of the markup function in the class-aws-markup.php class:
public function markup() {
global $wpdb;
$table_name = $wpdb->prefix . AWS_INDEX_TABLE_NAME;
if ( $wpdb->get_var( "SHOW TABLES LIKE '{$table_name}'" ) != $table_name ) {
if ( current_user_can( AWS_Helpers::user_admin_capability() ) ) {
echo 'Please go to <a href="' . admin_url( 'admin.php?page=aws-options' ) . '">plugins settings page</a> and click on "Reindex table" button.';
}
return;
}
Is it really necessary to check on every shortcode call if the same table exists? wouldn’t it be enough to check once on the plugins_loaded hook?
Or what i did in one of my plugins:
set a transient if the tables exist, that expires after DAY_IN_SECONDS and only check again if it expired.
In the plugins_loaded hook:
get_transient( “aws_tables_exist” );
check if the transient exists, all good. Otherwise:
Check if the table exists and if so call set_transient(“transient_name”,”true”,DAY_IN_SECONDS )
Short improvised(untested) code outline ??
$transient_key = 'aws_index_tables_exists'; //don't no how you prefix your options..
if( get_transient( $transient_key ) === false ) {
global $wpdb;
$table_name = $wpdb->prefix . AWS_INDEX_TABLE_NAME;
if ( $wpdb->get_var( "SHOW TABLES LIKE '{$table_name}'" ) != $table_name ) {
//TODO: log the error, if possible(NOT A MUST)somehow store an admin notice not sure if that's currently implemented in your plugin... and is a pain in wp.
}
else {
set_transient($transient_key,"true",DAY_IN_SECONDS );
}
}
I know it’s a small issue but i can see room to improvement here! Otherwise I need to say I’m using your plugin since 5years now and it never disappoints!! ??
Cheers,
Paul
I need help with with my search bar in header.
Firts:
If i search fo “Iphone 13” , the search correctly suggest in the dropdown, but it suggests all other models also.
Second:
I want, when i enter “Iphone 13” and click Enter button, that i see the page same is i would , when iclick on the “Iphone 13” in the dropdown. Because now if i click enter i dont get any results…
Thank you
]]>Hi,
I have misspelling fix set to OFF.
I am trying to search for “on-line” and I am getting all the products that do not have this, but match “online”. The problem is that I need to find the exact match
]]>Hello, im building my mobile app and integrating woocommerce with rest api, is your plugin supports rest api integration with my mobile app if yes where can I find the documentation
]]>Hello,
So I did a search for a guns. I popped up with 50 results. When I get to the bottom it shows 2 pages so I click on page 2. Not it��s starts to show me other items and now there is 5 to 12 pages.
]]>I am using the Astra theme, and here are some major settings:
Seamless integration: ON
Misspelling fix: (tried all)
AJAX: OFF
Show clear button: ON
The issues I��m experiencing are as follows:
I��ve disabled most plugins, but the issue persists. I��m wondering if I��ve missed some settings.
Additionally, I would like to ensure that search results are always returned, even if they are fuzzy or random, rather than showing “No products found.” I tried adjusting the misspelling settings, but it didn��t solve the problem.
Although leaving AJAX on might resolve the first two issues, the loading is too slow, so I prefer to keep it off.
Any suggestions on how I can solve these issues?
]]>I’ve been using the Pro version for about a year now, with no problems. The client just contacted me with an issue with the search results on the site.
If you go to the homepage, and click on the search icon (magifying glass) and enter the search for a product “1075+” you get a results page with 3064 products (that’s the same number as are indexed).
But if you then do that same search in the search results you get the one product that has that product number. I then checked other products that contain the “+” character – and they do the same thing. Other characters (such as the asterisk) seem to be working.
Also, the plugin was updated from version 3.14 to 3.15 earlier today. I already tried clearing caches and re-indexing the site.
]]>Hey
In my search results it shows all categories along with products relating to the search. im hoping to be able to switch this off.
Search Source – Cat = No
Archive Pages – Cat = No
unsure what else i can look at to correct this.
]]>Hi,
When searching for products i noticed AWS is not checking the content although i have enabled it in the settings and did a reindex.
Any ideas?
Kind regards,
Mark
]]>Hello! How are you? First of all, thank you so much for the amazing plugin!
My issue is: When searching, the results are not properly ordered. Like, when searching for “spider man” in my page, it gives me many results for “man” before showing the most precise one. Here’s a screenshot:
View post on imgur.com
Showing those mostly unrelated products ain’t a big problem, but I’d like at least to make the most relevant one to be on the top. I’m already using the “title priority” code I found on other topics, but didn’t make any difference.
Please help! And thank you!
]]>I just uninstalled/deactivated this plugin as I noticed that the label “new arrivals” are not removed from the products. I have also deleted the category that its used but the label is still there. There are 2 pages effected by this. the labels are applied to all products not just a few. I cleared cash , flushed cash on my hosting site. Someone needt o fix this
]]>I am using BeRocket Product Filter without ajax and Advanced Woo Search. I didn’t find any related posts for this issue.
When a category contains only one item that matches the search keywords, instead of displaying that item, random items appear in the search results.
I created an example to demonstrate this issue:
I don��t recall encountering this issue before. Any advice? Thanks.
]]>Hello, i have set in the settings the Products number 20 (Maximum number of displayed products search results.) but it still displays 5 items per page (i use Divi Theme).
I even tried this code snippet but with no change in the results number.
add_filter( 'aws_search_results_per_page', 'custom_aws_search_results_per_page' );
function custom_aws_search_results_per_page( $per_page ) {
return 20;
}
Any idea where to look?
]]>Hello
Whenever I turn on Ajax search results, I get the info that there are no results found.
Search page works correctly however, displaying results.
We have Astra theme (Astra search in header does not have AJAX), Beaver Builder, WP Rocket.
Thanks in advance for your help!
Hello! How are you today?
Found this another topic dealing with precisely what I need, but I’m having trouble adapting the code to work on my theme, think you could assist me?
Thank you so much!
]]>Hi everyone!
I have integrated the search into the taxonomy-product_cat.php using , because I want to search within the category or subcategories, but I get the results from the entire store. Does this work with AWS?
Best regards
Chriss
Hi
So i have this warmer in the WP dashboard in Site Health
Autoloaded options are configuration settings for plugins and themes that are automatically loaded with every page load in WordPress. Having too many autoloaded options can slow down your site. Your site has 2382 autoloaded options (size: 3 MB) in the options table, which could cause your site to be slow. You can review the options being autoloaded in your database and remove any options that are no longer needed by your site.
After looking in the options table i have large amounts of aws_search_term_** files.
Any reason why they are they and how to remove them?
Thanks