Как показать поле промокод по нажатию в корзине Tilda

COFFEE BEAN PROCESS

WE DOCUMENT EVERY COFFEE BEAN PROCESS UNTIL IT IS SERVED

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt uteri labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.


Read More

Dessert Menu
If your sweet tooth deserves a dessert, grab a fork or spoon right now.
Lemon meringue 
460р Buy Now
Baked meringue with lemon ice cream and lemon curd sauce
Learn More
Apple tart
680р Buy Now
Baked apple pie with vanilla ice cream
Learn More
Mini chocolate truffles
520р Buy Now
With a warm and liquid caramel inside
Learn More
Cherry ice cream
470р Buy Now
Vanilla ice cream with meringue and warm cherry sauce
Learn More
Frozen berries
710р Buy Now
Mixed berries with frozen yoghurt
Learn More
Apple ice cream
590р Buy Now
Vanilla ice cream with apples and caramel sauce
Learn More

Как показать поле промокод по нажатию в корзине Tilda

1
Создали в корзине поле с промокодом
2
Вставили код в блок Другое - Т123
Ссылка на картинку и текст надписи задаётся в коде
https://static.tildacdn.com/tild3064-3961-4966-b637-313836393936/discount.svg
Есть промокод?
Библиотека примера
<script>
$(document).ready(function () {
    $('<div class="pc-trigger"><img src="https://static.tildacdn.com/tild3064-3961-4966-b637-313836393936/discount.svg">Есть промокод?</div>').insertBefore('.t-input-group_pc');
    $('.pc-trigger').click(function(){
        $(this).hide();
        $('.t-input-group_pc').show();
    });
});
</script>

<style>
.t-input-group_pc{display:none}
.t-inputpromocode__btn.t-btn {
    display: table-cell !important;
}
.pc-trigger img {
    width: 25px;
    height: 25px;
    margin-right: 10px;
}
.pc-trigger {
    font-family: 'Roboto',Arial,sans-serif;
    font-weight: 600;
    font-size: 18px;
    text-decoration: underline;
    cursor: pointer;
    display: flex;
    justify-content: flex-end;
}
</style>
LEMON MERINGUE
Baked meringue with lemon ice cream and lemon curd sauce

APPLE TART

Baked apple pie with vanilla ice cream

MINI CHOCOLATE TRUFFLES

With a warm and liquid caramel inside

CHERRY ICE CREAM

Vanilla ice cream with meringue and warm cherry sauce

FROZEN BERRIES

Mixed berries with frozen yoghurt

APPLE ICE CREAM

Vanilla ice cream with apples and caramel sauce
Click to order
Total: 
Ваше имя
Промокод на скидку
Payment method
Made on
Tilda