This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Hide out of stock products from results

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Hide out of stock products from results

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #15186
    crystalinformaticacrystalinformatica
    Participant

    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.

    #15188
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Sure, I believe this knowledge base article will help you out: WooCommerce: Showing products in-stock only

    #15221
    crystalinformaticacrystalinformatica
    Participant

    I need to drag this custom field “Stock Status” in index table options?

    #15222
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    No, it is not needed there, it will not make a difference.

    #15290
    crystalinformaticacrystalinformatica
    Participant

    It 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 case

    I’m not sure what I did wrong, could you help me with some configuration?

    #15291
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    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.png

    I hope this helps!

    #15413
    crystalinformaticacrystalinformatica
    Participant

    Hi 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
    ….

    #15426
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    Yes, it is possible, by choosing the ordering by custom field, and entering the ‘_price’ field: https://i.imgur.com/6pt1HnF.png

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.