Динар (04 Октябрь 2016 - 19:55) писал:
Чуток получилось не так))помогите))
1)Раздел хиты показывается только на главной,а надо чтобы на всех страницах
2)Товары в разделе ВЫ СМОТРЕЛИ должны показываться по горизонтали,как показано выше(по 3 товара в строке)
3)Создать раздел РАСПРОДАЖА(тут будут находится товары раздела АКЦИИ)между слайдером и разделом новинки. Соответстаенно раздел НОВИНКИ съедет ниже
Здравствуйте.
1) К сожалению блок "Хиты продаж" можно выводить только на главной странице.
Чтобы убрать возможные ошибки на остальных страницах в шаблоне HTML
замените
<!-- Хиты Продаж -->
{% IFNOT index_page_favorites_goods_empty %}
на
<!-- Хиты Продаж -->
{% IF index_page %}
{% IFNOT index_page_favorites_goods_empty %}
далее замените
{% ENDIF %}
<!-- /END Хиты Продаж -->
на
{% ENDIF %}
{% ENDIF %}
<!-- /END Хиты Продаж -->
2)В файле main.css
после блока
/* Вы смотрели */
.viewed .block-content .recently-item .product-image, .list-items .recently-item .product-image {float: left;width:85px;margin-right: 10px;display: block;overflow: hidden;position: relative;}
.viewed .block-content .recently-item .product-image img, .list-items .recently-item .product-image img {display:block;margin:0 auto;max-width: 100%;padding: 5px;}
.viewed .block-content .recently-item .recently-item-content, .list-items .recently-item .recently-item-content {overflow: hidden;}
.viewed .block-content .recently-item .product-name, .list-items .recently-item .product-name {margin: 5px 0 0px 0;}
.viewed .block-content .recently-item .product-name a, .list-items .recently-item .product-name a {max-height: 20px;line-height: 20px;font-size: 16px;font-weight: 600;display: block;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}
.viewed .block-content .recently-item .price-box, .list-items .recently-item .price-box {margin: 3px 0;}
.viewed .block-content .recently-item .price-box .old-price .price, .list-items .recently-item .price-box .old-price .price .list-items {margin-right: 3px;font-size: 12px;}
.viewed .block-content .recently-item .actions a, .list-items .recently-item .actions a {display: inline-block;width: 30px;height: 30px;background-color: #969696;padding: 0px 8px;margin: 5px 10px 5px 0;position: relative;color: #fff;}
.viewed .block-content .recently-item .actions a i, .list-items .recently-item .actions a i {line-height: 30px;}
.viewed .block-content .recently-item .actions a:hover, .viewed .block-content .recently-item .actions a.added,
.list-items .recently-item .actions a:hover, .list-items .recently-item .actions a.added {background-color: #09afe7;}
.recently-item {height: 0px;overflow: hidden;}
.recently-item:nth-child(1), .recently-item:nth-child(2), .recently-item:nth-child(3) {height: auto;margin-bottom: 15px;background: #f8f8f8;border: 1px solid #e5e5e5;overflow: hidden;}
.recently-item.showThis {height: auto;margin-bottom: 15px;background: #f8f8f8;border: 1px solid #e5e5e5;overflow: hidden;}
.block.viewed .action .showAllRecent {max-width: 140px;display: block;margin: 0 auto; margin-bottom:10px;}
.action .showAllRecent {max-width: 140px;display: block;margin: 0 auto; margin-bottom:10px;}
добавьте
.col-right .list-items .recently-item { display: inline-block; vertical-align: bottom; width: 33%; min-height: 105px;}