Different color for the different stock statud (but not with sold items, instead with stock items)

This topic has 4 replies, 3 voices, and was last updated 8 months, 2 weeks ago ago by Andrew Mitchell

  • Avatar: buf
    buf
    Participant
    January 17, 2024 at 10:38

    Hi again,

    I’ve seen that your advance stock option changes the color of the stock status according to the items sold, but I want to change it according to the remaining stock. I will explain in more detail:

    – If I have 3 or more products in stock I want to show the “In stock” text in green.
    – If I have 2 or 1 left in stock: “There are only X products in stock” in yellow or orange.
    – If there is no stock left: “Out of stock” in red.

    Right now it is not working properly and it is showing the colors in a different way:

    – Low stock: https://prnt.sc/LCKpxh2JO-vC
    – Good stock: https://prnt.sc/UxE9gVlh5erf
    – Out of stock: https://prnt.sc/e_xbhsvNQS6l

    So, I want to change the good stock orange color to green and the low stock red color to yellow. I supose that this is possible.

    Thanks in advance.

    3 Answers
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    January 18, 2024 at 07:47

    Hello, @buf,

    Thank you for contacting us and for using XStore.

    We understand your concern about the stock status colors in the theme. To achieve the desired color scheme based on the remaining stock, follow these steps:

    1) Navigate to XStore > Theme Settings > WooCommerce (Shop Element) > Shop Element.

    In the “Advanced Product Stock” section, set the colors for the stock statuses (full stock, low stock, and middle stock) as per your preferences.

    2)After this go to the WordPress dashboard, and edit any product.

    a)In the “Product Data” section, navigate to “Inventory.”
    b)Check the box next to “Track stock quantity for this product.”
    c)Set the “Full stock quantity” and “Low stock threshold” based on your requirements.

    For visual reference:https://imgur.com/a/3uRvNcw

    By following these steps, the stock status colors should now reflect your desired scheme:

    “In stock” (3 or more products): Green
    “There are only X products in stock” (2 or 1 left): Yellow or Orange
    “Out of stock”: Red
    If you encounter any issues or need further assistance, feel free to reach out.

    Yours sincerely,
    The 8Themes Team

    Avatar: buf
    buf
    Participant
    January 18, 2024 at 12:56

    Done. It works perfectly.

    Thanks again!

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    January 18, 2024 at 12:56

    Dear buf,

    We hope you’re reveling in the experience our theme brings! Your enthusiasm is what fuels our passion. Would you be so kind as to channel that energy into a 5-star rating on ThemeForest? Your feedback is the spark that lights our way!

    Click here to spread the love: https://themeforest.net/downloads

    Thank you for being an integral part of our journey!

    Best Regards,
    The 8Theme Team

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

The issue related to '‘Different color for the different stock statud (but not with sold items, instead with stock items)’' 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.