@loed

Как показать остаток товаров на Тильде?

Добрый день, подскажите пожалуйста как вывести на тильде количество товаров в карточке? Спасибо
  • Вопрос задан
  • 634 просмотра
Пригласить эксперта
Ответы на вопрос 1
@Lyudnyy
Настройки сайта - Ещё - ПОЛЬЗОВАТЕЛЬСКИЕ CSS-СТИЛИ

Вставить код и отредактировать его для стилизации

.t-store__card::after {
content: attr(data-product-inv) " шт на складе";
font-family: 'Roboto',Arial,sans-serif;
font-size: 20==18px;
color: #ff0000;
position: absolute;
margin-top: 4px;
width: 250px;
}
.t-store__card__btns-wrapper {
margin-top: 40px !important;
}
.js-store-prod-sold-out {
display: none;
}

.js-store-product.js-product::before {
content: attr(data-product-inv) " шт на складе";
font-family: 'Roboto',Arial,sans-serif;
font-size: 18px;
color: #ff0000;
background-color: #000000;
margin-left: 20px;
padding: 3px 8px;
position: absolute;
top: -5px;
}
.t-store__prod-popup__name{
margin-top: 5px;
}
.js-store-product.js-product.t-store__product-snippet::before {
margin-left: calc(50% + 20px);
}

media screen and (max-width: 1240px){
.js-store-product.js-product::before {
margin-left: 5px;
}
.js-store-product.js-product.t-store__product-snippet::before {
margin-left: calc(50% - 10px);
}
}
media screen and (max-width: 980px){
.js-store-product.js-product.t-store__product-snippet::before {
margin-left: calc(50% - 60px);
top: -20px;
}
}

media screen and (max-width: 640px){
.js-store-product.js-product::before {
margin-left: 5px;
position: relative;
top: 0px;
left: 50%;
transform: translateX(-50%);
}
.t-store__prod-popup__slider.js-store-prod-slider {
padding-top: 30px;
}
}
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы