cheyenne711
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Woo Search] Search resultsHi, could you please let me know how I can modify the code to prioritize more than one product ID? Thanks
Forum: Plugins
In reply to: [Advanced Woo Search] Search resultsOkay thanks, the product ID worked. How do I add more products to prioritize, would it be like this 999, 1000, 1001 etc?
Forum: Plugins
In reply to: [Advanced Woo Search] Search resultsThey are both a product and a category.
Thanks
Forum: Plugins
In reply to: [Advanced Woo Search] Search resultsHi ILLID,
I tried the code you gave me but it only prioritized bolts. I need to be able to prioritize the Grade 8 Capscrew bolts when someone searches for bolts. Thanks
- This reply was modified 1 year, 10 months ago by cheyenne711.
Forum: Plugins
In reply to: [Advanced Woo Search] Search resultsSo using the code below made the bolts appear first but then it affects all of the other products so now for example “wire nuts” appear after wire and stripping tools when putting in the search term “wire nuts”. Is it possible to have the code only take affect when searching within the “bolts category” or to prioritize products of my choosing?
Also is it possible to have the search match more than one word i.e if putting in the search for “wire nuts” it would only include products that include both words?
add_filter( 'aws_search_results_products', 'my_aws_search_results_products' ); function my_aws_search_results_products( $products ) { usort($products, function ($item1, $item2) { $product1 = wc_get_product( $item1['id'] ); $product2 = wc_get_product( $item2['id'] ); if ( $product1->is_featured() ) { return -1; } if ( $product2->is_featured() ) { return 1; } return 0; }); return $products; }
Thanks in advance.
Forum: Plugins
In reply to: [Advanced Woo Search] Search resultsNevermind I was able to sort based on product order. If you could help me with the no results found page though I would greatly appreciate it.
Forum: Plugins
In reply to: [Advanced Woo Search] Search resultsWhen I disable the AWS plugin, the message “no results found” appears fine.
Also thanks for the other code but that wasn’t what I needed. I need these bolts (cap screws) https://eeinc.biz/product-category/fasteners/bolts/grade-8-hexagon-head-cap-screw/ to appear first when someone puts in the keyword bolts. Do you have any suggestions?
Forum: Plugins
In reply to: [Advanced Woo Search] Search resultsThanks, when the page finally loads it doesn’t show the”no results found text”. It just shows a blank page beneath “showing results for…”. Do you have a fix for this? Maybe a redirect to another page?
Forum: Plugins
In reply to: [Advanced Woo Search] Search resultsHi,
On the preview it shows no results found but if you hit enter it just sits and spins.
For the other question I want these to show up first when you type “bolts” into the search. https://eeinc.biz/product-category/fasteners/bolts/cap-screws/grade-8-hexagon-head-cap-screw/
Thanks
- This reply was modified 1 year, 10 months ago by cheyenne711.
Forum: Plugins
In reply to: [Advanced Woo Search] Search resultsIf you type in scew instead of screw you will see what I mean, the page takes forever to load and then just shows “showing results for” with a blank page.
For the other question, I did put them in the bolts category but there are a lot of bolts. Is there a way I can move them to the top of the results?
Forum: Plugins
In reply to: [Advanced Woo Search] Search resultsAlso did you find out anything for when no results are found?
Forum: Plugins
In reply to: [Advanced Woo Search] Search resultsThat’s what I thought to but I don’t want to change the name of the product. Is there a way around this?
Forum: Plugins
In reply to: [Advanced Woo Search] Search resultsBolts would be an example, I would like to have the products that are called “Hexagon Head Cap Screws” to be the top results for bolts. Thanks for your help.
Forum: Plugins
In reply to: [Advanced Woo Search] Search Redirects to Shop PageI figured it out. It was the Elementor theme builder. I had to add the Search page to the product archive template.
Forum: Plugins
In reply to: [Advanced Woo Search] Search Redirects to Shop PageIt is enabled right now. Do you have any suggestions or a redirect I can use?