<!-- Товары на главной, Новинки, Хиты --> {% IF index_page %} {% IF index_page_goods_empty=0 || index_page_new_goods_empty=0 || index_page_favorites_goods_empty=0 %} <div id="producttabs" class="products-container"> <div class="container"> <ul class="pdt-nav"> {% IFNOT index_page_goods_empty %}<li class="item-nav unselectable active" data-href="pdt-sale"><a href="{CATALOG_INDEX_PAGE_URL}"><span class="text">Товары на главной</span></a></li>{% ENDIF %} {% IFNOT index_page_new_goods_empty %}<li class="item-nav unselectable {% IF index_page_goods_empty=1 %}active{% ENDIF %}" data-href="pdt-new"><a href="{CATALOG_NEW_URL}"><span class="text">Новинки</span></a></li>{% ENDIF %} {% IFNOT index_page_favorites_goods_empty %}<li class="item-nav unselectable {% IF index_page_goods_empty=1 && index_page_new_goods_empty=1 %}active{% ENDIF %}" data-href="pdt-best"><a href="{CATALOG_TOP_SALES_URL}"><span class="text">Хиты продаж</span></a></li>{% ENDIF %} <li class="showAll"><span>Все </span><span class="txt">{% IFNOT index_page_goods_empty %}Товары на главной{% ELSEIF index_page_new_goods_empty=0 %}Новинки{% ELSEIF index_page_goods_empty=1 && index_page_new_goods_empty=1 %}Хиты продаж{% ENDIF %}</span></li> </ul>
И замените его на:
<!-- Товары на главной, Новинки, Хиты --> {% IF index_page %} {% IF index_page_goods_empty=0 || index_page_new_goods_empty=0 || index_page_favorites_goods_empty=0 || index_page_sale_goods_empty=0 %} <div id="producttabs" class="products-container"> <div class="container"> <ul class="pdt-nav"> {% IFNOT index_page_goods_empty %}<li class="item-nav unselectable active" data-href="pdt-sale"><a href="{CATALOG_INDEX_PAGE_URL}"><span class="text">Товары на главной</span></a></li>{% ENDIF %} {% IFNOT index_page_new_goods_empty %}<li class="item-nav unselectable {% IF index_page_goods_empty=1 %}active{% ENDIF %}" data-href="pdt-new"><a href="{CATALOG_NEW_URL}"><span class="text">Новинки</span></a></li>{% ENDIF %} {% IFNOT index_page_favorites_goods_empty %}<li class="item-nav unselectable {% IF index_page_goods_empty=1 && index_page_new_goods_empty=1 %}active{% ENDIF %}" data-href="pdt-best"><a href="{CATALOG_TOP_SALES_URL}"><span class="text">Хиты продаж</span></a></li>{% ENDIF %} {% IFNOT index_page_sale_goods_empty %}<li class="item-nav unselectable {% IF index_page_goods_empty=1 && index_page_new_goods_empty=1 %}active{% ENDIF %}" data-href="pdt-sale1"><a href="{CATALOG_TOP_SALES_URL}"><span class="text">Акции</span></a></li>{% ENDIF %} <li class="showAll"><span>Все </span><span class="txt">{% IFNOT index_page_goods_empty %}Товары на главной{% ELSEIF index_page_new_goods_empty=0 %}Новинки{% ELSEIF index_page_goods_empty=1 && index_page_new_goods_empty=1 %}Хиты продаж{% ELSEIF index_page_goods_empty=1 && index_page_new_goods_empty=1 && index_page_favorites_goods_empty=1 %}Акции{% ENDIF %}</span></li> </ul>
Найдите данный код:
</div> </div> {% ENDIF %} {% ENDIF %} <!-- /END Товары на главной, Новинки, Хиты -->
И сразу перед кодом добавьте данный код:
{% IFNOT index_page_sale_goods_empty %} <div class="pdt-sale1 pdt-content {% IF index_page_goods_empty=1 && index_page_new_goods_empty=1 && index_page_favorites_goods_empty=1 %}active{% ENDIF %}"> <div class="products-grid row"> {% FOR index_page_sale_goods %} <div class="item animate fadeInUp {% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE && index_page_sale_goods.MAX_REST_VALUE=0 %}empty{% ENDIF %}"> <div class="item-inner" itemscope itemtype="https://schema.org/Product"> <form action="{CART_ADD_GOODS_MODIFICATION_URL | url_amp}" method="post" class="product-form-{index_page_sale_goods.MIN_PRICE_NOW_ID} goodsListForm"> <input type="hidden" name="hash" value="{HASH}" /> <input type="hidden" name="form[goods_from]" value="{index_page_sale_goods.GOODS_FROM}" /> <input type="hidden" name="form[goods_mod_id]" value="{index_page_sale_goods.MIN_PRICE_NOW_ID}" /> <div class="product-image"> <a href="{index_page_sale_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_sale_goods.NAME}" class="product-img"> <img class="goods-image-small" src="{% IF index_page_sale_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=cosiness{% ELSE %}{index_page_sale_goods.IMAGE_MEDIUM}{% ENDIF %}" alt="{index_page_sale_goods.NAME}" title="{index_page_sale_goods.NAME}" itemprop="image"> </a> <div class="icon"> {% IF index_page_sale_goods.IS_NEW %} <span class="ico-new">Новинка</span> {% ELSEIF index_page_sale_goods.IS_TOP %} <span class="ico-best">Хит</span> {% ENDIF %} {% IF index_page_sale_goods.MAX_DISCOUNT %} <span class="ico-sale">Скидка</span> {% ENDIF %} </div> <div class="actions {% IF TARIFF_FEATURE_GOODS_COMPARE && SETTINGS_COMPARE_DISABLE=1 %}compare-off{% ENDIF %}"> <div class="add-to-links"> <!-- Если есть возможность добавить товар в избранное --> {% IF index_page_sale_goods.IS_HAS_IN_FAVORITES_LIST %} <a class="add-wishlist added button button2" data-action-is-add="0" data-action-add-url="{FAVORITES_ADD_URL}" data-action-delete-url="{FAVORITES_DELETE_URL}" data-action-add-title="Добавить «{index_page_sale_goods.NAME}» в избранное" data-action-delete-title="Убрать «{index_page_sale_goods.NAME}» из избранного" data-add-tooltip="В Избранное" data-del-tooltip="Убрать из избранного" data-tooltip="Убрать из избранного" title="Убрать «{index_page_sale_goods.NAME}» из избранного" href="{FAVORITES_DELETE_URL}?id={index_page_sale_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}" rel="nofollow" ><i class="fa fa-heart"></i></a> {% ELSE %} <a class="add-wishlist button button2" data-action-is-add="1" data-action-add-url="{FAVORITES_ADD_URL}" data-action-delete-url="{FAVORITES_DELETE_URL}" data-action-add-title="Добавить «{index_page_sale_goods.NAME}» в избранное" data-action-delete-title="Убрать «{index_page_sale_goods.NAME}» из избранного" data-add-tooltip="В Избранное" data-del-tooltip="Убрать из избранного" data-tooltip="В Избранное" title="Добавить «{index_page_sale_goods.NAME}» в избранное" href="{FAVORITES_ADD_URL}?id={index_page_sale_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}" href="{FAVORITES_ADD_URL}?id={index_page_sale_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}" rel="nofollow" ><i class="fa fa-heart"></i></a> {% ENDIF %} <!-- END Если есть возможность добавить товар в избранное --> <!-- Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина --> {% IF TARIFF_FEATURE_GOODS_COMPARE && SETTINGS_COMPARE_DISABLE=0 %} {% IF index_page_sale_goods.IS_HAS_IN_COMPARE_LIST %} <a class="add-compare added button button2" data-action-is-add="0" data-action-add-url="{COMPARE_ADD_URL}" data-action-delete-url="{COMPARE_DELETE_URL}" data-action-add-title="Добавить «{index_page_sale_goods.NAME}» в список сравнения с другими товарами" data-action-delete-title="Убрать «{index_page_sale_goods.NAME}» из списка сравнения с другими товарами" data-prodname="{index_page_sale_goods.NAME}" data-produrl="{index_page_sale_goods.URL}" data-id="{index_page_sale_goods.ID}" data-mod-id="{index_page_sale_goods.MIN_PRICE_NOW_ID}" data-add-tooltip="В Сравнение" data-del-tooltip="Убрать из сравнения" data-tooltip="Убрать из сравнения" title="Убрать «{index_page_sale_goods.NAME}» из списка сравнения с другими товарами" href="{COMPARE_DELETE_URL}?id={index_page_sale_goods.MIN_PRICE_NOW_ID}&from={index_page_sale_goods.GOODS_FROM}&return_to={CURRENT_URL | urlencode}" rel="nofollow" ><i class="fa fa-retweet"></i></a> {% ELSE %} <a class="add-compare button button2" data-action-is-add="1" data-action-add-url="{COMPARE_ADD_URL}" data-action-delete-url="{COMPARE_DELETE_URL}" data-action-add-title="Добавить «{index_page_sale_goods.NAME}» в список сравнения с другими товарами" data-action-delete-title="Убрать «{index_page_sale_goods.NAME}» из списка сравнения с другими товарами" data-prodname="{index_page_sale_goods.NAME}" data-produrl="{index_page_sale_goods.URL}" data-id="{index_page_sale_goods.ID}" data-mod-id="{index_page_sale_goods.MIN_PRICE_NOW_ID}" data-add-tooltip="В Сравнение" data-del-tooltip="Убрать из сравнения" data-tooltip="В Сравнение" title="Добавить «{index_page_sale_goods.NAME}» в список сравнения с другими товарами" href="{COMPARE_ADD_URL}?id={index_page_sale_goods.MIN_PRICE_NOW_ID}&from={index_page_sale_goods.GOODS_FROM}&return_to={CURRENT_URL | urlencode}" rel="nofollow" ><i class="fa fa-retweet"></i></a> {% ENDIF %} {% ENDIF %} <!-- END Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина --> <a class="quickview button button2" href="{index_page_sale_goods.URL_MIN_PRICE_NOW}" title="Быстрый просмотр «{index_page_sale_goods.NAME}»" data-tooltip="Быстрый просмотр" rel="nofollow"><i class="fa fa-eye"></i></a> </div> <div class="addtocart"> {% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE && index_page_sale_goods.MAX_REST_VALUE=0 %} <div class="empty button button2" title="В корзину" data-tooltip="В корзину"><span class="label">Нет в наличии</span></div> {% ELSE %} <!--a class="add-cart quick button button2" title="Быстро оформить заказ" rel="nofollow" href="{CART_ADD_GOODS_MODIFICATION_URL | url_amp}?hash={HASH | url_amp}&form%5Bgoods_from%5D={index_page_sale_goods.GOODS_FROM}&form%5Bgoods_mod_id%5D={index_page_sale_goods.MIN_PRICE_NOW_ID}"><span class="label"><i class="fa fa-shopping-cart"></i>В корзину</span></a--> <a class="add-cart button button2" title="В корзину" data-tooltip="В корзину" rel="nofollow" href="{CART_ADD_GOODS_MODIFICATION_URL | url_amp}?hash={HASH | url_amp}&form%5Bgoods_from%5D={index_page_sale_goods.GOODS_FROM}&form%5Bgoods_mod_id%5D={index_page_sale_goods.MIN_PRICE_NOW_ID}"><span class="label"><i class="fa fa-shopping-cart"></i>В корзину</span></a> {% ENDIF %} </div> </div> </div> <div class="product-shop"> <meta itemprop="name" content="{index_page_sale_goods.NAME}"> <meta itemprop="description" content="{% IF index_page_sale_goods.DESCRIPTION_SHORT %}{index_page_sale_goods.DESCRIPTION_SHORT}{% ELSE %}Описание отсутствует{% ENDIF %}"> <div class="product-name"><a href="{index_page_sale_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_sale_goods.NAME}" itemprop="url">{index_page_sale_goods.NAME}</a></div> <div class="price-box" itemprop="offers" itemscope itemtype="https://schema.org/Offer"> <meta itemprop="priceCurrency" content="{CURRENCY_CHAR_CODE}"/> {% IF index_page_sale_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT>index_page_sale_goods.MIN_PRICE_NOW %} <span class="price old-price {CURRENCY_CHAR_CODE}">{index_page_sale_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT | money_format}</span> {% ELSEIF index_page_sale_goods.MIN_PRICE_OLD>index_page_sale_goods.MIN_PRICE_NOW %} <span class="price old-price {CURRENCY_CHAR_CODE}">{index_page_sale_goods.MIN_PRICE_OLD | money_format}</span> {% ENDIF %} <span class="price {CURRENCY_CHAR_CODE}" itemprop="price" content="{index_page_sale_goods.MIN_PRICE_NOW}">{index_page_sale_goods.MIN_PRICE_NOW | money_format}</span> </div> <div class="ratings"> <a href="{index_page_sale_goods.URL | url_amp}" title="Перейти к отзывам"> <div class="rating-box"> {% IF index_page_sale_goods.OPINION_RATING_VALUE %} <span itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating"> <meta itemprop="worstRating" content = "1"> <meta itemprop="bestRating" content = "10"> <meta itemprop="ratingValue" content = "{index_page_sale_goods.OPINION_RATING_VALUE}"> <meta itemprop="reviewCount" content = "{index_page_sale_goods.OPINION_RATING_CNT_ALL}"> <div class="rating" style="width:{index_page_sale_goods.OPINION_RATING_VALUE}0%" alt="{index_page_sale_goods.OPINION_RATING_VALUE}" title="Рейтинг товара"></div> </span> {% ELSE %} <div class="rating" style="width:0%" alt="Рейтинг не определён" title="Рейтинг не определён"></div> {% ENDIF %} </div> </a> </div> </div> </form> </div> </div> {% ENDFOR %} </div> <div class="showAll button"><span>Показать все</span></div> </div> {% ENDIF %}
Найдите в Редакторе шаблонов --- main.js данный код:
$('#producttabs .pdt-sale .products-grid .item:lt(6), #producttabs .pdt-new .products-grid .item:lt(6), #producttabs .pdt-best .products-grid .item:lt(6)').show();
Замените его на:
$('#producttabs .pdt-sale .products-grid .item:lt(6), #producttabs .pdt-new .products-grid .item:lt(6), #producttabs .pdt-best .products-grid .item:lt(6), #producttabs .pdt-sale1 .products-grid .item:lt(6)').show();