Перейти к содержимому


Карусель Товаров На Главной


  • Авторизуйтесь для ответа в теме
Сообщений в теме: 2

#1 Floyd

Floyd

    Пользователь

  • Пользователи
  • PipPip
  • 35 сообщений

Отправлено 14 Январь 2019 - 13:38

Добрый день! Можно ли сделать такую же карусель товаров на главной странице как на этом сайте? Шаблон вроде похож на "Лето"...
--
Аккаунт 420793.

#2 Vaccina

Vaccina

    Активный участник

  • Модераторы
  • 23 788 сообщений

Отправлено 15 Январь 2019 - 08:57

Здравствуйте.

Зайдите в раздел Сайт - Редактор шаблонов - HTML - найдите:
	<!-- Товары на главной, Новинки, Хиты -->
	{% IF index_page %}
	{% IF index_page_goods_empty=0 || index_page_new_goods_empty=0 || index_page_favorites_goods_empty=0 %}
	<div id="producttabs">
	  <div class="container">
		<div class="row">
		  <ul class="pdt-nav">
			{% 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 %}
			{% 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 %}

		  </ul>
		  <div class="pdt-container">
			{% 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 effect-pageLeft">
					  <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="product-hover">
							  <a href="{index_page_goods.URL | url_amp}" title="{index_page_goods.NAME}" class="product-image">
								<div class="ico-product">
								  {% IF index_page_goods.IS_NEW %}
									<span class="ico-new"><span>Новинка</span></span>
								  {% ELSEIF index_page_goods.IS_TOP %}
									<span class="ico-best"><span>Хит</span></span>
								  {% ENDIF %}
								  {% IF index_page_goods.MAX_DISCOUNT %}
									<span class="ico-sale"><span>Скидка</span></span>
								  {% ENDIF %}
								</div>
								<img src="{% IF index_page_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=summer{% ELSE %}{index_page_goods.IMAGE_SMALL}{% ENDIF %}" class="goods-image-small" alt="{index_page_goods.NAME}" title="{index_page_goods.NAME}"  itemprop="image">
							  </a>
							  <div class="add-to-links">
								<div class="wishlist">
								  <!-- Если есть возможность добавить товар в избранное -->
								  {% IF index_page_goods.IS_HAS_IN_FAVORITES_LIST %}
									<a class="add-wishlist added"
									  data-action-is-add="0"
									  data-action-add-url="{FAVORITES_ADD_URL}"
									  data-action-delete-url="{FAVORITES_DELETE_URL}"
									  data-action-add-title="Добавить &laquo;{index_page_goods.NAME}&raquo; в избранное"
									  data-action-delete-title="Убрать &laquo;{index_page_goods.NAME}&raquo; из избранного"
									  title="Убрать &laquo;{index_page_goods.NAME}&raquo; из избранного"
									  href="{FAVORITES_DELETE_URL}?id={index_page_goods.MIN_PRICE_NOW_ID}&amp;return_to={CURRENT_URL | urlencode}"
									><i class="fa fa-heart"></i></a>
								  {% ELSE %}
									<a class="add-wishlist"
									  data-action-is-add="1"
									  data-action-add-url="{FAVORITES_ADD_URL}"
									  data-action-delete-url="{FAVORITES_DELETE_URL}"
									  data-action-add-title="Добавить &laquo;{index_page_goods.NAME}&raquo; в избранное"
									  data-action-delete-title="Убрать &laquo;{index_page_goods.NAME}&raquo; из избранного"
									  title="Добавить &laquo;{index_page_goods.NAME}&raquo; в избранное" href="{FAVORITES_ADD_URL}?id={index_page_goods.MIN_PRICE_NOW_ID}&amp;return_to={CURRENT_URL | urlencode}"
									><i class="fa fa-heart"></i></a>
								  {% ENDIF %}
								  <!-- END Если есть возможность добавить товар в избранное -->
								</div>
								<div 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"
										data-action-is-add="0"
										data-action-add-url="{COMPARE_ADD_URL}"
										data-action-delete-url="{COMPARE_DELETE_URL}"
										data-action-add-title="Добавить &laquo;{index_page_goods.NAME}&raquo; в список сравнения с другими товарами"
										data-action-delete-title="Убрать &laquo;{index_page_goods.NAME}&raquo; из списка сравнения с другими товарами"
										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="Убрать &laquo;{index_page_goods.NAME}&raquo; из списка сравнения с другими товарами"
										href="{COMPARE_DELETE_URL}?id={index_page_goods.MIN_PRICE_NOW_ID}&amp;from={index_page_goods.GOODS_FROM}&amp;return_to={CURRENT_URL | urlencode}"
									  ><i class="fa fa-balance-scale"></i></a>
									{% ELSE %}
									  <a class="add-compare"
										data-action-is-add="1"
										data-action-add-url="{COMPARE_ADD_URL}"
										data-action-delete-url="{COMPARE_DELETE_URL}"
										data-action-add-title="Добавить &laquo;{index_page_goods.NAME}&raquo; в список сравнения с другими товарами"
										data-action-delete-title="Убрать &laquo;{index_page_goods.NAME}&raquo; из списка сравнения с другими товарами"
										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="Добавить &laquo;{index_page_goods.NAME}&raquo; в список сравнения с другими товарами"
										href="{COMPARE_ADD_URL}?id={index_page_goods.MIN_PRICE_NOW_ID}&amp;from={index_page_goods.GOODS_FROM}&amp;return_to={CURRENT_URL | urlencode}"
									  ><i class="fa fa-balance-scale"></i></a>
									{% ENDIF %}
								  {% ENDIF %}
								  <!-- END Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина -->
								</div>
							  </div>
							</div>
							<div class="item-info">
							  <h2 class="product-name"><a href="{index_page_goods.URL | url_amp}" title="{index_page_goods.NAME}" itemprop="url">{index_page_goods.NAME}</a></h2>
							  <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 %}
								<span class="old-price">
								  <span class="price {CURRENCY_CHAR_CODE}">{index_page_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT | money_format}</span>
								</span>
								{% ELSEIF index_page_goods.MIN_PRICE_OLD>index_page_goods.MIN_PRICE_NOW %}
								<span class="old-price">
								  <span class="price {CURRENCY_CHAR_CODE}">{index_page_goods.MIN_PRICE_OLD | money_format}</span>
								</span>
								{% ENDIF %}
								<span class="special-price">
								  {% IF index_page_goods.MIN_PRICE_NOW  =0 %}<span class="price1" itemprop="price">  По запросу </span>{% ELSE %}<span class="price {CURRENCY_CHAR_CODE}" itemprop="price" content="{index_page_goods.MIN_PRICE_NOW}">{index_page_goods.MIN_PRICE_NOW | money_format}</span>{%ENDIF%}
								</span>
							  </div>
							 
							</div>
							<div class="actions">
							  {% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE && index_page_goods.MAX_REST_VALUE=0 %}
								<span class="button">Нет в наличии</span>
							  {% ELSE %}
								<!--a class="add-cart quick button" title="Быстро оформить заказ" href="{CART_ADD_GOODS_MODIFICATION_URL | url_amp}?hash={HASH | url_amp}&amp;form%5Bgoods_from%5D={index_page_goods.GOODS_FROM}&amp;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}&amp;form%5Bgoods_from%5D={index_page_goods.GOODS_FROM}&amp;form%5Bgoods_mod_id%5D={index_page_goods.MIN_PRICE_NOW_ID}">В корзину</a>
							  {% ENDIF %}
							</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 effect-pageLeft">
					  <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="product-hover">
							  <a href="{index_page_new_goods.URL | url_amp}" title="{index_page_new_goods.NAME}" class="product-image">
								<div class="ico-product">
								  {% IF index_page_new_goods.IS_NEW %}
									<span class="ico-new"><span>Новинка</span></span>
								  {% ELSEIF index_page_new_goods.IS_TOP %}
									<span class="ico-best"><span>Хит</span></span>
								  {% ENDIF %}
								  {% IF index_page_new_goods.MAX_DISCOUNT %}
									<span class="ico-sale"><span>Скидка</span></span>
								  {% ENDIF %}
								</div>
								<img src="{% IF index_page_new_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=summer{% ELSE %}{index_page_new_goods.IMAGE_SMALL}{% ENDIF %}" class="goods-image-small" alt="{index_page_new_goods.NAME}" title="{index_page_new_goods.NAME}"  itemprop="image">
							  </a>
							  <div class="add-to-links">
								<div class="wishlist">
								  <!-- Если есть возможность добавить товар в избранное -->
								  {% IF index_page_new_goods.IS_HAS_IN_FAVORITES_LIST %}
									<a class="add-wishlist added"
									  data-action-is-add="0"
									  data-action-add-url="{FAVORITES_ADD_URL}"
									  data-action-delete-url="{FAVORITES_DELETE_URL}"
									  data-action-add-title="Добавить &laquo;{index_page_new_goods.NAME}&raquo; в избранное"
									  data-action-delete-title="Убрать &laquo;{index_page_new_goods.NAME}&raquo; из избранного"
									  title="Убрать &laquo;{index_page_new_goods.NAME}&raquo; из избранного"
									  href="{FAVORITES_DELETE_URL}?id={index_page_new_goods.MIN_PRICE_NOW_ID}&amp;return_to={CURRENT_URL | urlencode}"
									><i class="fa fa-heart"></i></a>
								  {% ELSE %}
									<a class="add-wishlist"
									  data-action-is-add="1"
									  data-action-add-url="{FAVORITES_ADD_URL}"
									  data-action-delete-url="{FAVORITES_DELETE_URL}"
									  data-action-add-title="Добавить &laquo;{index_page_new_goods.NAME}&raquo; в избранное"
									  data-action-delete-title="Убрать &laquo;{index_page_new_goods.NAME}&raquo; из избранного"
									  title="Добавить &laquo;{index_page_new_goods.NAME}&raquo; в избранное" href="{FAVORITES_ADD_URL}?id={index_page_new_goods.MIN_PRICE_NOW_ID}&amp;return_to={CURRENT_URL | urlencode}"
									><i class="fa fa-heart"></i></a>
								  {% ENDIF %}
								  <!-- END Если есть возможность добавить товар в избранное -->
								</div>
								<div 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"
										data-action-is-add="0"
										data-action-add-url="{COMPARE_ADD_URL}"
										data-action-delete-url="{COMPARE_DELETE_URL}"
										data-action-add-title="Добавить &laquo;{index_page_new_goods.NAME}&raquo; в список сравнения с другими товарами"
										data-action-delete-title="Убрать &laquo;{index_page_new_goods.NAME}&raquo; из списка сравнения с другими товарами"
										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="Убрать &laquo;{index_page_new_goods.NAME}&raquo; из списка сравнения с другими товарами"
										href="{COMPARE_DELETE_URL}?id={index_page_new_goods.MIN_PRICE_NOW_ID}&amp;from={index_page_new_goods.GOODS_FROM}&amp;return_to={CURRENT_URL | urlencode}"
									  ><i class="fa fa-balance-scale"></i></a>
									{% ELSE %}
									  <a class="add-compare"
										data-action-is-add="1"
										data-action-add-url="{COMPARE_ADD_URL}"
										data-action-delete-url="{COMPARE_DELETE_URL}"
										data-action-add-title="Добавить &laquo;{index_page_new_goods.NAME}&raquo; в список сравнения с другими товарами"
										data-action-delete-title="Убрать &laquo;{index_page_new_goods.NAME}&raquo; из списка сравнения с другими товарами"
										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="Добавить &laquo;{index_page_new_goods.NAME}&raquo; в список сравнения с другими товарами"
										href="{COMPARE_ADD_URL}?id={index_page_new_goods.MIN_PRICE_NOW_ID}&amp;from={index_page_new_goods.GOODS_FROM}&amp;return_to={CURRENT_URL | urlencode}"
									  ><i class="fa fa-balance-scale"></i></a>
									{% ENDIF %}
								  {% ENDIF %}
								  <!-- END Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина -->
								</div>
							  </div>
							</div>
							<div class="item-info">
							  <h2 class="product-name"><a href="{index_page_new_goods.URL | url_amp}" title="{index_page_new_goods.NAME}" itemprop="url">{index_page_new_goods.NAME}</a></h2>
							  <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 %}
								<span class="old-price">
								  <span class="price {CURRENCY_CHAR_CODE}">{index_page_new_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT | money_format}</span>
								</span>
								{% ELSEIF index_page_new_goods.MIN_PRICE_OLD>index_page_new_goods.MIN_PRICE_NOW %}
								<span class="old-price">
								  <span class="price {CURRENCY_CHAR_CODE}">{index_page_new_goods.MIN_PRICE_OLD | money_format}</span>
								</span>
								{% ENDIF %}
								<span 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>
								</span>
							  </div>
							  
							</div>
							<div class="actions">
							  {% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE && index_page_new_goods.MAX_REST_VALUE=0 %}
								<span class="button">Нет в наличии</span>
							  {% ELSE %}
								<!--a class="add-cart quick button" title="Быстро оформить заказ" href="{CART_ADD_GOODS_MODIFICATION_URL | url_amp}?hash={HASH | url_amp}&amp;form%5Bgoods_from%5D={index_page_new_goods.GOODS_FROM}&amp;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}&amp;form%5Bgoods_from%5D={index_page_new_goods.GOODS_FROM}&amp;form%5Bgoods_mod_id%5D={index_page_new_goods.MIN_PRICE_NOW_ID}">В корзину</a>
							  {% ENDIF %}
							</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 effect-pageLeft">
					  <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="product-hover">
							  <a href="{index_page_favorites_goods.URL | url_amp}" title="{index_page_favorites_goods.NAME}" class="product-image">
								<div class="ico-product">
								  {% IF index_page_favorites_goods.IS_NEW %}
									<span class="ico-new"><span>Новинка</span></span>
								  {% ELSEIF index_page_favorites_goods.IS_TOP %}
									<span class="ico-best"><span>Хит</span></span>
								  {% ENDIF %}
								  {% IF index_page_favorites_goods.MAX_DISCOUNT %}
									<span class="ico-sale"><span>Скидка</span></span>
								  {% ENDIF %}
								</div>
								<img src="{% IF index_page_favorites_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=summer{% ELSE %}{index_page_favorites_goods.IMAGE_SMALL}{% ENDIF %}" class="goods-image-small" alt="{index_page_favorites_goods.NAME}" title="{index_page_favorites_goods.NAME}"  itemprop="image">
							  </a>
							  <div class="add-to-links">
								<div class="wishlist">
								  <!-- Если есть возможность добавить товар в избранное -->
								  {% IF index_page_favorites_goods.IS_HAS_IN_FAVORITES_LIST %}
									<a class="add-wishlist added"
									  data-action-is-add="0"
									  data-action-add-url="{FAVORITES_ADD_URL}"
									  data-action-delete-url="{FAVORITES_DELETE_URL}"
									  data-action-add-title="Добавить &laquo;{index_page_favorites_goods.NAME}&raquo; в избранное"
									  data-action-delete-title="Убрать &laquo;{index_page_favorites_goods.NAME}&raquo; из избранного"
									  title="Убрать &laquo;{index_page_favorites_goods.NAME}&raquo; из избранного"
									  href="{FAVORITES_DELETE_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&amp;return_to={CURRENT_URL | urlencode}"
									><i class="fa fa-heart"></i></a>
								  {% ELSE %}
									<a class="add-wishlist"
									  data-action-is-add="1"
									  data-action-add-url="{FAVORITES_ADD_URL}"
									  data-action-delete-url="{FAVORITES_DELETE_URL}"
									  data-action-add-title="Добавить &laquo;{index_page_favorites_goods.NAME}&raquo; в избранное"
									  data-action-delete-title="Убрать &laquo;{index_page_favorites_goods.NAME}&raquo; из избранного"
									  title="Добавить &laquo;{index_page_favorites_goods.NAME}&raquo; в избранное" href="{FAVORITES_ADD_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&amp;return_to={CURRENT_URL | urlencode}"
									><i class="fa fa-heart"></i></a>
								  {% ENDIF %}
								  <!-- END Если есть возможность добавить товар в избранное -->
								</div>
								<div 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"
										data-action-is-add="0"
										data-action-add-url="{COMPARE_ADD_URL}"
										data-action-delete-url="{COMPARE_DELETE_URL}"
										data-action-add-title="Добавить &laquo;{index_page_favorites_goods.NAME}&raquo; в список сравнения с другими товарами"
										data-action-delete-title="Убрать &laquo;{index_page_favorites_goods.NAME}&raquo; из списка сравнения с другими товарами"
										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="Убрать &laquo;{index_page_favorites_goods.NAME}&raquo; из списка сравнения с другими товарами"
										href="{COMPARE_DELETE_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&amp;from={index_page_favorites_goods.GOODS_FROM}&amp;return_to={CURRENT_URL | urlencode}"
									  ><i class="fa fa-balance-scale"></i></a>
									{% ELSE %}
									  <a class="add-compare"
										data-action-is-add="1"
										data-action-add-url="{COMPARE_ADD_URL}"
										data-action-delete-url="{COMPARE_DELETE_URL}"
										data-action-add-title="Добавить &laquo;{index_page_favorites_goods.NAME}&raquo; в список сравнения с другими товарами"
										data-action-delete-title="Убрать &laquo;{index_page_favorites_goods.NAME}&raquo; из списка сравнения с другими товарами"
										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="Добавить &laquo;{index_page_favorites_goods.NAME}&raquo; в список сравнения с другими товарами"
										href="{COMPARE_ADD_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&amp;from={index_page_favorites_goods.GOODS_FROM}&amp;return_to={CURRENT_URL | urlencode}"
									  ><i class="fa fa-balance-scale"></i></a>
									{% ENDIF %}
								  {% ENDIF %}
								  <!-- END Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина -->
								</div>
							  </div>
							</div>
							<div class="item-info">
							  <h2 class="product-name"><a href="{index_page_favorites_goods.URL | url_amp}" title="{index_page_favorites_goods.NAME}" itemprop="url">{index_page_favorites_goods.NAME}</a></h2>
							  <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 %}
								<span class="old-price">
								  <span class="price {CURRENCY_CHAR_CODE}">{index_page_favorites_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT | money_format}</span>
								</span>
								{% ELSEIF index_page_favorites_goods.MIN_PRICE_OLD>index_page_favorites_goods.MIN_PRICE_NOW %}
								<span class="old-price">
								  <span class="price {CURRENCY_CHAR_CODE}">{index_page_favorites_goods.MIN_PRICE_OLD | money_format}</span>
								</span>
								{% ENDIF %}
								<span 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>
								</span>
							  </div>
							  
							</div>
							<div class="actions">
							  {% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE && index_page_favorites_goods.MAX_REST_VALUE=0 %}
								<span class="button">Нет в наличии</span>
							  {% ELSE %}
								<!--a class="add-cart quick button" title="Быстро оформить заказ" href="{CART_ADD_GOODS_MODIFICATION_URL | url_amp}?hash={HASH | url_amp}&amp;form%5Bgoods_from%5D={index_page_favorites_goods.GOODS_FROM}&amp;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}&amp;form%5Bgoods_from%5D={index_page_favorites_goods.GOODS_FROM}&amp;form%5Bgoods_mod_id%5D={index_page_favorites_goods.MIN_PRICE_NOW_ID}">В корзину</a>
							  {% ENDIF %}
							</div>
						</form>
					  </div>
					</div>
				  {% ENDFOR %}
				  <div class="button-load">
					<div class="loadGoods button" title="Показать все">Показать все</div>
				  </div>
				</div>
			  </div>
			{% ENDIF %}
		  </div>
		</div>
	  </div>
	</div>
	{% ENDIF %}
	{% ENDIF %}
	<!-- /END Товары на главной, Новинки, Хиты -->
    
    
    
