How to set not in stock in different color

This topic has 4 replies, 2 voices, and was last updated 9 years, 3 months ago ago by Eva Kemp

  • Avatar: peter4576
    peter4576
    Participant
    August 21, 2015 at 14:25

    Hi again

    I used p.stock.in-stock to make it go green. But what if a product is not in stock? My customer has no items right now I can test on… 🙁

    Is there a way to change this using CSS or is it solely PHP that does that trick?

    Thanks

    Peter

    https://gofile.me/6lYKv/lXnZ6Gef

    3 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    August 21, 2015 at 15:02

    Hello,

    Please use this code in child style.css file:

    .product-information .out-of-stock {
       color: #E5534C !important;
    }

    Write your color value.

    Regards,
    Eva Kemp.

    Avatar: peter4576
    peter4576
    Participant
    August 21, 2015 at 20:21

    Excelent! Thank you!!!

    Avatar: Eva
    Eva Kemp
    Support staff
    August 22, 2015 at 11:18

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘How to set not in stock in different color’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.