Home Forums WoodMart support forum gray out the product was out of stock

gray out the product was out of stock

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #559483

    av_admin_1984
    Participant

    Hi

    I need code to gray out the product was out of stock, no matter variation or a simple product, just gray out the picture so that the user can understand it is out of stock

    Now Betheme is supported
    https://themes.muffingroup.com/betheme-store2/shop/

    is it possible?

    #559486

    av_admin_1984
    Participant

    Even Storefront is supported

    #559680

    Luke Nielsen
    Keymaster

    Hello,

    Please send me the URL link to some out of stock products, then I will check the product style and prepare a custom CSS for you.

    Kind Regards

    #559684

    av_admin_1984
    Participant

    Actually, I’m not talking about a single product, I mean the product archive like the address I give you in a private box

    Please don’t share anything of my site in public

    thanks

    #559700

    Luke Nielsen
    Keymaster

    Hello,

    Try to use the code below for help:

    .product-grid-item.outofstock .product-element-top img {
        opacity: 0.3;
    }

    Kind Regards

    #559719

    av_admin_1984
    Participant

    I need to change the color to gray out, it is changing the opacity wich I don’t need it at all

    #559857

    Luke Nielsen
    Keymaster

    Hello,

    In the example that you sent, the opacity is used – https://prnt.sc/Dkw2DBiufdBE, so please clarify what you mean by making a product as “gray out”? Gray border?

    Thank you in advance.

    Kind Regards

    #559947

    av_admin_1984
    Participant

    I just add this to your code and everything is fine

    
    .product-grid-item.outofstock .product-element-top img {
        opacity: 0.3;filter: grayscale(1);
    }
    

    thanks
    close, please

    #560168

    Luke Nielsen
    Keymaster

    Hello,

    Always remember that you can reach out to us with any questions you may have.

    Have a good day!

    Kind Regards

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

The topic ‘gray out the product was out of stock’ is closed to new replies.