Home Forums WoodMart support forum hide out of stock products from search result

hide out of stock products from search result

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #478658

    ivantoledomenares
    Participant

    I need that in the “building header” search engine, the products without stock do not appear in the search result.

    Best regards

    #478684

    Hello,

    Please add this code to the Theme Settings > Custom CSS > Global:

    If your labels are round:

    body.search-results  .labels-rounded .out-of-stock {
    display:none;
    }

    if your labels are rectangular:

    body.search-results  .labels-rectangular .search-results{
    display:none;
    }

    If you have any questions please feel free to contact us.

    Best Regards

    #478724

    ivantoledomenares
    Participant

    I need the non-stock products to not appear in the search engine box, I attach a referential image.

    Best regards

    Attachments:
    You must be logged in to view attached files.
    #478978

    Hello,

    Please make the full backup of your site and check the issue on the Storefront theme to detect if our theme causes the problem. Storefront is a free theme developed by WooСommerce.

    Best Regards

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