замените на:
	<!-- Товары на главной, Новинки, Хиты -->
	{% IF index_page %}
	<!-- Товары на главной -->
  {% IFNOT index_page_goods_empty %}
	<div class="index_page_goods clear">												   
	  <div class="box-up-sell">
		<div class="block-title">
		  <h3>Товары на главной</h3>
		</div>
		<div class="navigation">
		  <a href="#" class="prev"><i class="fa fa-angle-left"></i></a>
		  <a href="#" class="next"><i class="fa fa-angle-right"></i></a>
		</div>
		<div class="up-sell-products">
		  <div class="products-grid">
			{% FOR index_page_goods %}
			<div class="item">
			  <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="product-hover">
					  <a href="{index_page_goods.URL | url_amp}" title="{index_page_goods.NAME}" class="product-image">
						<div class="ico-product">
						  {% IF index_page_goods.IS_NEW %}
							<span class="ico-new"><span>Новинка</span></span>
						  {% ELSEIF index_page_goods.IS_TOP %}
							<span class="ico-best"><span>Хит</span></span>
						  {% ENDIF %}
						  {% IF index_page_goods.MAX_DISCOUNT %}
							<span class="ico-sale"><span>Скидка</span></span>
						  {% ENDIF %}
						</div>
						<img class="lazyOwl goods-image-small" data-src="{% IF index_page_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=urban{% ELSE %}{index_page_goods.IMAGE_MEDIUM}{% ENDIF %}" alt="{index_page_goods.NAME}" title="{index_page_goods.NAME}"  itemprop="image">
					  </a>
					  <div class="add-to-links">
						<div class="wishlist">
						  <!-- Если есть возможность добавить товар в избранное -->
						  {% IF index_page_goods.IS_HAS_IN_FAVORITES_LIST %}
							<a class="add-wishlist added"
							  data-action-is-add="0"
							  data-action-add-url="{FAVORITES_ADD_URL}"
							  data-action-delete-url="{FAVORITES_DELETE_URL}"
							  data-action-add-title="Добавить &laquo;{index_page_goods.NAME}&raquo; в избранное"
							  data-action-delete-title="Убрать &laquo;{index_page_goods.NAME}&raquo; из избранного"
							  title="Убрать &laquo;{index_page_goods.NAME}&raquo; из избранного"
							  href="{FAVORITES_DELETE_URL}?id={index_page_goods.MIN_PRICE_NOW_ID}&amp;return_to={CURRENT_URL | urlencode}"
							><i class="fa fa-heart"></i></a>
						  {% ELSE %}
							<a class="add-wishlist"
							  data-action-is-add="1"
							  data-action-add-url="{FAVORITES_ADD_URL}"
							  data-action-delete-url="{FAVORITES_DELETE_URL}"
							  data-action-add-title="Добавить &laquo;{index_page_goods.NAME}&raquo; в избранное"
							  data-action-delete-title="Убрать &laquo;{index_page_goods.NAME}&raquo; из избранного"
							  title="Добавить &laquo;{index_page_goods.NAME}&raquo; в избранное" href="{FAVORITES_ADD_URL}?id={index_page_goods.MIN_PRICE_NOW_ID}&amp;return_to={CURRENT_URL | urlencode}"
							><i class="fa fa-heart"></i></a>
						  {% ENDIF %}
						  <!-- END Если есть возможность добавить товар в избранное -->
						</div>
						<div 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"
								data-action-is-add="0"
								data-action-add-url="{COMPARE_ADD_URL}"
								data-action-delete-url="{COMPARE_DELETE_URL}"
								data-action-add-title="Добавить &laquo;{index_page_goods.NAME}&raquo; в список сравнения с другими товарами"
								data-action-delete-title="Убрать &laquo;{index_page_goods.NAME}&raquo; из списка сравнения с другими товарами"
								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="Убрать &laquo;{index_page_goods.NAME}&raquo; из списка сравнения с другими товарами"
								href="{COMPARE_DELETE_URL}?id={index_page_goods.MIN_PRICE_NOW_ID}&amp;from={index_page_goods.GOODS_FROM}&amp;return_to={CURRENT_URL | urlencode}"
							  ><i class="fa fa-balance-scale"></i></a>
							{% ELSE %}
							  <a class="add-compare"
								data-action-is-add="1"
								data-action-add-url="{COMPARE_ADD_URL}"
								data-action-delete-url="{COMPARE_DELETE_URL}"
								data-action-add-title="Добавить &laquo;{index_page_goods.NAME}&raquo; в список сравнения с другими товарами"
								data-action-delete-title="Убрать &laquo;{index_page_goods.NAME}&raquo; из списка сравнения с другими товарами"
								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="Добавить &laquo;{index_page_goods.NAME}&raquo; в список сравнения с другими товарами"
								href="{COMPARE_ADD_URL}?id={index_page_goods.MIN_PRICE_NOW_ID}&amp;from={index_page_goods.GOODS_FROM}&amp;return_to={CURRENT_URL | urlencode}"
							  ><i class="fa fa-balance-scale"></i></a>
							{% ENDIF %}
						  {% ENDIF %}
						  <!-- END Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина -->
						</div>
					  </div>
					</div>
					<div class="item-info">
					  <h2 class="product-name"><a href="{index_page_goods.URL | url_amp}" title="{index_page_goods.NAME}" itemprop="url">{index_page_goods.NAME}</a></h2>
					  <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 %}
						<span class="old-price">
						  <span class="price {CURRENCY_CHAR_CODE}">{index_page_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT | money_format}</span>
						</span>
						{% ELSEIF index_page_goods.MIN_PRICE_OLD>index_page_goods.MIN_PRICE_NOW %}
						<span class="old-price">
						  <span class="price {CURRENCY_CHAR_CODE}">{index_page_goods.MIN_PRICE_OLD | money_format}</span>
						</span>
						{% ENDIF %}
						<span class="special-price">
						  {% IF index_page_goods.MIN_PRICE_NOW =0 %}<span class="price1" itemprop="price">  Цена по запросу </span>{% ELSE %}<span class="price {CURRENCY_CHAR_CODE}" itemprop="price" content="{index_page_goods.MIN_PRICE_NOW}">{index_page_goods.MIN_PRICE_NOW | money_format}</span>{%ENDIF%}
						</span>
					  </div>
					  <div class="rating-hover">
					  <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>
					<div class="actions">
					  {% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE && index_page_goods.MAX_REST_VALUE=0 %}
						<span class="button">Нет в наличии</span>
					  {% ELSE %}
						<!--a class="add-cart quick button" title="Быстро оформить заказ">В корзину</a-->
						<a class="add-cart button" title="В корзину">В корзину</a>
					  {% ENDIF %}
					</div>
				</form>
			  </div>
			</div>
			{% ENDFOR %}
		  </div>
		</div>
	  </div>
	</div>
  {% ENDIF %}
	<!-- Новинки -->
  {% IFNOT index_page_new_goods_empty %}
	<div class="index_page_new_goods clear">												   
	  <div class="box-up-sell">
		<div class="block-title">
		  <h3>Новинки</h3>
		</div>
		<div class="navigation">
		  <a href="#" class="prev"><i class="fa fa-angle-left"></i></a>
		  <a href="#" class="next"><i class="fa fa-angle-right"></i></a>
		</div>
		<div class="up-sell-products">
		  <div class="products-grid">
			{% FOR index_page_new_goods %}
			<div class="item">
			  <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="product-hover">
					  <a href="{index_page_new_goods.URL | url_amp}" title="{index_page_new_goods.NAME}" class="product-image">
						<div class="ico-product">
						  {% IF index_page_new_goods.IS_NEW %}
							<span class="ico-new"><span>Новинка</span></span>
						  {% ELSEIF index_page_new_goods.IS_TOP %}
							<span class="ico-best"><span>Хит</span></span>
						  {% ENDIF %}
						  {% IF index_page_new_goods.MAX_DISCOUNT %}
							<span class="ico-sale"><span>Скидка</span></span>
						  {% ENDIF %}
						</div>
						<img class="lazyOwl goods-image-small" data-src="{% IF index_page_new_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=urban{% ELSE %}{index_page_new_goods.IMAGE_MEDIUM}{% ENDIF %}" alt="{index_page_new_goods.NAME}" title="{index_page_new_goods.NAME}"  itemprop="image">
					  </a>
					  <div class="add-to-links">
						<div class="wishlist">
						  <!-- Если есть возможность добавить товар в избранное -->
						  {% IF index_page_new_goods.IS_HAS_IN_FAVORITES_LIST %}
							<a class="add-wishlist added"
							  data-action-is-add="0"
							  data-action-add-url="{FAVORITES_ADD_URL}"
							  data-action-delete-url="{FAVORITES_DELETE_URL}"
							  data-action-add-title="Добавить &laquo;{index_page_new_goods.NAME}&raquo; в избранное"
							  data-action-delete-title="Убрать &laquo;{index_page_new_goods.NAME}&raquo; из избранного"
							  title="Убрать &laquo;{index_page_new_goods.NAME}&raquo; из избранного"
							  href="{FAVORITES_DELETE_URL}?id={index_page_new_goods.MIN_PRICE_NOW_ID}&amp;return_to={CURRENT_URL | urlencode}"
							><i class="fa fa-heart"></i></a>
						  {% ELSE %}
							<a class="add-wishlist"
							  data-action-is-add="1"
							  data-action-add-url="{FAVORITES_ADD_URL}"
							  data-action-delete-url="{FAVORITES_DELETE_URL}"
							  data-action-add-title="Добавить &laquo;{index_page_new_goods.NAME}&raquo; в избранное"
							  data-action-delete-title="Убрать &laquo;{index_page_new_goods.NAME}&raquo; из избранного"
							  title="Добавить &laquo;{index_page_new_goods.NAME}&raquo; в избранное" href="{FAVORITES_ADD_URL}?id={index_page_new_goods.MIN_PRICE_NOW_ID}&amp;return_to={CURRENT_URL | urlencode}"
							><i class="fa fa-heart"></i></a>
						  {% ENDIF %}
						  <!-- END Если есть возможность добавить товар в избранное -->
						</div>
						<div 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"
								data-action-is-add="0"
								data-action-add-url="{COMPARE_ADD_URL}"
								data-action-delete-url="{COMPARE_DELETE_URL}"
								data-action-add-title="Добавить &laquo;{index_page_new_goods.NAME}&raquo; в список сравнения с другими товарами"
								data-action-delete-title="Убрать &laquo;{index_page_new_goods.NAME}&raquo; из списка сравнения с другими товарами"
								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="Убрать &laquo;{index_page_new_goods.NAME}&raquo; из списка сравнения с другими товарами"
								href="{COMPARE_DELETE_URL}?id={index_page_new_goods.MIN_PRICE_NOW_ID}&amp;from={index_page_new_goods.GOODS_FROM}&amp;return_to={CURRENT_URL | urlencode}"
							  ><i class="fa fa-balance-scale"></i></a>
							{% ELSE %}
							  <a class="add-compare"
								data-action-is-add="1"
								data-action-add-url="{COMPARE_ADD_URL}"
								data-action-delete-url="{COMPARE_DELETE_URL}"
								data-action-add-title="Добавить &laquo;{index_page_new_goods.NAME}&raquo; в список сравнения с другими товарами"
								data-action-delete-title="Убрать &laquo;{index_page_new_goods.NAME}&raquo; из списка сравнения с другими товарами"
								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="Добавить &laquo;{index_page_new_goods.NAME}&raquo; в список сравнения с другими товарами"
								href="{COMPARE_ADD_URL}?id={index_page_new_goods.MIN_PRICE_NOW_ID}&amp;from={index_page_new_goods.GOODS_FROM}&amp;return_to={CURRENT_URL | urlencode}"
							  ><i class="fa fa-balance-scale"></i></a>
							{% ENDIF %}
						  {% ENDIF %}
						  <!-- END Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина -->
						</div>
					  </div>
					</div>
					<div class="item-info">
					  <h2 class="product-name"><a href="{index_page_new_goods.URL | url_amp}" title="{index_page_new_goods.NAME}" itemprop="url">{index_page_new_goods.NAME}</a></h2>
					  <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 %}
						<span class="old-price">
						  <span class="price {CURRENCY_CHAR_CODE}">{index_page_new_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT | money_format}</span>
						</span>
						{% ELSEIF index_page_new_goods.MIN_PRICE_OLD>index_page_new_goods.MIN_PRICE_NOW %}
						<span class="old-price">
						  <span class="price {CURRENCY_CHAR_CODE}">{index_page_new_goods.MIN_PRICE_OLD | money_format}</span>
						</span>
						{% ENDIF %}
						<span class="special-price">
						  {% IF index_page_new_goods.MIN_PRICE_NOW =0 %}<span class="price1" itemprop="price">  Цена по запросу </span>{% ELSE %}<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>{%ENDIF%}
						</span>
					  </div>
					  <div class="rating-hover">
					  <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>
					<div class="actions">
					  {% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE && index_page_new_goods.MAX_REST_VALUE=0 %}
						<span class="button">Нет в наличии</span>
					  {% ELSE %}
						<!--a class="add-cart quick button" title="Быстро оформить заказ">В корзину</a-->
						<a class="add-cart button" title="В корзину">В корзину</a>
					  {% ENDIF %}
					</div>
				</form>
			  </div>
			</div>
			{% ENDFOR %}
		  </div>
		</div>
	  </div>
	</div>
  {% ENDIF %}
	<!-- Товары на главной -->
  {% IFNOT index_page_favorites_goods_empty %}
	<div class="index_page_favorites_goods clear">												   
	  <div class="box-up-sell">
		<div class="block-title">
		  <h3>Товары на главной</h3>
		</div>
		<div class="navigation">
		  <a href="#" class="prev"><i class="fa fa-angle-left"></i></a>
		  <a href="#" class="next"><i class="fa fa-angle-right"></i></a>
		</div>
		<div class="up-sell-products">
		  <div class="products-grid">
			{% FOR index_page_favorites_goods %}
			<div class="item">
			  <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="product-hover">
					  <a href="{index_page_favorites_goods.URL | url_amp}" title="{index_page_favorites_goods.NAME}" class="product-image">
						<div class="ico-product">
						  {% IF index_page_favorites_goods.IS_NEW %}
							<span class="ico-new"><span>Новинка</span></span>
						  {% ELSEIF index_page_favorites_goods.IS_TOP %}
							<span class="ico-best"><span>Хит</span></span>
						  {% ENDIF %}
						  {% IF index_page_favorites_goods.MAX_DISCOUNT %}
							<span class="ico-sale"><span>Скидка</span></span>
						  {% ENDIF %}
						</div>
						<img class="lazyOwl goods-image-small" data-src="{% IF index_page_favorites_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=urban{% ELSE %}{index_page_favorites_goods.IMAGE_MEDIUM}{% ENDIF %}" alt="{index_page_favorites_goods.NAME}" title="{index_page_favorites_goods.NAME}"  itemprop="image">
					  </a>
					  <div class="add-to-links">
						<div class="wishlist">
						  <!-- Если есть возможность добавить товар в избранное -->
						  {% IF index_page_favorites_goods.IS_HAS_IN_FAVORITES_LIST %}
							<a class="add-wishlist added"
							  data-action-is-add="0"
							  data-action-add-url="{FAVORITES_ADD_URL}"
							  data-action-delete-url="{FAVORITES_DELETE_URL}"
							  data-action-add-title="Добавить &laquo;{index_page_favorites_goods.NAME}&raquo; в избранное"
							  data-action-delete-title="Убрать &laquo;{index_page_favorites_goods.NAME}&raquo; из избранного"
							  title="Убрать &laquo;{index_page_favorites_goods.NAME}&raquo; из избранного"
							  href="{FAVORITES_DELETE_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&amp;return_to={CURRENT_URL | urlencode}"
							><i class="fa fa-heart"></i></a>
						  {% ELSE %}
							<a class="add-wishlist"
							  data-action-is-add="1"
							  data-action-add-url="{FAVORITES_ADD_URL}"
							  data-action-delete-url="{FAVORITES_DELETE_URL}"
							  data-action-add-title="Добавить &laquo;{index_page_favorites_goods.NAME}&raquo; в избранное"
							  data-action-delete-title="Убрать &laquo;{index_page_favorites_goods.NAME}&raquo; из избранного"
							  title="Добавить &laquo;{index_page_favorites_goods.NAME}&raquo; в избранное" href="{FAVORITES_ADD_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&amp;return_to={CURRENT_URL | urlencode}"
							><i class="fa fa-heart"></i></a>
						  {% ENDIF %}
						  <!-- END Если есть возможность добавить товар в избранное -->
						</div>
						<div 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"
								data-action-is-add="0"
								data-action-add-url="{COMPARE_ADD_URL}"
								data-action-delete-url="{COMPARE_DELETE_URL}"
								data-action-add-title="Добавить &laquo;{index_page_favorites_goods.NAME}&raquo; в список сравнения с другими товарами"
								data-action-delete-title="Убрать &laquo;{index_page_favorites_goods.NAME}&raquo; из списка сравнения с другими товарами"
								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="Убрать &laquo;{index_page_favorites_goods.NAME}&raquo; из списка сравнения с другими товарами"
								href="{COMPARE_DELETE_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&amp;from={index_page_favorites_goods.GOODS_FROM}&amp;return_to={CURRENT_URL | urlencode}"
							  ><i class="fa fa-balance-scale"></i></a>
							{% ELSE %}
							  <a class="add-compare"
								data-action-is-add="1"
								data-action-add-url="{COMPARE_ADD_URL}"
								data-action-delete-url="{COMPARE_DELETE_URL}"
								data-action-add-title="Добавить &laquo;{index_page_favorites_goods.NAME}&raquo; в список сравнения с другими товарами"
								data-action-delete-title="Убрать &laquo;{index_page_favorites_goods.NAME}&raquo; из списка сравнения с другими товарами"
								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="Добавить &laquo;{index_page_favorites_goods.NAME}&raquo; в список сравнения с другими товарами"
								href="{COMPARE_ADD_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&amp;from={index_page_favorites_goods.GOODS_FROM}&amp;return_to={CURRENT_URL | urlencode}"
							  ><i class="fa fa-balance-scale"></i></a>
							{% ENDIF %}
						  {% ENDIF %}
						  <!-- END Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина -->
						</div>
					  </div>
					</div>
					<div class="item-info">
					  <h2 class="product-name"><a href="{index_page_favorites_goods.URL | url_amp}" title="{index_page_favorites_goods.NAME}" itemprop="url">{index_page_favorites_goods.NAME}</a></h2>
					  <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 %}
						<span class="old-price">
						  <span class="price {CURRENCY_CHAR_CODE}">{index_page_favorites_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT | money_format}</span>
						</span>
						{% ELSEIF index_page_favorites_goods.MIN_PRICE_OLD>index_page_favorites_goods.MIN_PRICE_NOW %}
						<span class="old-price">
						  <span class="price {CURRENCY_CHAR_CODE}">{index_page_favorites_goods.MIN_PRICE_OLD | money_format}</span>
						</span>
						{% ENDIF %}
						<span class="special-price">
						  {% IF index_page_favorites_goods.MIN_PRICE_NOW =0 %}<span class="price1" itemprop="price">  Цена по запросу </span>{% ELSE %}<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>{%ENDIF%}
						</span>
					  </div>
					  <div class="rating-hover">
					  <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>
					<div class="actions">
					  {% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE && index_page_favorites_goods.MAX_REST_VALUE=0 %}
						<span class="button">Нет в наличии</span>
					  {% ELSE %}
						<!--a class="add-cart quick button" title="Быстро оформить заказ">В корзину</a-->
						<a class="add-cart button" title="В корзину">В корзину</a>
					  {% ENDIF %}
					</div>
				</form>
			  </div>
			</div>
			{% ENDFOR %}
		  </div>
		</div>
	  </div>
	</div>
  {% ENDIF %}
  {% ENDIF %}


