Михаил DM (15 Апрель 2018 - 12:33) писал:
Добрый день.
Огромное спасибо, все получилось.
Далее, хотелось бы для оригинальности поработать с разделами:
1.)
Слайд № 16.png
т.е. должно получится вот такая главная страница:
Слайд № 17.png
2.)
И продолжении предыдущего письма, мне необходимо
добавить блок новостей на главную в таком формате:
Слайд № 18.png
3.) Чуть подредактировать:
чтобы получилось вот так:
Заранее спасибо за помощь.
Здравствуйте, извините за долгий ответ.
1. Если необходимо разместить блоки "Новинки", "Хиты продаж" и "Товары на главной", друг под другом, то найдите в шаблоне hTML код
{% IF index_page_goods_empty=0 || index_page_new_goods_empty=0 || index_page_favorites_goods_empty=0 %}
<div id="producttabs">
<ul class="pdt-nav">
{% IFNOT index_page_goods_empty %}<li class="item-nav tab-nav-actived" data-href="pdt-sale"><span>На главной</span></li>{% ENDIF %}
{% IFNOT index_page_new_goods_empty %}<li class="item-nav {% IF index_page_goods_empty=1 %}tab-nav-actived{% ENDIF %}" data-href="pdt-new"><span>Новинки</span></li>{% ENDIF %}
{% IFNOT index_page_favorites_goods_empty %}<li class="item-nav {% IF index_page_goods_empty=1 && index_page_new_goods_empty=1 %}tab-nav-actived{% ENDIF %}" data-href="pdt-best"><span>Хиты продаж</span></li>{% ENDIF %}
</ul>
<div class="pdt-container row">
{% IFNOT index_page_goods_empty %}
<div class="pdt-content tab-content-actived pdt-sale">
<div class="pdt-list products-grid">
{% FOR index_page_goods %}
<div class="item col-sm-4 col-sms-6 col-smb-12 effect-bounceIn">
<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_goods.MIN_PRICE_NOW_ID} goodsListForm">
<input type="hidden" name="hash" value="{HASH}" />
<input type="hidden" name="form[goods_from]" value="{index_page_goods.GOODS_FROM}" />
<input type="hidden" name="form[goods_mod_id]" value="{index_page_goods.MIN_PRICE_NOW_ID}" />
<div class="item-info">
<div class="product-name"><a href="{index_page_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_goods.NAME}" itemprop="url">{index_page_goods.NAME}</a></div>
<meta itemprop="name" content="{index_page_goods.NAME}">
<meta itemprop="description" content="{% IF index_page_goods.DESCRIPTION_SHORT %}{index_page_goods.DESCRIPTION_SHORT}{% ELSE %}Описание отсутствует{% ENDIF %}">
<div class="price-box" itemprop="offers" itemscope itemtype="https://schema.org/Offer">
<meta itemprop="priceCurrency" content="{CURRENCY_CHAR_CODE}"/>
{% IF index_page_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT>index_page_goods.MIN_PRICE_NOW %}
<p class="old-price">
<span class="price {CURRENCY_CHAR_CODE}">{index_page_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT | money_format}</span>
</p>
{% ELSEIF index_page_goods.MIN_PRICE_OLD>index_page_goods.MIN_PRICE_NOW %}
<p class="old-price">
<span class="price {CURRENCY_CHAR_CODE}">{index_page_goods.MIN_PRICE_OLD | money_format}</span>
</p>
{% ENDIF %}
<p class="special-price">
<span class="price {CURRENCY_CHAR_CODE}" itemprop="price" content="{index_page_goods.MIN_PRICE_NOW}">{index_page_goods.MIN_PRICE_NOW | money_format}</span>
</p>
</div>
<div class="ratings">
<div class="rating-box">
{% IF index_page_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_goods.OPINION_RATING_VALUE}">
<meta itemprop="reviewCount" content = "{index_page_goods.OPINION_RATING_CNT_ALL}">
<div class="rating" style="width:{index_page_goods.OPINION_RATING_VALUE}0%" alt="{index_page_goods.OPINION_RATING_VALUE}" title="Рейтинг товара"></div>
</span>
{% ELSE %}
<div class="rating" style="width:0%" alt="Рейтинг не определён" title="Рейтинг не определён"></div>
{% ENDIF %}
</div>
</div>
</div>
<div class="item-img">
<div class="ico-product">
{% IF index_page_goods.IS_NEW %}
<span class="ico-new">Новинка</span>
{% ELSEIF index_page_goods.IS_TOP %}
<span class="ico-best">Хит</span>
{% ENDIF %}
{% IF index_page_goods.MAX_DISCOUNT %}
<span class="ico-sale">Скидка</span>
{% ENDIF %}
</div>
<a href="{index_page_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_goods.NAME}" class="product-image">
<img src="{% IF index_page_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=sport{% ELSE %}{index_page_goods.IMAGE_MEDIUM}{% ENDIF %}" class="goods-image-small" alt="{index_page_goods.NAME}" title="{index_page_goods.NAME}" itemprop="image">
</a>
</div>
<div class="actions {% IF TARIFF_FEATURE_GOODS_COMPARE && SETTINGS_COMPARE_DISABLE=1 %}compare-off{% ENDIF %} {% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE %}{% IF index_page_goods.MAX_REST_VALUE=0 %}empty{% ENDIF %}{% ENDIF %}">
<!--a class="add-cart quick button" title="Быстро оформить заказ" href="{CART_ADD_GOODS_MODIFICATION_URL | url_amp}?hash={HASH | url_amp}&form%5Bgoods_from%5D={index_page_goods.GOODS_FROM}&form%5Bgoods_mod_id%5D={index_page_goods.MIN_PRICE_NOW_ID}"></a-->
<a class="add-cart button" title="В корзину" href="{CART_ADD_GOODS_MODIFICATION_URL | url_amp}?hash={HASH | url_amp}&form%5Bgoods_from%5D={index_page_goods.GOODS_FROM}&form%5Bgoods_mod_id%5D={index_page_goods.MIN_PRICE_NOW_ID}"><i class="fa fa-shopping-cart"></i></a>
<ul class="add-to-links">
<li class="wishlist">
<!-- Если есть возможность добавить товар в избранное -->
{% IF index_page_goods.IS_HAS_IN_FAVORITES_LIST %}
<a class="add-wishlist added btn-addto"
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_goods.NAME}» в избранное"
data-action-delete-title="Убрать «{index_page_goods.NAME}» из избранного"
title="Убрать «{index_page_goods.NAME}» из избранного"
href="{FAVORITES_DELETE_URL}?id={index_page_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}"
><i class="fa fa-heart"></i></a>
{% ELSE %}
<a class="add-wishlist btn-addto"
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_goods.NAME}» в избранное"
data-action-delete-title="Убрать «{index_page_goods.NAME}» из избранного"
title="Добавить «{index_page_goods.NAME}» в избранное" href="{FAVORITES_ADD_URL}?id={index_page_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}"
><i class="fa fa-heart"></i></a>
{% ENDIF %}
<!-- END Если есть возможность добавить товар в избранное -->
</li>
<li class="compare">
<!-- Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина -->
{% IF TARIFF_FEATURE_GOODS_COMPARE && SETTINGS_COMPARE_DISABLE=0 %}
{% IF index_page_goods.IS_HAS_IN_COMPARE_LIST %}
<a class="add-compare added btn-addto"
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_goods.NAME}» в список сравнения с другими товарами"
data-action-delete-title="Убрать «{index_page_goods.NAME}» из списка сравнения с другими товарами"
data-prodname="{index_page_goods.NAME}"
data-produrl="{index_page_goods.URL}"
data-id="{index_page_goods.ID}"
data-mod-id="{index_page_goods.MIN_PRICE_NOW_ID}"
title="Убрать «{index_page_goods.NAME}» из списка сравнения с другими товарами"
href="{COMPARE_DELETE_URL}?id={index_page_goods.MIN_PRICE_NOW_ID}&from={index_page_goods.GOODS_FROM}&return_to={CURRENT_URL | urlencode}"
><i class="fa fa-retweet"></i></a>
{% ELSE %}
<a class="add-compare btn-addto"
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_goods.NAME}» в список сравнения с другими товарами"
data-action-delete-title="Убрать «{index_page_goods.NAME}» из списка сравнения с другими товарами"
data-prodname="{index_page_goods.NAME}"
data-produrl="{index_page_goods.URL}"
data-id="{index_page_goods.ID}"
data-mod-id="{index_page_goods.MIN_PRICE_NOW_ID}"
title="Добавить «{index_page_goods.NAME}» в список сравнения с другими товарами"
href="{COMPARE_ADD_URL}?id={index_page_goods.MIN_PRICE_NOW_ID}&from={index_page_goods.GOODS_FROM}&return_to={CURRENT_URL | urlencode}"
><i class="fa fa-retweet"></i></a>
{% ENDIF %}
{% ENDIF %}
<!-- END Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина -->
</li>
</ul>
</div>
</form>
</div>
</div>
{% ENDFOR %}
<div class="button-load">
<div class="loadGoods button" title="Показать все">Показать все</div>
</div>
</div>
</div>
{% ENDIF %}
{% IFNOT index_page_new_goods_empty %}
<div class="pdt-content {% IF index_page_goods_empty=1 %}tab-content-actived{% ENDIF %} pdt-new">
<div class="pdt-list products-grid">
{% FOR index_page_new_goods %}
<div class="item col-sm-4 col-sms-6 col-smb-12 effect-bounceIn">
<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_new_goods.MIN_PRICE_NOW_ID} goodsListForm">
<input type="hidden" name="hash" value="{HASH}" />
<input type="hidden" name="form[goods_from]" value="{index_page_new_goods.GOODS_FROM}" />
<input type="hidden" name="form[goods_mod_id]" value="{index_page_new_goods.MIN_PRICE_NOW_ID}" />
<div class="item-info">
<div class="product-name"><a href="{index_page_new_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_new_goods.NAME}" itemprop="url">{index_page_new_goods.NAME}</a></div>
<meta itemprop="name" content="{index_page_new_goods.NAME}">
<meta itemprop="description" content="{% IF index_page_new_goods.DESCRIPTION_SHORT %}{index_page_new_goods.DESCRIPTION_SHORT}{% ELSE %}Описание отсутствует{% ENDIF %}">
<div class="price-box" itemprop="offers" itemscope itemtype="https://schema.org/Offer">
<meta itemprop="priceCurrency" content="{CURRENCY_CHAR_CODE}"/>
{% IF index_page_new_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT>index_page_new_goods.MIN_PRICE_NOW %}
<p class="old-price">
<span class="price {CURRENCY_CHAR_CODE}">{index_page_new_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT | money_format}</span>
</p>
{% ELSEIF index_page_new_goods.MIN_PRICE_OLD>index_page_new_goods.MIN_PRICE_NOW %}
<p class="old-price">
<span class="price {CURRENCY_CHAR_CODE}">{index_page_new_goods.MIN_PRICE_OLD | money_format}</span>
</p>
{% ENDIF %}
<p class="special-price">
<span class="price {CURRENCY_CHAR_CODE}" itemprop="price" content="{index_page_new_goods.MIN_PRICE_NOW}">{index_page_new_goods.MIN_PRICE_NOW | money_format}</span>
</p>
</div>
<div class="ratings">
<div class="rating-box">
{% IF index_page_new_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_new_goods.OPINION_RATING_VALUE}">
<meta itemprop="reviewCount" content = "{index_page_new_goods.OPINION_RATING_CNT_ALL}">
<div class="rating" style="width:{index_page_new_goods.OPINION_RATING_VALUE}0%" alt="{index_page_new_goods.OPINION_RATING_VALUE}" title="Рейтинг товара"></div>
</span>
{% ELSE %}
<div class="rating" style="width:0%" alt="Рейтинг не определён" title="Рейтинг не определён"></div>
{% ENDIF %}
</div>
</div>
</div>
<div class="item-img">
<div class="ico-product">
{% IF index_page_new_goods.IS_NEW %}
<span class="ico-new">Новинка</span>
{% ELSEIF index_page_new_goods.IS_TOP %}
<span class="ico-best">Хит</span>
{% ENDIF %}
{% IF index_page_new_goods.MAX_DISCOUNT %}
<span class="ico-sale">Скидка</span>
{% ENDIF %}
</div>
<a href="{index_page_new_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_new_goods.NAME}" class="product-image">
<img src="{% IF index_page_new_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=sport{% ELSE %}{index_page_new_goods.IMAGE_MEDIUM}{% ENDIF %}" class="goods-image-small" alt="{index_page_new_goods.NAME}" title="{index_page_new_goods.NAME}" itemprop="image">
</a>
</div>
<div class="actions {% IF TARIFF_FEATURE_GOODS_COMPARE && SETTINGS_COMPARE_DISABLE=1 %}compare-off{% ENDIF %} {% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE %}{% IF index_page_new_goods.MAX_REST_VALUE=0 %}empty{% ENDIF %}{% ENDIF %}">
<!--a class="add-cart quick button" title="Быстро оформить заказ" href="{CART_ADD_GOODS_MODIFICATION_URL | url_amp}?hash={HASH | url_amp}&form%5Bgoods_from%5D={index_page_new_goods.GOODS_FROM}&form%5Bgoods_mod_id%5D={index_page_new_goods.MIN_PRICE_NOW_ID}"></a-->
<a class="add-cart button" title="В корзину" href="{CART_ADD_GOODS_MODIFICATION_URL | url_amp}?hash={HASH | url_amp}&form%5Bgoods_from%5D={index_page_new_goods.GOODS_FROM}&form%5Bgoods_mod_id%5D={index_page_new_goods.MIN_PRICE_NOW_ID}"><i class="fa fa-shopping-cart"></i></a>
<ul class="add-to-links">
<li class="wishlist">
<!-- Если есть возможность добавить товар в избранное -->
{% IF index_page_new_goods.IS_HAS_IN_FAVORITES_LIST %}
<a class="add-wishlist added btn-addto"
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_new_goods.NAME}» в избранное"
data-action-delete-title="Убрать «{index_page_new_goods.NAME}» из избранного"
title="Убрать «{index_page_new_goods.NAME}» из избранного"
href="{FAVORITES_DELETE_URL}?id={index_page_new_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}"
><i class="fa fa-heart"></i></a>
{% ELSE %}
<a class="add-wishlist btn-addto"
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_new_goods.NAME}» в избранное"
data-action-delete-title="Убрать «{index_page_new_goods.NAME}» из избранного"
title="Добавить «{index_page_new_goods.NAME}» в избранное" href="{FAVORITES_ADD_URL}?id={index_page_new_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}"
><i class="fa fa-heart"></i></a>
{% ENDIF %}
<!-- END Если есть возможность добавить товар в избранное -->
</li>
<li class="compare">
<!-- Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина -->
{% IF TARIFF_FEATURE_GOODS_COMPARE && SETTINGS_COMPARE_DISABLE=0 %}
{% IF index_page_new_goods.IS_HAS_IN_COMPARE_LIST %}
<a class="add-compare added btn-addto"
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_new_goods.NAME}» в список сравнения с другими товарами"
data-action-delete-title="Убрать «{index_page_new_goods.NAME}» из списка сравнения с другими товарами"
data-prodname="{index_page_new_goods.NAME}"
data-produrl="{index_page_new_goods.URL}"
data-id="{index_page_new_goods.ID}"
data-mod-id="{index_page_new_goods.MIN_PRICE_NOW_ID}"
title="Убрать «{index_page_new_goods.NAME}» из списка сравнения с другими товарами"
href="{COMPARE_DELETE_URL}?id={index_page_new_goods.MIN_PRICE_NOW_ID}&from={index_page_new_goods.GOODS_FROM}&return_to={CURRENT_URL | urlencode}"
><i class="fa fa-retweet"></i></a>
{% ELSE %}
<a class="add-compare btn-addto"
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_new_goods.NAME}» в список сравнения с другими товарами"
data-action-delete-title="Убрать «{index_page_new_goods.NAME}» из списка сравнения с другими товарами"
data-prodname="{index_page_new_goods.NAME}"
data-produrl="{index_page_new_goods.URL}"
data-id="{index_page_new_goods.ID}"
data-mod-id="{index_page_new_goods.MIN_PRICE_NOW_ID}"
title="Добавить «{index_page_new_goods.NAME}» в список сравнения с другими товарами"
href="{COMPARE_ADD_URL}?id={index_page_new_goods.MIN_PRICE_NOW_ID}&from={index_page_new_goods.GOODS_FROM}&return_to={CURRENT_URL | urlencode}"
><i class="fa fa-retweet"></i></a>
{% ENDIF %}
{% ENDIF %}
<!-- END Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина -->
</li>
</ul>
</div>
</form>
</div>
</div>
{% ENDFOR %}
<div class="button-load">
<div class="loadGoods button" title="Показать все">Показать все</div>
</div>
</div>
</div>
{% ENDIF %}
{% IFNOT index_page_favorites_goods_empty %}
<div class="pdt-content {% IF index_page_goods_empty=1 && index_page_new_goods_empty=1 %}tab-content-actived{% ENDIF %} pdt-best">
<div class="pdt-list products-grid">
{% FOR index_page_favorites_goods %}
<div class="item col-sm-4 col-sms-6 col-smb-12 effect-bounceIn">
<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_favorites_goods.MIN_PRICE_NOW_ID} goodsListForm">
<input type="hidden" name="hash" value="{HASH}" />
<input type="hidden" name="form[goods_from]" value="{index_page_favorites_goods.GOODS_FROM}" />
<input type="hidden" name="form[goods_mod_id]" value="{index_page_favorites_goods.MIN_PRICE_NOW_ID}" />
<div class="item-info">
<div class="product-name"><a href="{index_page_favorites_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_favorites_goods.NAME}" itemprop="url">{index_page_favorites_goods.NAME}</a></div>
<meta itemprop="name" content="{index_page_favorites_goods.NAME}">
<meta itemprop="description" content="{% IF index_page_favorites_goods.DESCRIPTION_SHORT %}{index_page_favorites_goods.DESCRIPTION_SHORT}{% ELSE %}Описание отсутствует{% ENDIF %}">
<div class="price-box" itemprop="offers" itemscope itemtype="https://schema.org/Offer">
<meta itemprop="priceCurrency" content="{CURRENCY_CHAR_CODE}"/>
{% IF index_page_favorites_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT>index_page_favorites_goods.MIN_PRICE_NOW %}
<p class="old-price">
<span class="price {CURRENCY_CHAR_CODE}">{index_page_favorites_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT | money_format}</span>
</p>
{% ELSEIF index_page_favorites_goods.MIN_PRICE_OLD>index_page_favorites_goods.MIN_PRICE_NOW %}
<p class="old-price">
<span class="price {CURRENCY_CHAR_CODE}">{index_page_favorites_goods.MIN_PRICE_OLD | money_format}</span>
</p>
{% ENDIF %}
<p class="special-price">
<span class="price {CURRENCY_CHAR_CODE}" itemprop="price" content="{index_page_favorites_goods.MIN_PRICE_NOW}">{index_page_favorites_goods.MIN_PRICE_NOW | money_format}</span>
</p>
</div>
<div class="ratings">
<div class="rating-box">
{% IF index_page_favorites_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_favorites_goods.OPINION_RATING_VALUE}">
<meta itemprop="reviewCount" content = "{index_page_favorites_goods.OPINION_RATING_CNT_ALL}">
<div class="rating" style="width:{index_page_favorites_goods.OPINION_RATING_VALUE}0%" alt="{index_page_favorites_goods.OPINION_RATING_VALUE}" title="Рейтинг товара"></div>
</span>
{% ELSE %}
<div class="rating" style="width:0%" alt="Рейтинг не определён" title="Рейтинг не определён"></div>
{% ENDIF %}
</div>
</div>
</div>
<div class="item-img">
<div class="ico-product">
{% IF index_page_favorites_goods.IS_NEW %}
<span class="ico-new">Новинка</span>
{% ELSEIF index_page_favorites_goods.IS_TOP %}
<span class="ico-best">Хит</span>
{% ENDIF %}
{% IF index_page_favorites_goods.MAX_DISCOUNT %}
<span class="ico-sale">Скидка</span>
{% ENDIF %}
</div>
<a href="{index_page_favorites_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_favorites_goods.NAME}" class="product-image">
<img src="{% IF index_page_favorites_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=sport{% ELSE %}{index_page_favorites_goods.IMAGE_MEDIUM}{% ENDIF %}" class="goods-image-small" alt="{index_page_favorites_goods.NAME}" title="{index_page_favorites_goods.NAME}" itemprop="image">
</a>
</div>
<div class="actions {% IF TARIFF_FEATURE_GOODS_COMPARE && SETTINGS_COMPARE_DISABLE=1 %}compare-off{% ENDIF %} {% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE %}{% IF index_page_favorites_goods.MAX_REST_VALUE=0 %}empty{% ENDIF %}{% ENDIF %}">
<!--a class="add-cart quick button" title="Быстро оформить заказ" href="{CART_ADD_GOODS_MODIFICATION_URL | url_amp}?hash={HASH | url_amp}&form%5Bgoods_from%5D={index_page_favorites_goods.GOODS_FROM}&form%5Bgoods_mod_id%5D={index_page_favorites_goods.MIN_PRICE_NOW_ID}"></a-->
<a class="add-cart button" title="В корзину" href="{CART_ADD_GOODS_MODIFICATION_URL | url_amp}?hash={HASH | url_amp}&form%5Bgoods_from%5D={index_page_favorites_goods.GOODS_FROM}&form%5Bgoods_mod_id%5D={index_page_favorites_goods.MIN_PRICE_NOW_ID}"><i class="fa fa-shopping-cart"></i></a>
<ul class="add-to-links">
<li class="wishlist">
<!-- Если есть возможность добавить товар в избранное -->
{% IF index_page_favorites_goods.IS_HAS_IN_FAVORITES_LIST %}
<a class="add-wishlist added btn-addto"
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_favorites_goods.NAME}» в избранное"
data-action-delete-title="Убрать «{index_page_favorites_goods.NAME}» из избранного"
title="Убрать «{index_page_favorites_goods.NAME}» из избранного"
href="{FAVORITES_DELETE_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}"
><i class="fa fa-heart"></i></a>
{% ELSE %}
<a class="add-wishlist btn-addto"
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_favorites_goods.NAME}» в избранное"
data-action-delete-title="Убрать «{index_page_favorites_goods.NAME}» из избранного"
title="Добавить «{index_page_favorites_goods.NAME}» в избранное" href="{FAVORITES_ADD_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}"
><i class="fa fa-heart"></i></a>
{% ENDIF %}
<!-- END Если есть возможность добавить товар в избранное -->
</li>
<li class="compare">
<!-- Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина -->
{% IF TARIFF_FEATURE_GOODS_COMPARE && SETTINGS_COMPARE_DISABLE=0 %}
{% IF index_page_favorites_goods.IS_HAS_IN_COMPARE_LIST %}
<a class="add-compare added btn-addto"
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_favorites_goods.NAME}» в список сравнения с другими товарами"
data-action-delete-title="Убрать «{index_page_favorites_goods.NAME}» из списка сравнения с другими товарами"
data-prodname="{index_page_favorites_goods.NAME}"
data-produrl="{index_page_favorites_goods.URL}"
data-id="{index_page_favorites_goods.ID}"
data-mod-id="{index_page_favorites_goods.MIN_PRICE_NOW_ID}"
title="Убрать «{index_page_favorites_goods.NAME}» из списка сравнения с другими товарами"
href="{COMPARE_DELETE_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&from={index_page_favorites_goods.GOODS_FROM}&return_to={CURRENT_URL | urlencode}"
><i class="fa fa-retweet"></i></a>
{% ELSE %}
<a class="add-compare btn-addto"
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_favorites_goods.NAME}» в список сравнения с другими товарами"
data-action-delete-title="Убрать «{index_page_favorites_goods.NAME}» из списка сравнения с другими товарами"
data-prodname="{index_page_favorites_goods.NAME}"
data-produrl="{index_page_favorites_goods.URL}"
data-id="{index_page_favorites_goods.ID}"
data-mod-id="{index_page_favorites_goods.MIN_PRICE_NOW_ID}"
title="Добавить «{index_page_favorites_goods.NAME}» в список сравнения с другими товарами"
href="{COMPARE_ADD_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&from={index_page_favorites_goods.GOODS_FROM}&return_to={CURRENT_URL | urlencode}"
><i class="fa fa-retweet"></i></a>
{% ENDIF %}
{% ENDIF %}
<!-- END Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина -->
</li>
</ul>
</div>
</form>
</div>
</div>
{% ENDFOR %}
<div class="button-load">
<div class="loadGoods button" title="Показать все">Показать все</div>
</div>
</div>
</div>
{% ENDIF %}
</div>
</div>
{% ENDIF %}
замените на
{% IF index_page_goods_empty=0 || index_page_new_goods_empty=0 || index_page_favorites_goods_empty=0 %}
<div id="producttabs">
<div class="pdt-container row">
{% IFNOT index_page_goods_empty %}
<ul class="pdt-nav">
<li class="item-nav " ><span>На главной</span></li>
</ul>
<div class="pdt-content tab-content-actived pdt-sale">
<div class="pdt-list products-grid">
{% FOR index_page_goods %}
<div class="item col-sm-4 col-sms-6 col-smb-12 effect-bounceIn">
<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_goods.MIN_PRICE_NOW_ID} goodsListForm">
<input type="hidden" name="hash" value="{HASH}" />
<input type="hidden" name="form[goods_from]" value="{index_page_goods.GOODS_FROM}" />
<input type="hidden" name="form[goods_mod_id]" value="{index_page_goods.MIN_PRICE_NOW_ID}" />
<div class="item-info">
<div class="product-name"><a href="{index_page_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_goods.NAME}" itemprop="url">{index_page_goods.NAME}</a></div>
<meta itemprop="name" content="{index_page_goods.NAME}">
<meta itemprop="description" content="{% IF index_page_goods.DESCRIPTION_SHORT %}{index_page_goods.DESCRIPTION_SHORT}{% ELSE %}Описание отсутствует{% ENDIF %}">
<div class="price-box" itemprop="offers" itemscope itemtype="https://schema.org/Offer">
<meta itemprop="priceCurrency" content="{CURRENCY_CHAR_CODE}"/>
{% IF index_page_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT>index_page_goods.MIN_PRICE_NOW %}
<p class="old-price">
<span class="price {CURRENCY_CHAR_CODE}">{index_page_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT | money_format}</span>
</p>
{% ELSEIF index_page_goods.MIN_PRICE_OLD>index_page_goods.MIN_PRICE_NOW %}
<p class="old-price">
<span class="price {CURRENCY_CHAR_CODE}">{index_page_goods.MIN_PRICE_OLD | money_format}</span>
</p>
{% ENDIF %}
<p class="special-price">
<span class="price {CURRENCY_CHAR_CODE}" itemprop="price" content="{index_page_goods.MIN_PRICE_NOW}">{index_page_goods.MIN_PRICE_NOW | money_format}</span>
</p>
</div>
<div class="ratings">
<div class="rating-box">
{% IF index_page_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_goods.OPINION_RATING_VALUE}">
<meta itemprop="reviewCount" content = "{index_page_goods.OPINION_RATING_CNT_ALL}">
<div class="rating" style="width:{index_page_goods.OPINION_RATING_VALUE}0%" alt="{index_page_goods.OPINION_RATING_VALUE}" title="Рейтинг товара"></div>
</span>
{% ELSE %}
<div class="rating" style="width:0%" alt="Рейтинг не определён" title="Рейтинг не определён"></div>
{% ENDIF %}
</div>
</div>
</div>
<div class="item-img">
<div class="ico-product">
{% IF index_page_goods.IS_NEW %}
<span class="ico-new">Новинка</span>
{% ELSEIF index_page_goods.IS_TOP %}
<span class="ico-best">Хит</span>
{% ENDIF %}
{% IF index_page_goods.MAX_DISCOUNT %}
<span class="ico-sale">Скидка</span>
{% ENDIF %}
</div>
<a href="{index_page_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_goods.NAME}" class="product-image">
<img src="{% IF index_page_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=sport{% ELSE %}{index_page_goods.IMAGE_MEDIUM}{% ENDIF %}" class="goods-image-small" alt="{index_page_goods.NAME}" title="{index_page_goods.NAME}" itemprop="image">
</a>
</div>
<div class="actions {% IF TARIFF_FEATURE_GOODS_COMPARE && SETTINGS_COMPARE_DISABLE=1 %}compare-off{% ENDIF %} {% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE %}{% IF index_page_goods.MAX_REST_VALUE=0 %}empty{% ENDIF %}{% ENDIF %}">
<!--a class="add-cart quick button" title="Быстро оформить заказ" href="{CART_ADD_GOODS_MODIFICATION_URL | url_amp}?hash={HASH | url_amp}&form%5Bgoods_from%5D={index_page_goods.GOODS_FROM}&form%5Bgoods_mod_id%5D={index_page_goods.MIN_PRICE_NOW_ID}"></a-->
<a class="add-cart button" title="В корзину" href="{CART_ADD_GOODS_MODIFICATION_URL | url_amp}?hash={HASH | url_amp}&form%5Bgoods_from%5D={index_page_goods.GOODS_FROM}&form%5Bgoods_mod_id%5D={index_page_goods.MIN_PRICE_NOW_ID}"><i class="fa fa-shopping-cart"></i></a>
<ul class="add-to-links">
<li class="wishlist">
<!-- Если есть возможность добавить товар в избранное -->
{% IF index_page_goods.IS_HAS_IN_FAVORITES_LIST %}
<a class="add-wishlist added btn-addto"
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_goods.NAME}» в избранное"
data-action-delete-title="Убрать «{index_page_goods.NAME}» из избранного"
title="Убрать «{index_page_goods.NAME}» из избранного"
href="{FAVORITES_DELETE_URL}?id={index_page_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}"
><i class="fa fa-heart"></i></a>
{% ELSE %}
<a class="add-wishlist btn-addto"
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_goods.NAME}» в избранное"
data-action-delete-title="Убрать «{index_page_goods.NAME}» из избранного"
title="Добавить «{index_page_goods.NAME}» в избранное" href="{FAVORITES_ADD_URL}?id={index_page_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}"
><i class="fa fa-heart"></i></a>
{% ENDIF %}
<!-- END Если есть возможность добавить товар в избранное -->
</li>
<li class="compare">
<!-- Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина -->
{% IF TARIFF_FEATURE_GOODS_COMPARE && SETTINGS_COMPARE_DISABLE=0 %}
{% IF index_page_goods.IS_HAS_IN_COMPARE_LIST %}
<a class="add-compare added btn-addto"
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_goods.NAME}» в список сравнения с другими товарами"
data-action-delete-title="Убрать «{index_page_goods.NAME}» из списка сравнения с другими товарами"
data-prodname="{index_page_goods.NAME}"
data-produrl="{index_page_goods.URL}"
data-id="{index_page_goods.ID}"
data-mod-id="{index_page_goods.MIN_PRICE_NOW_ID}"
title="Убрать «{index_page_goods.NAME}» из списка сравнения с другими товарами"
href="{COMPARE_DELETE_URL}?id={index_page_goods.MIN_PRICE_NOW_ID}&from={index_page_goods.GOODS_FROM}&return_to={CURRENT_URL | urlencode}"
><i class="fa fa-retweet"></i></a>
{% ELSE %}
<a class="add-compare btn-addto"
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_goods.NAME}» в список сравнения с другими товарами"
data-action-delete-title="Убрать «{index_page_goods.NAME}» из списка сравнения с другими товарами"
data-prodname="{index_page_goods.NAME}"
data-produrl="{index_page_goods.URL}"
data-id="{index_page_goods.ID}"
data-mod-id="{index_page_goods.MIN_PRICE_NOW_ID}"
title="Добавить «{index_page_goods.NAME}» в список сравнения с другими товарами"
href="{COMPARE_ADD_URL}?id={index_page_goods.MIN_PRICE_NOW_ID}&from={index_page_goods.GOODS_FROM}&return_to={CURRENT_URL | urlencode}"
><i class="fa fa-retweet"></i></a>
{% ENDIF %}
{% ENDIF %}
<!-- END Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина -->
</li>
</ul>
</div>
</form>
</div>
</div>
{% ENDFOR %}
<div class="button-load">
<div class="loadGoods button" title="Показать все">Показать все</div>
</div>
</div>
</div>
{% ENDIF %}
{% IFNOT index_page_new_goods_empty %}
<ul class="pdt-nav">
<li class="item-nav"><span>Новинки</span></li>
</ul>
<div class="pdt-content tab-content-actived pdt-new">
<div class="pdt-list products-grid">
{% FOR index_page_new_goods %}
<div class="item col-sm-4 col-sms-6 col-smb-12 effect-bounceIn">
<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_new_goods.MIN_PRICE_NOW_ID} goodsListForm">
<input type="hidden" name="hash" value="{HASH}" />
<input type="hidden" name="form[goods_from]" value="{index_page_new_goods.GOODS_FROM}" />
<input type="hidden" name="form[goods_mod_id]" value="{index_page_new_goods.MIN_PRICE_NOW_ID}" />
<div class="item-info">
<div class="product-name"><a href="{index_page_new_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_new_goods.NAME}" itemprop="url">{index_page_new_goods.NAME}</a></div>
<meta itemprop="name" content="{index_page_new_goods.NAME}">
<meta itemprop="description" content="{% IF index_page_new_goods.DESCRIPTION_SHORT %}{index_page_new_goods.DESCRIPTION_SHORT}{% ELSE %}Описание отсутствует{% ENDIF %}">
<div class="price-box" itemprop="offers" itemscope itemtype="https://schema.org/Offer">
<meta itemprop="priceCurrency" content="{CURRENCY_CHAR_CODE}"/>
{% IF index_page_new_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT>index_page_new_goods.MIN_PRICE_NOW %}
<p class="old-price">
<span class="price {CURRENCY_CHAR_CODE}">{index_page_new_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT | money_format}</span>
</p>
{% ELSEIF index_page_new_goods.MIN_PRICE_OLD>index_page_new_goods.MIN_PRICE_NOW %}
<p class="old-price">
<span class="price {CURRENCY_CHAR_CODE}">{index_page_new_goods.MIN_PRICE_OLD | money_format}</span>
</p>
{% ENDIF %}
<p class="special-price">
<span class="price {CURRENCY_CHAR_CODE}" itemprop="price" content="{index_page_new_goods.MIN_PRICE_NOW}">{index_page_new_goods.MIN_PRICE_NOW | money_format}</span>
</p>
</div>
<div class="ratings">
<div class="rating-box">
{% IF index_page_new_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_new_goods.OPINION_RATING_VALUE}">
<meta itemprop="reviewCount" content = "{index_page_new_goods.OPINION_RATING_CNT_ALL}">
<div class="rating" style="width:{index_page_new_goods.OPINION_RATING_VALUE}0%" alt="{index_page_new_goods.OPINION_RATING_VALUE}" title="Рейтинг товара"></div>
</span>
{% ELSE %}
<div class="rating" style="width:0%" alt="Рейтинг не определён" title="Рейтинг не определён"></div>
{% ENDIF %}
</div>
</div>
</div>
<div class="item-img">
<div class="ico-product">
{% IF index_page_new_goods.IS_NEW %}
<span class="ico-new">Новинка</span>
{% ELSEIF index_page_new_goods.IS_TOP %}
<span class="ico-best">Хит</span>
{% ENDIF %}
{% IF index_page_new_goods.MAX_DISCOUNT %}
<span class="ico-sale">Скидка</span>
{% ENDIF %}
</div>
<a href="{index_page_new_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_new_goods.NAME}" class="product-image">
<img src="{% IF index_page_new_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=sport{% ELSE %}{index_page_new_goods.IMAGE_MEDIUM}{% ENDIF %}" class="goods-image-small" alt="{index_page_new_goods.NAME}" title="{index_page_new_goods.NAME}" itemprop="image">
</a>
</div>
<div class="actions {% IF TARIFF_FEATURE_GOODS_COMPARE && SETTINGS_COMPARE_DISABLE=1 %}compare-off{% ENDIF %} {% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE %}{% IF index_page_new_goods.MAX_REST_VALUE=0 %}empty{% ENDIF %}{% ENDIF %}">
<!--a class="add-cart quick button" title="Быстро оформить заказ" href="{CART_ADD_GOODS_MODIFICATION_URL | url_amp}?hash={HASH | url_amp}&form%5Bgoods_from%5D={index_page_new_goods.GOODS_FROM}&form%5Bgoods_mod_id%5D={index_page_new_goods.MIN_PRICE_NOW_ID}"></a-->
<a class="add-cart button" title="В корзину" href="{CART_ADD_GOODS_MODIFICATION_URL | url_amp}?hash={HASH | url_amp}&form%5Bgoods_from%5D={index_page_new_goods.GOODS_FROM}&form%5Bgoods_mod_id%5D={index_page_new_goods.MIN_PRICE_NOW_ID}"><i class="fa fa-shopping-cart"></i></a>
<ul class="add-to-links">
<li class="wishlist">
<!-- Если есть возможность добавить товар в избранное -->
{% IF index_page_new_goods.IS_HAS_IN_FAVORITES_LIST %}
<a class="add-wishlist added btn-addto"
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_new_goods.NAME}» в избранное"
data-action-delete-title="Убрать «{index_page_new_goods.NAME}» из избранного"
title="Убрать «{index_page_new_goods.NAME}» из избранного"
href="{FAVORITES_DELETE_URL}?id={index_page_new_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}"
><i class="fa fa-heart"></i></a>
{% ELSE %}
<a class="add-wishlist btn-addto"
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_new_goods.NAME}» в избранное"
data-action-delete-title="Убрать «{index_page_new_goods.NAME}» из избранного"
title="Добавить «{index_page_new_goods.NAME}» в избранное" href="{FAVORITES_ADD_URL}?id={index_page_new_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}"
><i class="fa fa-heart"></i></a>
{% ENDIF %}
<!-- END Если есть возможность добавить товар в избранное -->
</li>
<li class="compare">
<!-- Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина -->
{% IF TARIFF_FEATURE_GOODS_COMPARE && SETTINGS_COMPARE_DISABLE=0 %}
{% IF index_page_new_goods.IS_HAS_IN_COMPARE_LIST %}
<a class="add-compare added btn-addto"
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_new_goods.NAME}» в список сравнения с другими товарами"
data-action-delete-title="Убрать «{index_page_new_goods.NAME}» из списка сравнения с другими товарами"
data-prodname="{index_page_new_goods.NAME}"
data-produrl="{index_page_new_goods.URL}"
data-id="{index_page_new_goods.ID}"
data-mod-id="{index_page_new_goods.MIN_PRICE_NOW_ID}"
title="Убрать «{index_page_new_goods.NAME}» из списка сравнения с другими товарами"
href="{COMPARE_DELETE_URL}?id={index_page_new_goods.MIN_PRICE_NOW_ID}&from={index_page_new_goods.GOODS_FROM}&return_to={CURRENT_URL | urlencode}"
><i class="fa fa-retweet"></i></a>
{% ELSE %}
<a class="add-compare btn-addto"
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_new_goods.NAME}» в список сравнения с другими товарами"
data-action-delete-title="Убрать «{index_page_new_goods.NAME}» из списка сравнения с другими товарами"
data-prodname="{index_page_new_goods.NAME}"
data-produrl="{index_page_new_goods.URL}"
data-id="{index_page_new_goods.ID}"
data-mod-id="{index_page_new_goods.MIN_PRICE_NOW_ID}"
title="Добавить «{index_page_new_goods.NAME}» в список сравнения с другими товарами"
href="{COMPARE_ADD_URL}?id={index_page_new_goods.MIN_PRICE_NOW_ID}&from={index_page_new_goods.GOODS_FROM}&return_to={CURRENT_URL | urlencode}"
><i class="fa fa-retweet"></i></a>
{% ENDIF %}
{% ENDIF %}
<!-- END Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина -->
</li>
</ul>
</div>
</form>
</div>
</div>
{% ENDFOR %}
<div class="button-load">
<div class="loadGoods button" title="Показать все">Показать все</div>
</div>
</div>
</div>
{% ENDIF %}
{% IFNOT index_page_favorites_goods_empty %}
<ul class="pdt-nav">
<li class="item-nav " data-href="pdt-best"><span>Хиты продаж</span></li>
</ul>
<div class="pdt-content tab-content-actived pdt-best">
<div class="pdt-list products-grid">
{% FOR index_page_favorites_goods %}
<div class="item col-sm-4 col-sms-6 col-smb-12 effect-bounceIn">
<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_favorites_goods.MIN_PRICE_NOW_ID} goodsListForm">
<input type="hidden" name="hash" value="{HASH}" />
<input type="hidden" name="form[goods_from]" value="{index_page_favorites_goods.GOODS_FROM}" />
<input type="hidden" name="form[goods_mod_id]" value="{index_page_favorites_goods.MIN_PRICE_NOW_ID}" />
<div class="item-info">
<div class="product-name"><a href="{index_page_favorites_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_favorites_goods.NAME}" itemprop="url">{index_page_favorites_goods.NAME}</a></div>
<meta itemprop="name" content="{index_page_favorites_goods.NAME}">
<meta itemprop="description" content="{% IF index_page_favorites_goods.DESCRIPTION_SHORT %}{index_page_favorites_goods.DESCRIPTION_SHORT}{% ELSE %}Описание отсутствует{% ENDIF %}">
<div class="price-box" itemprop="offers" itemscope itemtype="https://schema.org/Offer">
<meta itemprop="priceCurrency" content="{CURRENCY_CHAR_CODE}"/>
{% IF index_page_favorites_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT>index_page_favorites_goods.MIN_PRICE_NOW %}
<p class="old-price">
<span class="price {CURRENCY_CHAR_CODE}">{index_page_favorites_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT | money_format}</span>
</p>
{% ELSEIF index_page_favorites_goods.MIN_PRICE_OLD>index_page_favorites_goods.MIN_PRICE_NOW %}
<p class="old-price">
<span class="price {CURRENCY_CHAR_CODE}">{index_page_favorites_goods.MIN_PRICE_OLD | money_format}</span>
</p>
{% ENDIF %}
<p class="special-price">
<span class="price {CURRENCY_CHAR_CODE}" itemprop="price" content="{index_page_favorites_goods.MIN_PRICE_NOW}">{index_page_favorites_goods.MIN_PRICE_NOW | money_format}</span>
</p>
</div>
<div class="ratings">
<div class="rating-box">
{% IF index_page_favorites_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_favorites_goods.OPINION_RATING_VALUE}">
<meta itemprop="reviewCount" content = "{index_page_favorites_goods.OPINION_RATING_CNT_ALL}">
<div class="rating" style="width:{index_page_favorites_goods.OPINION_RATING_VALUE}0%" alt="{index_page_favorites_goods.OPINION_RATING_VALUE}" title="Рейтинг товара"></div>
</span>
{% ELSE %}
<div class="rating" style="width:0%" alt="Рейтинг не определён" title="Рейтинг не определён"></div>
{% ENDIF %}
</div>
</div>
</div>
<div class="item-img">
<div class="ico-product">
{% IF index_page_favorites_goods.IS_NEW %}
<span class="ico-new">Новинка</span>
{% ELSEIF index_page_favorites_goods.IS_TOP %}
<span class="ico-best">Хит</span>
{% ENDIF %}
{% IF index_page_favorites_goods.MAX_DISCOUNT %}
<span class="ico-sale">Скидка</span>
{% ENDIF %}
</div>
<a href="{index_page_favorites_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_favorites_goods.NAME}" class="product-image">
<img src="{% IF index_page_favorites_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=sport{% ELSE %}{index_page_favorites_goods.IMAGE_MEDIUM}{% ENDIF %}" class="goods-image-small" alt="{index_page_favorites_goods.NAME}" title="{index_page_favorites_goods.NAME}" itemprop="image">
</a>
</div>
<div class="actions {% IF TARIFF_FEATURE_GOODS_COMPARE && SETTINGS_COMPARE_DISABLE=1 %}compare-off{% ENDIF %} {% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE %}{% IF index_page_favorites_goods.MAX_REST_VALUE=0 %}empty{% ENDIF %}{% ENDIF %}">
<!--a class="add-cart quick button" title="Быстро оформить заказ" href="{CART_ADD_GOODS_MODIFICATION_URL | url_amp}?hash={HASH | url_amp}&form%5Bgoods_from%5D={index_page_favorites_goods.GOODS_FROM}&form%5Bgoods_mod_id%5D={index_page_favorites_goods.MIN_PRICE_NOW_ID}"></a-->
<a class="add-cart button" title="В корзину" href="{CART_ADD_GOODS_MODIFICATION_URL | url_amp}?hash={HASH | url_amp}&form%5Bgoods_from%5D={index_page_favorites_goods.GOODS_FROM}&form%5Bgoods_mod_id%5D={index_page_favorites_goods.MIN_PRICE_NOW_ID}"><i class="fa fa-shopping-cart"></i></a>
<ul class="add-to-links">
<li class="wishlist">
<!-- Если есть возможность добавить товар в избранное -->
{% IF index_page_favorites_goods.IS_HAS_IN_FAVORITES_LIST %}
<a class="add-wishlist added btn-addto"
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_favorites_goods.NAME}» в избранное"
data-action-delete-title="Убрать «{index_page_favorites_goods.NAME}» из избранного"
title="Убрать «{index_page_favorites_goods.NAME}» из избранного"
href="{FAVORITES_DELETE_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}"
><i class="fa fa-heart"></i></a>
{% ELSE %}
<a class="add-wishlist btn-addto"
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_favorites_goods.NAME}» в избранное"
data-action-delete-title="Убрать «{index_page_favorites_goods.NAME}» из избранного"
title="Добавить «{index_page_favorites_goods.NAME}» в избранное" href="{FAVORITES_ADD_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}"
><i class="fa fa-heart"></i></a>
{% ENDIF %}
<!-- END Если есть возможность добавить товар в избранное -->
</li>
<li class="compare">
<!-- Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина -->
{% IF TARIFF_FEATURE_GOODS_COMPARE && SETTINGS_COMPARE_DISABLE=0 %}
{% IF index_page_favorites_goods.IS_HAS_IN_COMPARE_LIST %}
<a class="add-compare added btn-addto"
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_favorites_goods.NAME}» в список сравнения с другими товарами"
data-action-delete-title="Убрать «{index_page_favorites_goods.NAME}» из списка сравнения с другими товарами"
data-prodname="{index_page_favorites_goods.NAME}"
data-produrl="{index_page_favorites_goods.URL}"
data-id="{index_page_favorites_goods.ID}"
data-mod-id="{index_page_favorites_goods.MIN_PRICE_NOW_ID}"
title="Убрать «{index_page_favorites_goods.NAME}» из списка сравнения с другими товарами"
href="{COMPARE_DELETE_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&from={index_page_favorites_goods.GOODS_FROM}&return_to={CURRENT_URL | urlencode}"
><i class="fa fa-retweet"></i></a>
{% ELSE %}
<a class="add-compare btn-addto"
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_favorites_goods.NAME}» в список сравнения с другими товарами"
data-action-delete-title="Убрать «{index_page_favorites_goods.NAME}» из списка сравнения с другими товарами"
data-prodname="{index_page_favorites_goods.NAME}"
data-produrl="{index_page_favorites_goods.URL}"
data-id="{index_page_favorites_goods.ID}"
data-mod-id="{index_page_favorites_goods.MIN_PRICE_NOW_ID}"
title="Добавить «{index_page_favorites_goods.NAME}» в список сравнения с другими товарами"
href="{COMPARE_ADD_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&from={index_page_favorites_goods.GOODS_FROM}&return_to={CURRENT_URL | urlencode}"
><i class="fa fa-retweet"></i></a>
{% ENDIF %}
{% ENDIF %}
<!-- END Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина -->
</li>
</ul>
</div>
</form>
</div>
</div>
{% ENDFOR %}
<div class="button-load">
<div class="loadGoods button" title="Показать все">Показать все</div>
</div>
</div>
</div>
{% ENDIF %}
</div>
</div>
{% ENDIF %}
далее найдите в файле main.js код
jQuery(document).ready(function($){
(function(element){
$element = $(element);
itemNav = $('.item-nav',$element);
itemContent = $('.pdt-content',$element);
itemNav.click(function(){
var $this = $(this);
if($this.hasClass('tab-nav-actived')) return false;
itemNav.removeClass('tab-nav-actived');
$this.addClass('tab-nav-actived');
var itemActive = '.'+$this.attr('data-href');
itemContent.removeClass('tab-content-actived');
$(itemActive, $element).addClass('tab-content-actived');
});
})('#producttabs');
});
замените на
// jQuery(document).ready(function($){
// (function(element){
// $element = $(element);
// itemNav = $('.item-nav',$element);
// itemContent = $('.pdt-content',$element);
// itemNav.click(function(){
// var $this = $(this);
// if($this.hasClass('tab-nav-actived')) return false;
// itemNav.removeClass('tab-nav-actived');
// $this.addClass('tab-nav-actived');
// var itemActive = '.'+$this.attr('data-href');
// itemContent.removeClass('tab-content-actived');
// $(itemActive, $element).addClass('tab-content-actived');
// });
// })('#producttabs');
// });
2. Добавьте новости в раздел Сайт-Новости и статьи, что бы могли протестировать сайт.
3 Добавьте в конец файла main.css код
.contacts .phone .ft-content img {
margin-right: 12px;
margin-left: -3px;
}