OUT OF STOCK BADGE IN SINGLE PRODUCT PAGE

7 replies2 participantsUpdated by Olga Barlow

  • Avatar: joestam
    joestam
    Participant

    Hello how can i show in the single product page the ”OUT OF STOCK” badge?
    It is only show in the shop page.
    Also how can i translate it to Greek? (ΕΞΑΝΤΛΗΜΕΝΟ)
    Thanks in advance

    Please, contact administrator
    for this information.

    7 Answers

    Avatar: Olga Barlow
    Olga Barlow
    Participant

    Hello,

    We added custom CSS to display it on the single product page over the product image.

    .single-product .label-product .out-stock {
        display: block;
        left: 20px;
    }

    Label translated, check now.

    Regards

    Avatar: joestam
    joestam
    Participant

    Dear Olga thank you very much.
    Sorry i forgot it in my previous message, is it possible to change the Color to RED?
    Thanks again for your help

    Avatar: Olga Barlow
    Olga Barlow
    Participant

    Hello,

    Do you mean text color or bg color? Do you want to change it only on the single product or also at the shop page?

    Regards

    Avatar: joestam
    joestam
    Participant

    Hello
    you are right, i want the BG color in the single product pages and also at the shop pages.
    Thanks

    Avatar: Olga Barlow
    Olga Barlow
    Participant

    Hello,

    Add the below custom

    .out-stock {
        background: red;
        width: auto;
        border-radius: 0;
        height: auto;
        margin: 0;
        transform: translate(-50%, -50%);
    }
    .out-stock .wr-c {
        margin: 10px;
        color: #fff;
        border-top-color: #ffffff82;
        border-bottom-color: #ffffff82;
    }

    Regards

    Avatar: joestam
    joestam
    Participant

    Dear Olga i added the code but ONLY in the Single Product page the badge is OK.
    In the Home page and in the Category Page is out of the picture, please take a look at the screen prints.
    https://prnt.sc/z2tdeh
    https://prnt.sc/z2tk48
    Thank you

    Avatar: Olga Barlow
    Olga Barlow
    Participant

    Hello,

    Check now.

    Regards

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register