Bug: Search results do not account for hiding out of stock products

  • mcl7
    Participant
    1 year, 8 months ago #25877

    Using algolia, when I select the option to hide out-of-stock products from the catalog the search results do not work properly. Basically, it still gives the filter counts and pagination counts as if the out of products are being displayed. For example, if it says there are 24 results and it will show 20 but say there are 24 with the 4 not being displayed being the out-of-stock products.

    A more extreme example is going to a category that does not have any in-stock products and the pagination still shows the counts and pagination for all the products in that category.

    I re-indexed everything but no go. Is there a way to add a filter for In Stock and Out of Stock to Algolia with WPSolr so that it can be used as a filter?

    • This topic was modified 1 year, 8 months ago by wpsolr.
    mcl7
    Participant
    1 year, 8 months ago #25878

    Although related, please excuse that last sentence. That’s a feature request I will add to the appropriate category.

    wpsolr
    Keymaster
    1 year, 8 months ago #25884

    Please replace your WPSOLR version with this fix: https://trello.com/c/O26DFWlp/152-fix-algolia-showing-out-of-stock-products

    mcl7
    Participant
    1 year, 8 months ago #25949

    I really appreciate the quick fix here! Worked like a charm!

    wpsolr
    Keymaster
Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.