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

This topic contains 7 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 6 years, 8 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #15186
    crystalinformatica
    crystalinformatica
    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 Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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 :)


    #15221
    crystalinformatica
    crystalinformatica
    Participant

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

    #15222
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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 :)


    #15290
    crystalinformatica
    crystalinformatica
    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 Marcinko
    Ernest 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!

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #15413
    crystalinformatica
    crystalinformatica
    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 Marcinko
    Ernest 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

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.