Добрый день! Аккаунт SL-461920 .
Нужно сделать отображение товаров категории "Хиты продаж" на главной странице, как в каталоге товаров, то есть в несколько рядов друг под другом.Нужно чтобы отображались все товары из категории "Хиты продаж". Как это сделать ?
Заранее спасибо!


Сообщений в теме: 3
#1
Отправлено 06 Декабрь 2018 - 19:53
#2
Отправлено 08 Декабрь 2018 - 08:02
Здравствуйте.
Зайдите в раздел Сайт - Редактор шаблонов - HTML - найдите:
замените на:
далее зайдите в main.css - найдите и удалите:
Зайдите в раздел Сайт - Редактор шаблонов - HTML - найдите:
<!-- Хиты продаж --> {% IFNOT index_page_favorites_goods_empty %} <div class="pdt-best products-container"> <div class="block-title"> <h2 class="title"><a href="{CATALOG_TOP_SALES_URL}" title="Перейти в категорию «Хиты Продаж»"><span>Хиты продаж</span></a></h2> <div class="navigation owl-nav"></div> </div> <div class="products-grid owl-carousel"> {% FOR index_page_favorites_goods %} <div class="item {% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE && index_page_favorites_goods.MAX_REST_VALUE=0 %}empty{% ENDIF %}"> <div class="item-inner" itemscope itemtype="https://schema.org/Product"> <form action="{CART_ADD_GOODS_MODIFICATION_URL | url_amp}" method="post" class="product-form-{index_page_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-image"> <a href="{index_page_favorites_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_favorites_goods.NAME}" class="product-img"> <img class="goods-image-small" src="{% IF index_page_favorites_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=master{% ELSE %}{index_page_favorites_goods.IMAGE_MEDIUM}{% ENDIF %}" alt="{index_page_favorites_goods.NAME}" title="{index_page_favorites_goods.NAME}" itemprop="image"> </a> {% IF index_page_favorites_goods.IS_NEW %} <span class="ico-new">New</span> {% ELSEIF index_page_favorites_goods.IS_TOP %} <span class="ico-best">Hit</span> {% ENDIF %} {% IF index_page_favorites_goods.MAX_DISCOUNT %} <span class="ico-sale">Sale</span> {% ENDIF %} </div> <div class="product-shop"> <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="ratings"> <a href="{index_page_favorites_goods.URL | url_amp}" title="Перейти к отзывам"> <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> </a> </div> <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> <div class="price-box" itemprop="offers" itemscope itemtype="https://schema.org/Offer"> <meta itemprop="priceCurrency" content="{CURRENCY_CHAR_CODE}"/> <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> {% IF index_page_favorites_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT>index_page_favorites_goods.MIN_PRICE_NOW %} <span class="price old-price {CURRENCY_CHAR_CODE}">{index_page_favorites_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT | money_format}</span> {% ELSEIF index_page_favorites_goods.MIN_PRICE_OLD>index_page_favorites_goods.MIN_PRICE_NOW %} <span class="price old-price {CURRENCY_CHAR_CODE}">{index_page_favorites_goods.MIN_PRICE_OLD | money_format}</span> {% ENDIF %} </div> <div class="actions"> <!-- Добавление товара в корзину --> {% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE && index_page_favorites_goods.MAX_REST_VALUE=0 %} <div class="empty button" title="Нет в наличии" data-tooltip="Нет в наличии"><span>Нет в наличии</span></div> {% ELSE %} <!--a class="add-cart quick button" title="Быстро оформить заказ" rel="nofollow" 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-basket" aria-hidden="true"></i><span>В корзину</span></a--> <a class="add-cart button" title="В корзину" data-tooltip="В корзину" rel="nofollow" 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-basket" aria-hidden="true"></i><span>В корзину</span></a> {% ENDIF %} <!-- /END Добавление товара в корзину --> <div class="add-to-links"> <a class="quickview" href="{index_page_favorites_goods.URL_MIN_PRICE_NOW}" title="Быстрый просмотр «{index_page_favorites_goods.NAME}»" data-tooltip="Быстрый просмотр" rel="nofollow">Подробнее</a> <!-- Если есть возможность добавить товар в избранное --> {% 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="Добавить «{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}" data-add-tooltip="В Избранное" data-del-tooltip="Убрать из избранного" data-tooltip="Убрать из избранного" title="Убрать «{index_page_favorites_goods.NAME}» из избранного" href="{FAVORITES_DELETE_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}" rel="nofollow" ></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="Добавить «{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}" data-add-tooltip="В Избранное" data-del-tooltip="Убрать из избранного" data-tooltip="В Избранное" title="Добавить «{index_page_favorites_goods.NAME}» в избранное" href="{FAVORITES_ADD_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}" href="{FAVORITES_ADD_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}" rel="nofollow" ></a> {% ENDIF %} <!-- /END Если есть возможность добавить товар в избранное --> <!-- Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина --> {% 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="Добавить «{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}" data-add-tooltip="В Сравнение" data-del-tooltip="Убрать из сравнения" data-tooltip="Убрать из сравнения" 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}" rel="nofollow" ></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="Добавить «{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}" data-add-tooltip="В Сравнение" data-del-tooltip="Убрать из сравнения" data-tooltip="В Сравнение" 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}" rel="nofollow" ></a> {% ENDIF %} {% ENDIF %} <!-- /END Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина --> </div> </div> </div> </form> </div> </div> {% ENDFOR %} </div> </div> {% ENDIF %}
замените на:
<!-- Хиты продаж --> {% IFNOT index_page_favorites_goods_empty %} <div class="pdt-best products-container f-fix"> <div class="block-title"> <h2 class="title"><a href="{CATALOG_TOP_SALES_URL}" title="Перейти в категорию «Хиты Продаж»"><span>Хиты продаж</span></a></h2> </div> <div class="products-ajax"> <div class="products-grid row"> {% FOR index_page_favorites_goods %} <div class="item {% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE && index_page_favorites_goods.MAX_REST_VALUE=0 %}empty{% ENDIF %}"> <div class="item-inner" itemscope itemtype="https://schema.org/Product"> <form action="{CART_ADD_GOODS_MODIFICATION_URL | url_amp}" method="post" class="product-form-{index_page_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-image"> <a href="{index_page_favorites_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_favorites_goods.NAME}" class="product-img"> <img class="goods-image-small" src="{% IF index_page_favorites_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=master{% ELSE %}{index_page_favorites_goods.IMAGE_MEDIUM}{% ENDIF %}" alt="{index_page_favorites_goods.NAME}" title="{index_page_favorites_goods.NAME}" itemprop="image"> </a> {% IF index_page_favorites_goods.IS_NEW %} <span class="ico-new">New</span> {% ELSEIF index_page_favorites_goods.IS_TOP %} <span class="ico-best">Hit</span> {% ENDIF %} {% IF index_page_favorites_goods.MAX_DISCOUNT %} <span class="ico-sale">Sale</span> {% ENDIF %} </div> <div class="product-shop"> <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="ratings"> <a href="{index_page_favorites_goods.URL | url_amp}" title="Перейти к отзывам"> <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> </a> </div> <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> <div class="price-box" itemprop="offers" itemscope itemtype="https://schema.org/Offer"> <meta itemprop="priceCurrency" content="{CURRENCY_CHAR_CODE}"/> <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> {% IF index_page_favorites_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT>index_page_favorites_goods.MIN_PRICE_NOW %} <span class="price old-price {CURRENCY_CHAR_CODE}">{index_page_favorites_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT | money_format}</span> {% ELSEIF index_page_favorites_goods.MIN_PRICE_OLD>index_page_favorites_goods.MIN_PRICE_NOW %} <span class="price old-price {CURRENCY_CHAR_CODE}">{index_page_favorites_goods.MIN_PRICE_OLD | money_format}</span> {% ENDIF %} </div> <div class="actions"> <!-- Добавление товара в корзину --> {% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE && index_page_favorites_goods.MAX_REST_VALUE=0 %} <div class="empty button" title="Нет в наличии" data-tooltip="Нет в наличии"><span>Нет в наличии</span></div> {% ELSE %} <!--a class="add-cart quick button" title="Быстро оформить заказ" rel="nofollow" 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-basket" aria-hidden="true"></i><span>В корзину</span></a--> <a class="add-cart button" title="В корзину" data-tooltip="В корзину" rel="nofollow" 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-basket" aria-hidden="true"></i><span>В корзину</span></a> {% ENDIF %} <!-- /END Добавление товара в корзину --> <div class="add-to-links"> <a class="quickview" href="{index_page_favorites_goods.URL_MIN_PRICE_NOW}" title="Быстрый просмотр «{index_page_favorites_goods.NAME}»" data-tooltip="Быстрый просмотр" rel="nofollow">Подробнее</a> <!-- Если есть возможность добавить товар в избранное --> {% 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="Добавить «{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}" data-add-tooltip="В Избранное" data-del-tooltip="Убрать из избранного" data-tooltip="Убрать из избранного" title="Убрать «{index_page_favorites_goods.NAME}» из избранного" href="{FAVORITES_DELETE_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}" rel="nofollow" ></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="Добавить «{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}" data-add-tooltip="В Избранное" data-del-tooltip="Убрать из избранного" data-tooltip="В Избранное" title="Добавить «{index_page_favorites_goods.NAME}» в избранное" href="{FAVORITES_ADD_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}" href="{FAVORITES_ADD_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}" rel="nofollow" ></a> {% ENDIF %} <!-- /END Если есть возможность добавить товар в избранное --> <!-- Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина --> {% 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="Добавить «{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}" data-add-tooltip="В Сравнение" data-del-tooltip="Убрать из сравнения" data-tooltip="Убрать из сравнения" 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}" rel="nofollow" ></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="Добавить «{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}" data-add-tooltip="В Сравнение" data-del-tooltip="Убрать из сравнения" data-tooltip="В Сравнение" 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}" rel="nofollow" ></a> {% ENDIF %} {% ENDIF %} <!-- /END Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина --> </div> </div> </div> </form> </div> </div> {% ENDFOR %} </div> </div> </div> {% ENDIF %}
далее зайдите в main.css - найдите и удалите:
#producttabs .products-grid .item {width: 100%;margin: 0;padding: 0;}
#3
Отправлено 08 Декабрь 2018 - 13:05
Vaccina (08 Декабрь 2018 - 08:02) писал:
Здравствуйте.
Зайдите в раздел Сайт - Редактор шаблонов - HTML - найдите:
замените на:
далее зайдите в main.css - найдите и удалите:
Зайдите в раздел Сайт - Редактор шаблонов - HTML - найдите:
<!-- Хиты продаж --> {% IFNOT index_page_favorites_goods_empty %} <div class="pdt-best products-container"> <div class="block-title"> <h2 class="title"><a href="{CATALOG_TOP_SALES_URL}" title="Перейти в категорию «Хиты Продаж»"><span>Хиты продаж</span></a></h2> <div class="navigation owl-nav"></div> </div> <div class="products-grid owl-carousel"> {% FOR index_page_favorites_goods %} <div class="item {% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE && index_page_favorites_goods.MAX_REST_VALUE=0 %}empty{% ENDIF %}"> <div class="item-inner" itemscope itemtype="https://schema.org/Product"> <form action="{CART_ADD_GOODS_MODIFICATION_URL | url_amp}" method="post" class="product-form-{index_page_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-image"> <a href="{index_page_favorites_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_favorites_goods.NAME}" class="product-img"> <img class="goods-image-small" src="{% IF index_page_favorites_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=master{% ELSE %}{index_page_favorites_goods.IMAGE_MEDIUM}{% ENDIF %}" alt="{index_page_favorites_goods.NAME}" title="{index_page_favorites_goods.NAME}" itemprop="image"> </a> {% IF index_page_favorites_goods.IS_NEW %} <span class="ico-new">New</span> {% ELSEIF index_page_favorites_goods.IS_TOP %} <span class="ico-best">Hit</span> {% ENDIF %} {% IF index_page_favorites_goods.MAX_DISCOUNT %} <span class="ico-sale">Sale</span> {% ENDIF %} </div> <div class="product-shop"> <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="ratings"> <a href="{index_page_favorites_goods.URL | url_amp}" title="Перейти к отзывам"> <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> </a> </div> <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> <div class="price-box" itemprop="offers" itemscope itemtype="https://schema.org/Offer"> <meta itemprop="priceCurrency" content="{CURRENCY_CHAR_CODE}"/> <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> {% IF index_page_favorites_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT>index_page_favorites_goods.MIN_PRICE_NOW %} <span class="price old-price {CURRENCY_CHAR_CODE}">{index_page_favorites_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT | money_format}</span> {% ELSEIF index_page_favorites_goods.MIN_PRICE_OLD>index_page_favorites_goods.MIN_PRICE_NOW %} <span class="price old-price {CURRENCY_CHAR_CODE}">{index_page_favorites_goods.MIN_PRICE_OLD | money_format}</span> {% ENDIF %} </div> <div class="actions"> <!-- Добавление товара в корзину --> {% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE && index_page_favorites_goods.MAX_REST_VALUE=0 %} <div class="empty button" title="Нет в наличии" data-tooltip="Нет в наличии"><span>Нет в наличии</span></div> {% ELSE %} <!--a class="add-cart quick button" title="Быстро оформить заказ" rel="nofollow" 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-basket" aria-hidden="true"></i><span>В корзину</span></a--> <a class="add-cart button" title="В корзину" data-tooltip="В корзину" rel="nofollow" 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-basket" aria-hidden="true"></i><span>В корзину</span></a> {% ENDIF %} <!-- /END Добавление товара в корзину --> <div class="add-to-links"> <a class="quickview" href="{index_page_favorites_goods.URL_MIN_PRICE_NOW}" title="Быстрый просмотр «{index_page_favorites_goods.NAME}»" data-tooltip="Быстрый просмотр" rel="nofollow">Подробнее</a> <!-- Если есть возможность добавить товар в избранное --> {% 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="Добавить «{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}" data-add-tooltip="В Избранное" data-del-tooltip="Убрать из избранного" data-tooltip="Убрать из избранного" title="Убрать «{index_page_favorites_goods.NAME}» из избранного" href="{FAVORITES_DELETE_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}" rel="nofollow" ></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="Добавить «{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}" data-add-tooltip="В Избранное" data-del-tooltip="Убрать из избранного" data-tooltip="В Избранное" title="Добавить «{index_page_favorites_goods.NAME}» в избранное" href="{FAVORITES_ADD_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}" href="{FAVORITES_ADD_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}" rel="nofollow" ></a> {% ENDIF %} <!-- /END Если есть возможность добавить товар в избранное --> <!-- Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина --> {% 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="Добавить «{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}" data-add-tooltip="В Сравнение" data-del-tooltip="Убрать из сравнения" data-tooltip="Убрать из сравнения" 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}" rel="nofollow" ></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="Добавить «{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}" data-add-tooltip="В Сравнение" data-del-tooltip="Убрать из сравнения" data-tooltip="В Сравнение" 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}" rel="nofollow" ></a> {% ENDIF %} {% ENDIF %} <!-- /END Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина --> </div> </div> </div> </form> </div> </div> {% ENDFOR %} </div> </div> {% ENDIF %}
замените на:
<!-- Хиты продаж --> {% IFNOT index_page_favorites_goods_empty %} <div class="pdt-best products-container f-fix"> <div class="block-title"> <h2 class="title"><a href="{CATALOG_TOP_SALES_URL}" title="Перейти в категорию «Хиты Продаж»"><span>Хиты продаж</span></a></h2> </div> <div class="products-ajax"> <div class="products-grid row"> {% FOR index_page_favorites_goods %} <div class="item {% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE && index_page_favorites_goods.MAX_REST_VALUE=0 %}empty{% ENDIF %}"> <div class="item-inner" itemscope itemtype="https://schema.org/Product"> <form action="{CART_ADD_GOODS_MODIFICATION_URL | url_amp}" method="post" class="product-form-{index_page_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-image"> <a href="{index_page_favorites_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_favorites_goods.NAME}" class="product-img"> <img class="goods-image-small" src="{% IF index_page_favorites_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=master{% ELSE %}{index_page_favorites_goods.IMAGE_MEDIUM}{% ENDIF %}" alt="{index_page_favorites_goods.NAME}" title="{index_page_favorites_goods.NAME}" itemprop="image"> </a> {% IF index_page_favorites_goods.IS_NEW %} <span class="ico-new">New</span> {% ELSEIF index_page_favorites_goods.IS_TOP %} <span class="ico-best">Hit</span> {% ENDIF %} {% IF index_page_favorites_goods.MAX_DISCOUNT %} <span class="ico-sale">Sale</span> {% ENDIF %} </div> <div class="product-shop"> <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="ratings"> <a href="{index_page_favorites_goods.URL | url_amp}" title="Перейти к отзывам"> <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> </a> </div> <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> <div class="price-box" itemprop="offers" itemscope itemtype="https://schema.org/Offer"> <meta itemprop="priceCurrency" content="{CURRENCY_CHAR_CODE}"/> <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> {% IF index_page_favorites_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT>index_page_favorites_goods.MIN_PRICE_NOW %} <span class="price old-price {CURRENCY_CHAR_CODE}">{index_page_favorites_goods.MIN_PRICE_NOW_WITHOUT_DISCOUNT | money_format}</span> {% ELSEIF index_page_favorites_goods.MIN_PRICE_OLD>index_page_favorites_goods.MIN_PRICE_NOW %} <span class="price old-price {CURRENCY_CHAR_CODE}">{index_page_favorites_goods.MIN_PRICE_OLD | money_format}</span> {% ENDIF %} </div> <div class="actions"> <!-- Добавление товара в корзину --> {% IF SETTINGS_GOODS_DONT_PUT_TO_CART_MORE_THAN_AVAILABLE && index_page_favorites_goods.MAX_REST_VALUE=0 %} <div class="empty button" title="Нет в наличии" data-tooltip="Нет в наличии"><span>Нет в наличии</span></div> {% ELSE %} <!--a class="add-cart quick button" title="Быстро оформить заказ" rel="nofollow" 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-basket" aria-hidden="true"></i><span>В корзину</span></a--> <a class="add-cart button" title="В корзину" data-tooltip="В корзину" rel="nofollow" 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-basket" aria-hidden="true"></i><span>В корзину</span></a> {% ENDIF %} <!-- /END Добавление товара в корзину --> <div class="add-to-links"> <a class="quickview" href="{index_page_favorites_goods.URL_MIN_PRICE_NOW}" title="Быстрый просмотр «{index_page_favorites_goods.NAME}»" data-tooltip="Быстрый просмотр" rel="nofollow">Подробнее</a> <!-- Если есть возможность добавить товар в избранное --> {% 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="Добавить «{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}" data-add-tooltip="В Избранное" data-del-tooltip="Убрать из избранного" data-tooltip="Убрать из избранного" title="Убрать «{index_page_favorites_goods.NAME}» из избранного" href="{FAVORITES_DELETE_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}" rel="nofollow" ></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="Добавить «{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}" data-add-tooltip="В Избранное" data-del-tooltip="Убрать из избранного" data-tooltip="В Избранное" title="Добавить «{index_page_favorites_goods.NAME}» в избранное" href="{FAVORITES_ADD_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}" href="{FAVORITES_ADD_URL}?id={index_page_favorites_goods.MIN_PRICE_NOW_ID}&return_to={CURRENT_URL | urlencode}" rel="nofollow" ></a> {% ENDIF %} <!-- /END Если есть возможность добавить товар в избранное --> <!-- Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина --> {% 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="Добавить «{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}" data-add-tooltip="В Сравнение" data-del-tooltip="Убрать из сравнения" data-tooltip="Убрать из сравнения" 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}" rel="nofollow" ></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="Добавить «{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}" data-add-tooltip="В Сравнение" data-del-tooltip="Убрать из сравнения" data-tooltip="В Сравнение" 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}" rel="nofollow" ></a> {% ENDIF %} {% ENDIF %} <!-- /END Если в тарифном плане подключен модуль сравнения товаров и он не выключен в настройках магазина --> </div> </div> </div> </form> </div> </div> {% ENDFOR %} </div> </div> </div> {% ENDIF %}
далее зайдите в main.css - найдите и удалите:
#producttabs .products-grid .item {width: 100%;margin: 0;padding: 0;}
Не нашел такой фрагмент, был похожий, но при попытке заменить выскакивала ошибка.
Проверьте пожалуйста , нужно очень срочно
#4
Отправлено 09 Декабрь 2018 - 13:37
Я поставил код, но товары не кликабельные , то есть это просто картинки получаются.
Темы с аналогичным тегами товары главная
Вопросы работы сервиса StoreLand →
Дизайн →
Шаблон Вечность →
Главная →
Каталог На Главной.Автор Гость_Павел26_* , 09 июля 2014 ![]() |
|
![]() |
Количество пользователей, читающих эту тему: 0
0 пользователей, 0 гостей, 0 анонимных