Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Hide out of stock products from results
This topic contains 7 replies, has 2 voices, and was last updated by Ernest Marcinko 6 years, 10 months ago.
- AuthorPosts
- October 16, 2017 at 3:59 pm #15186
Hello guys,
I need search results not show products out of stock, only those available for purchase. Is there any rule or setting for this?
Thanks.
October 16, 2017 at 4:02 pm #15188Hi,
Sure, I believe this knowledge base article will help you out: WooCommerce: Showing products in-stock only
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
October 20, 2017 at 1:57 pm #15221I need to drag this custom field “Stock Status” in index table options?
October 20, 2017 at 2:54 pm #15222Hi,
No, it is not needed there, it will not make a difference.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
October 25, 2017 at 8:55 pm #15290It worked, but if I put the whole product name it will be found.
Another thing, I tried to configure the relevancy of the results but I had a little difficulty.
I need the first results to be exactly or close to the digits and the rest with something similar.What happens if the person searches for: Case Multilaser
The first result will be: Cooler for caseI’m not sure what I did wrong, could you help me with some configuration?
October 26, 2017 at 9:10 am #15291Hi,
I see different results now, I guess you got it better configured now.
My suggestion would be to change the keyword logic to AND from the default OR: https://i.imgur.com/AUwqUF2.png
..also, if you don’t get enough results, you can enable the secondary logic as well: https://i.imgur.com/bfnr9m6.pngI hope this helps!
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
November 7, 2017 at 7:04 pm #15413Hi Ernest,
Is there a way to sort search results by prices, example:
Main result: U$ 89,00
Main result(2): U$ 95,00
Other results: U$ 20,00
Other results(2): U$ 30,00
Other results(3): U$ 40,00
….November 8, 2017 at 9:13 am #15426Hi!
Yes, it is possible, by choosing the ordering by custom field, and entering the ‘_price’ field: https://i.imgur.com/6pt1HnF.png
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.