In stock color is in red - by Shezad - on WordPress WooCommerce support

This topic has 8 replies, 3 voices, and was last updated 2 years, 10 months ago ago by Olga Barlow

  • Avatar: Shezad
    Shezad
    Participant
    June 15, 2021 at 05:20

    Hello,

    I am having an issue with the “in stock” text on certain items showing in red instead of green.

    Example 1= https://snipboard.io/ynIU0w.jpg

    Example 2= https://snipboard.io/2q1HCI.jpg

    Issue seems to be on the product itself as well as on the search bar.

    Please, contact administrator
    for this information.
    7 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 15, 2021 at 15:03

    Hello,

    Go to Theme Options > WooCommerce > Shop elements > Product stock > change the Low stock color to green.

    Regards

    Avatar: Shezad
    Shezad
    Participant
    June 15, 2021 at 18:22

    Hello,

    After I made this change it seems that everything including out of stock is also showing green in the search bar= https://snipboard.io/wtAjyY.jpg

    Here after clicking on the link the item is showing “in stock” in green text
    https://cellpartsworld.com/product/one-plus-6t-volume-flex-a6010-a6013/

    In this link it is showing “out of stock” in red text
    https://cellpartsworld.com/product/one-plus-6t-back-cover-glass-blacka6010-a6013/

    However search bar is showing everything in green= https://snipboard.io/wtAjyY.jpg

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 16, 2021 at 08:19

    Hello,

    Please describe the desired result.

    Regards

    Avatar: Shezad
    Shezad
    Participant
    June 16, 2021 at 19:05

    Hello,

    I am trying to make all “in stock” products show in green text, and all “out of stock” products show in red text on the search bar. As shown in this screenshot= https://snipboard.io/KxU1Iv.jpg

    In the link itself it shows up properly but on the search bar it doesn’t.

    Links that can be seen for reference= https://cellpartsworld.com/product/one-plus-6t-volume-flex-a6010-a6013/. (out of stock shows properly in green)

    2nd Reference= https://cellpartsworld.com/product/one-plus-6t-back-cover-glass-blacka6010-a6013/. (out of stock shows properly in red)

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 16, 2021 at 19:12

    Hello,

    Got it. Check now.

    Regards

    Avatar: Shezad
    Shezad
    Participant
    June 16, 2021 at 21:29

    Hello,

    Thank you very much! Can I ask what you changed to make this happen?

    Thank You

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 16, 2021 at 21:48

    Hello,

    I added below code to Theme Options > Custom CSS

    .autocomplete-suggestion .content-product .product-details > .out-of-stock, 
    .autocomplete-suggestion .ajax-item-info > .out-of-stock {
        color: var(--et_red-color);
    }

    Fix will be also included in the next theme update.

    Regards

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

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

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