Home Forums WoodMart support forum Remove sold out products in related products

Remove sold out products in related products

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #372554

    contactpleazurr
    Participant

    Hello,

    How can I remove sold out products in related products?
    https://snipboard.io/xRQ6LN.jpg

    #372594

    Hello,

    You can disable the related products in the Theme Settings > Single products > Related products.

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

    Best Regards

    #372726

    contactpleazurr
    Participant

    Hello,

    You did not answer my question. I asked “How can I remove sold out products in related products”? Not how to remove related products.
    https://snipboard.io/xRQ6LN.jpg

    #372928

    Hello,

    Sorry, please provide the page URL where I can see that so that I could give you custom CSS.

    Best Regards

    #372982

    contactpleazurr
    Participant

    Please see links in private content.

    #373342

    Hello,

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

    .related-products .labels-rounded .onsale {
    display:none;
    }

    This code would remove the label, however, would not remove the product itself. Woocommerce does not provide the option to remove sold-out products from certain places. There is the option to remove out-of-stock products from the whole catalog.

    Best Regards

    #373458

    contactpleazurr
    Participant

    Hello,

    That code does not work: https://snipboard.io/ZvsPnk.jpg

    Please advise.

    #373793

    Hello,

    Please replace the code with this one:

    .related-products .labels-rounded .out-of-stock {
    display:none;
    }

    Best Regards

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