далее зайдите в main.js - найдите:
// Функции для главной страницы
function indexPage() {
// Товары на главной
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');
});
//Функция показать больше для Товаров на главной
$(function(){
  var i = 0;
  $('.pdt-sale .item').each(function(){
	i++;
  })
  if(i<=8){$('.pdt-sale .button-load').hide()}
  $('.pdt-sale .loadGoods').on('click',function(){
	if($(this).hasClass('loaded')){
	  $(this).removeClass('loaded');
	  $('.pdt-sale .item').removeClass('showThis');
	  $(this).text('Показать все');
	  $(this).attr('title', 'Показать все');
	}else{
	  $('.pdt-sale .item').addClass('showThis');
	  $(this).addClass('loaded');
	  $(this).text('Скрыть');
	  $(this).attr('title', 'Скрыть');
	}
  })
});
//Функция показать больше для Новинок
$(function(){
  var i = 0;
  $('.pdt-new .item').each(function(){
	i++;
  })
  if(i<=8){$('.pdt-new .button-load').hide()}
  $('.pdt-new .loadGoods').on('click',function(){
	if($(this).hasClass('loaded')){
	  $(this).removeClass('loaded');
	  $('.pdt-new .item').removeClass('showThis');
	  $(this).text('Показать все');
	  $(this).attr('title', 'Показать все');
	}else{
	  $('.pdt-new .item').addClass('showThis');
	  $(this).addClass('loaded');
	  $(this).text('Скрыть');
	  $(this).attr('title', 'Скрыть');
	}
  })
});
//Функция показать больше для Хитов продаж
$(function(){
  var i = 0;
  $('.pdt-best .item').each(function(){
	i++;
  })
  if(i<=8){$('.pdt-best .button-load').hide()}
  $('.pdt-best .loadGoods').on('click',function(){
	if($(this).hasClass('loaded')){
	  $(this).removeClass('loaded');
	  $('.pdt-best .item').removeClass('showThis');
	  $(this).text('Показать все');
	  $(this).attr('title', 'Показать все');
	}else{
	  $('.pdt-best .item').addClass('showThis');
	  $(this).addClass('loaded');
	  $(this).text('Скрыть');
	  $(this).attr('title', 'Скрыть');
	}
  })
});
}

