Old price after discounted price - by misha

This topic has 18 replies, 3 voices, and was last updated 3 years ago ago by Olga Barlow

  • Avatar: misha
    misha
    Participant
    April 11, 2021 at 11:40

    Здравствуйте,

    Подскажите возможно сделать старую цену (зачеркнутую) после цены со скидкой. У меня получилось но только через плагин. Может это можно сделать проще или предусмотрено темой? https://prnt.sc/119k0z0

    Спасибо!

    17 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 11, 2021 at 12:33

    Hello,

    Try to use the next custom CSS code:

    .single-product .product-information-inner .price {
        display: flex;
    }
    .single-product .product-information-inner del {
        order: 2;
    }
    .single-product .product-information-inner ins {
        order: 1;
        padding-left: 0px;
        padding-right: 5px;
    }

    Regards

    Avatar: misha
    misha
    Participant
    April 11, 2021 at 13:10

    Спасибо за ответ

    Не работает 🙁

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 11, 2021 at 13:13

    Please try this one:

    .single-product .et_product-block .price {
        display: flex;
    }
    .single-product .et_product-block del {
        order: 2;
    }
    .single-product .et_product-block ins {
        order: 1;
        padding-left: 0px;
        padding-right: 5px;
    }

    Regards

    Avatar: misha
    misha
    Participant
    April 11, 2021 at 13:23

    спасибо за Ваш ответ!

    Получилось только на странице товара. На странице каталога нечего не изменилось.
    Когда я отключаю плагин пропадает валюта – ранее было – тг.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 11, 2021 at 14:05

    Yes, you mentioned the Single product page – https://prnt.sc/119k0z0 , so I gave you code for this 🙂
    Change the code to:

    .content-product .price {
        display: flex;
        justify-content: center;
    }
    .single-product .et_product-block .price {
        display: flex;
    }
    .single-product .et_product-block del,
    .content-product .price del {
        order: 2;
    }
    .single-product .et_product-block ins,
    .content-product .price ins {
        order: 1;
        padding-left: 0px;
        padding-right: 5px;
    }

    Describe the situation with тг in more detail, please. Make sure that it relates to our theme, not for other plugins or your additional customization.

    Regards

    Avatar: misha
    misha
    Participant
    April 11, 2021 at 16:26

    Здраствуйте,

    Все получилось как надо! ? Подскажите, возможно ка-то уменьшить высоту шрифта зачеркнутой цены?

    Спасибо Вам!

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 12, 2021 at 13:13

    Hello,

    Use

    .product-content .price del {
        font-size: 12px;
    }

    Regards

    Avatar: misha
    misha
    Participant
    April 12, 2021 at 14:55

    Здравствуйте,

    Спасибо!

    Подскажите, я пытаюсь создать новую тему, ну у меня не получаеться это сделать со вчерашнего дня. Все проходит как обычно, ну когда я нажимаю “SUBMIT” тема не создаётся а написанное просто исчезает.
    https://prnt.sc/11algdd

    С Уважением

    Avatar: misha
    misha
    Participant
    April 12, 2021 at 15:35

    Кажется я разобрался. Когда указываешь больше двух скиншотов, сообщение не сохраняется. могу ошибаться.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 12, 2021 at 15:39

    Hello,

    Do you add just simple links to screenshots or use any HTML tags like image or something in your message?

    Regards

    Avatar: misha
    misha
    Participant
    April 12, 2021 at 15:45

    Простая ссылка, такая как эта https://prnt.sc/11algdd.

    Avatar: misha
    misha
    Participant
    April 12, 2021 at 15:52

    Не помог код ): все осталось без изменения

    .product-content .price del {
    font-size: 12px;
    }

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 12, 2021 at 16:01

    Hello,

    Replaced with the below code

    .single-product .et_product-block del,
    .product-content .price del {
        font-size: 14px;
    }

    Check now.

    Regards

    Avatar: misha
    misha
    Participant
    April 12, 2021 at 16:16

    Получилось!

    Только текст прижигает к верху https://prnt.sc/11amwch
    Возможно выровнять? Если нет, то так тоже получилось отлично!

    Спасибо Вам! И хорошего дня

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 12, 2021 at 16:20

    Hello,

    You are welcome.

    To align price replace

    .single-product .et_product-block .price {
        display: flex;
    }

    with

    .single-product .et_product-block .price {
        display: flex;
        align-items: baseline;
    }

    Regards

    Avatar: misha
    misha
    Participant
    April 12, 2021 at 17:22

    Спасибо! Лучше быть не может

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 12, 2021 at 18:26

    Hello,

    You are welcome.

    Regards

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

You must be logged in to reply to this topic.Log in/Sign up

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