замените на:
// Функции для главной страницы
function indexPage() {
// Товары на главной
jQuery(function($) {
  var carouselU = $('.index_page_goods .products-grid');
	carouselU.owlCarousel({
	  items: 4,
	  itemsDesktop: [1199,3],
	  itemsDesktopSmall: [991,2],
	  itemsTablet: [767,2],
	  itemsTabletSmall: [641,1],
	  itemsMobile: [481,1],
	  responsive: true,
	  responsiveRefreshRate : 200,
	  responsiveBaseWidth: window,
	  lazyLoad: true,
	  pagination: false,
	  itemsScaleUp: true,
	  slideSpeed: 800,
	  stopOnHover: true,
	  touchDrag: true,
	  autoPlay: false,
	  addClassActive: true,
	  autoHeight: true,
	  afterAction: function (e) {
		if(this.$owlItems.length > this.options.items){
		  $('.index_page_goods .navigation').show();
		}else{
		  $('.index_page_goods .navigation').hide();
		  $('.index_page_goods .owl-carousel .owl-item').css("max-width", "300px");
		}
	  }
	});
  jQuery('.index_page_goods .navigation .prev').on('click', function(e){
	e.preventDefault();
	carouselU.trigger('owl.prev');
  });
  jQuery('.index_page_goods .navigation .next').on('click', function(e){
	e.preventDefault();
	carouselU.trigger('owl.next');
  });
});
// Новинки
jQuery(function($) {
  var carouselU = $('.index_page_new_goods .products-grid');
	carouselU.owlCarousel({
	  items: 4,
	  itemsDesktop: [1199,3],
	  itemsDesktopSmall: [991,2],
	  itemsTablet: [767,2],
	  itemsTabletSmall: [641,1],
	  itemsMobile: [481,1],
	  responsive: true,
	  responsiveRefreshRate : 200,
	  responsiveBaseWidth: window,
	  lazyLoad: true,
	  pagination: false,
	  itemsScaleUp: true,
	  slideSpeed: 800,
	  stopOnHover: true,
	  touchDrag: true,
	  autoPlay: false,
	  addClassActive: true,
	  autoHeight: true,
	  afterAction: function (e) {
		if(this.$owlItems.length > this.options.items){
		  $('.index_page_new_goods .navigation').show();
		}else{
		  $('.index_page_new_goods .navigation').hide();
		  $('.index_page_new_goods .owl-carousel .owl-item').css("max-width", "300px");
		}
	  }
	});
  jQuery('.index_page_new_goods .navigation .prev').on('click', function(e){
	e.preventDefault();
	carouselU.trigger('owl.prev');
  });
  jQuery('.index_page_new_goods .navigation .next').on('click', function(e){
	e.preventDefault();
	carouselU.trigger('owl.next');
  });
});
// Хиты продаж
jQuery(function($) {
  var carouselU = $('.index_page_favorites_goods .products-grid');
	carouselU.owlCarousel({
	  items: 4,
	  itemsDesktop: [1199,3],
	  itemsDesktopSmall: [991,2],
	  itemsTablet: [767,2],
	  itemsTabletSmall: [641,1],
	  itemsMobile: [481,1],
	  responsive: true,
	  responsiveRefreshRate : 200,
	  responsiveBaseWidth: window,
	  lazyLoad: true,
	  pagination: false,
	  itemsScaleUp: true,
	  slideSpeed: 800,
	  stopOnHover: true,
	  touchDrag: true,
	  autoPlay: false,
	  addClassActive: true,
	  autoHeight: true,
	  afterAction: function (e) {
		if(this.$owlItems.length > this.options.items){
		  $('.index_page_favorites_goods .navigation').show();
		}else{
		  $('.index_page_favorites_goods .navigation').hide();
		  $('.index_page_favorites_goods .owl-carousel .owl-item').css("max-width", "300px");
		}
	  }
	});
  jQuery('.index_page_favorites_goods .navigation .prev').on('click', function(e){
	e.preventDefault();
	carouselU.trigger('owl.prev');
  });
  jQuery('.index_page_favorites_goods .navigation .next').on('click', function(e){
	e.preventDefault();
	carouselU.trigger('owl.next');
  });
});
}


#3 Floyd

Floyd

    Пользователь

  • Пользователи
  • PipPip
  • 35 сообщений

Отправлено 17 Январь 2019 - 12:03

Спасибо.




Количество пользователей, читающих эту тему: 0

0 пользователей, 0 гостей, 0 анонимных