Работа С Товарами
#1
Отправлено 19 Декабрь 2017 - 15:54
https://kengyry.com....sumki/portmone/
#2
Отправлено 20 Декабрь 2017 - 16:03
#3
Отправлено 20 Декабрь 2017 - 18:20
#4
Отправлено 21 Декабрь 2017 - 06:19
Инструкции по реализации:
https://forum.storel...ии/#entry213597
https://forum.storel...едении-на-това/
#5
Отправлено 21 Декабрь 2017 - 16:26
Можно именно для Шаблона ГОРОД а то от Лето вроде не подходит
Пожалуйста очень надо я не разберусь сам.
#6
Отправлено 22 Декабрь 2017 - 06:31
Зайдите в раздел Сайт - Редактор шаблонов - Товары - найдите:
<a href="{goods.URL_MIN_PRICE_NOW | url_amp}" title="{goods.NAME}" class="product-image"> <img src="{% IF goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=summer{% ELSE %}{goods.IMAGE_MEDIUM}{% ENDIF %}" class="goods-image-small" alt="{goods.NAME}" title="{goods.NAME}" itemprop="image"> {% IF goods.IS_NEW %} <span class="ico-new">Новинка</span> {% ELSEIF goods.IS_TOP %} <span class="ico-best">Хит</span> {% ENDIF %} {% IF goods.MAX_DISCOUNT %} <span class="ico-sale">Скидка</span> {% ENDIF %} </a>
замените на:
<a href="{goods.URL_MIN_PRICE_NOW | url_amp}" title="{goods.NAME}" class="product-image"> <img src="{% IF goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=summer{% ELSE %}{goods.IMAGE_MEDIUM}{% ENDIF %}" class="goods-image-small" alt="{goods.NAME}" title="{goods.NAME}" itemprop="image"> {% FOR images %} {% IF goods.images.length < 2 %} <img src="{% IF goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=summer{% ELSE %}{goods.IMAGE_MEDIUM}{% ENDIF %}" class="goods-image-small2" alt="{goods.NAME}" title="{goods.NAME}" itemprop="image"> {break} {% ELSEIF goods.images.index = 2 %} <img src="{goods.images.MEDIUM}" class="goods-image-small goods-image-small2" alt="{goods.NAME}" title="{goods.NAME}" itemprop="image"> {break} {% ENDIF %} {% ENDFOR %} {% IF goods.IS_NEW %} <span class="ico-new">Новинка</span> {% ELSEIF goods.IS_TOP %} <span class="ico-best">Хит</span> {% ENDIF %} {% IF goods.MAX_DISCOUNT %} <span class="ico-sale">Скидка</span> {% ENDIF %} </a>
Далее зайдите в main.css - найдите:
.products-grid .item .item-inner .item-img > a {display: table-cell;vertical-align: middle;z-index: 1;width: 270px;height: 270px;}
после него попишите:
.products-grid .item .item-inner .item-img img.goods-image-small2 {display: none;} .products-grid .item:hover .item-inner .item-img img.goods-image-small {display: none;} .products-grid .item:hover .item-inner .item-img img.goods-image-small2 {display: block;}
Изменения вы можете пронаблюдать у товаров в категориях, например "Кошельки мужские"
#7
Отправлено 22 Декабрь 2017 - 19:07
#8
Отправлено 23 Декабрь 2017 - 05:35
Зайдите в раздел Сайт - Редактор шаблонов - HTML - найдите:
<a href="{index_page_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_goods.NAME}" class="product-image"> <img src="{% IF index_page_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=urban{% ELSE %}{index_page_goods.IMAGE_MEDIUM}{% ENDIF %}" class="goods-image-small" alt="{index_page_goods.NAME}" title="{index_page_goods.NAME}" itemprop="image"> {% IF index_page_goods.IS_NEW %} <span class="ico-new">Новинка</span> {% ELSEIF index_page_goods.IS_TOP %} <span class="ico-best">Хит</span> {% ENDIF %} {% IF index_page_goods.MAX_DISCOUNT %} <span class="ico-sale">Скидка</span> {% ENDIF %} </a>
замените на:
<a href="{index_page_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_goods.NAME}" class="product-image"> <img src="{% IF index_page_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=summer{% ELSE %}{index_page_goods.IMAGE_MEDIUM}{% ENDIF %}" class="goods-image-small" alt="{index_page_goods.NAME}" title="{index_page_goods.NAME}" itemprop="image"> {% FOR images %} {% IF index_page_goods.images.length < 2 %} <img src="{% IF index_page_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=summer{% ELSE %}{index_page_goods.IMAGE_MEDIUM}{% ENDIF %}" class="goods-image-small2" alt="{index_page_goods.NAME}" title="{index_page_goods.NAME}" itemprop="image"> {break} {% ELSEIF index_page_goods.images.index = 2 %} <img src="{index_page_goods.images.MEDIUM}" class="goods-image-small goods-image-small2" alt="{index_page_goods.NAME}" title="{index_page_goods.NAME}" itemprop="image"> {break} {% ENDIF %} {% ENDFOR %} {% IF index_page_goods.IS_NEW %} <span class="ico-new">Новинка</span> {% ELSEIF index_page_goods.IS_TOP %} <span class="ico-best">Хит</span> {% ENDIF %} {% IF index_page_goods.MAX_DISCOUNT %} <span class="ico-sale">Скидка</span> {% ENDIF %} </a>
далее найдите:
<a href="{index_page_new_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_new_goods.NAME}" class="product-image"> <img src="{% IF index_page_new_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=urban{% ELSE %}{index_page_new_goods.IMAGE_MEDIUM}{% ENDIF %}" class="goods-image-small" alt="{index_page_new_goods.NAME}" title="{index_page_new_goods.NAME}" itemprop="image"> {% IF index_page_new_goods.IS_NEW %} <span class="ico-new">Новинка</span> {% ELSEIF index_page_new_goods.IS_TOP %} <span class="ico-best">Хит</span> {% ENDIF %} {% IF index_page_new_goods.MAX_DISCOUNT %} <span class="ico-sale">Скидка</span> {% ENDIF %} </a>
замените на:
<a href="{index_page_new_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_new_goods.NAME}" class="product-image"> <img src="{% IF index_page_new_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=summer{% ELSE %}{index_page_new_goods.IMAGE_MEDIUM}{% ENDIF %}" class="goods-image-small" alt="{index_page_new_goods.NAME}" title="{index_page_new_goods.NAME}" itemprop="image"> {% FOR images %} {% IF index_page_new_goods.images.length < 2 %} <img src="{% IF index_page_new_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=summer{% ELSE %}{index_page_new_goods.IMAGE_MEDIUM}{% ENDIF %}" class="goods-image-small2" alt="{index_page_new_goods.NAME}" title="{index_page_new_goods.NAME}" itemprop="image"> {break} {% ELSEIF index_page_new_goods.images.index = 2 %} <img src="{index_page_new_goods.images.MEDIUM}" class="goods-image-small goods-image-small2" alt="{index_page_new_goods.NAME}" title="{index_page_new_goods.NAME}" itemprop="image"> {break} {% ENDIF %} {% ENDFOR %} {% IF index_page_new_goods.IS_NEW %} <span class="ico-new">Новинка</span> {% ELSEIF index_page_new_goods.IS_TOP %} <span class="ico-best">Хит</span> {% ENDIF %} {% IF index_page_new_goods.MAX_DISCOUNT %} <span class="ico-sale">Скидка</span> {% ENDIF %} </a>
далее найдите:
<a href="{index_page_favorites_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_favorites_goods.NAME}" class="product-image"> <img src="{% IF index_page_favorites_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=urban{% ELSE %}{index_page_favorites_goods.IMAGE_MEDIUM}{% ENDIF %}" class="goods-image-small" alt="{index_page_favorites_goods.NAME}" title="{index_page_favorites_goods.NAME}" itemprop="image"> {% IF index_page_favorites_goods.IS_NEW %} <span class="ico-new">Новинка</span> {% ELSEIF index_page_favorites_goods.IS_TOP %} <span class="ico-best">Хит</span> {% ENDIF %} {% IF index_page_favorites_goods.MAX_DISCOUNT %} <span class="ico-sale">Скидка</span> {% ENDIF %} </a>
замените на:
<a href="{index_page_favorites_goods.URL_MIN_PRICE_NOW | url_amp}" title="{index_page_favorites_goods.NAME}" class="product-image"> <img src="{% IF index_page_favorites_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=summer{% ELSE %}{index_page_favorites_goods.IMAGE_MEDIUM}{% ENDIF %}" class="goods-image-small" alt="{index_page_favorites_goods.NAME}" title="{index_page_favorites_goods.NAME}" itemprop="image"> {% FOR images %} {% IF index_page_favorites_goods.images.length < 2 %} <img src="{% IF index_page_favorites_goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=summer{% ELSE %}{index_page_favorites_goods.IMAGE_MEDIUM}{% ENDIF %}" class="goods-image-small2" alt="{index_page_favorites_goods.NAME}" title="{index_page_favorites_goods.NAME}" itemprop="image"> {break} {% ELSEIF index_page_favorites_goods.images.index = 2 %} <img src="{index_page_favorites_goods.images.MEDIUM}" class="goods-image-small goods-image-small2" alt="{index_page_favorites_goods.NAME}" title="{index_page_favorites_goods.NAME}" itemprop="image"> {break} {% ENDIF %} {% ENDFOR %} {% IF index_page_favorites_goods.IS_NEW %} <span class="ico-new">Новинка</span> {% ELSEIF index_page_favorites_goods.IS_TOP %} <span class="ico-best">Хит</span> {% ENDIF %} {% IF index_page_favorites_goods.MAX_DISCOUNT %} <span class="ico-sale">Скидка</span> {% ENDIF %} </a>
#9
Отправлено 15 Январь 2018 - 12:50
#10
Отправлено 22 Январь 2018 - 14:11
lelenushka (15 Январь 2018 - 12:50) писал:
все еще актуально жду помощи
#11
Отправлено 24 Январь 2018 - 11:01
lelenushka (15 Январь 2018 - 12:50) писал:
.products-grid .item .item-inner .item-img img.goods-image-small2 {display: none;} .products-grid .item:hover .item-inner .item-img img.goods-image-small {display: none;} .products-grid .item:hover .item-inner .item-img img.goods-image-small2 {display: block;}и замените его на
.products-grid .item .item-inner .item-img img.goods-image-small2,.products-grid .item .item-inner .product-image img.goods-image-small2 {display: none;} .products-grid .item:hover .item-inner .item-img img.goods-image-small, .products-grid .item:hover .item-inner .product-image img.goods-image-small {display: none;} .products-grid .item:hover .item-inner .item-img img.goods-image-small2, .products-grid .item:hover .item-inner .product-image img.goods-image-small2 {display: block;}
#12
Отправлено 24 Январь 2018 - 14:12
Stasya (24 Январь 2018 - 11:01) писал:
.products-grid .item .item-inner .item-img img.goods-image-small2 {display: none;} .products-grid .item:hover .item-inner .item-img img.goods-image-small {display: none;} .products-grid .item:hover .item-inner .item-img img.goods-image-small2 {display: block;}и замените его на
.products-grid .item .item-inner .item-img img.goods-image-small2,.products-grid .item .item-inner .product-image img.goods-image-small2 {display: none;} .products-grid .item:hover .item-inner .item-img img.goods-image-small, .products-grid .item:hover .item-inner .product-image img.goods-image-small {display: none;} .products-grid .item:hover .item-inner .item-img img.goods-image-small2, .products-grid .item:hover .item-inner .product-image img.goods-image-small2 {display: block;}
Спасибо !!! Еще нашлась ошибка, если через поиск искать товар, то на странице с результатом при наведении на товар, просто белый квадратик .. как исправить ?
#13
Отправлено 30 Январь 2018 - 13:46
lelenushka (24 Январь 2018 - 14:12) писал:
<img src="{% IF goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=urban{% ELSE %}{goods.IMAGE_MEDIUM}{% ENDIF %}" class="goods-image-small" alt="{goods.NAME}" title="{goods.NAME}" itemprop="image">и замените его на
<img src="{% IF goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=summer{% ELSE %}{goods.IMAGE_MEDIUM}{% ENDIF %}" class="goods-image-small" alt="{goods.NAME}" title="{goods.NAME}" itemprop="image"> {% FOR images %} {% IF goods.images.length < 2 %} <img src="{% IF goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=summer{% ELSE %}{goods.IMAGE_MEDIUM}{% ENDIF %}" class="goods-image-small2" alt="{goods.NAME}" title="{goods.NAME}" itemprop="image"> {break} {% ELSEIF goods.images.index = 2 %} <img src="{goods.images.MEDIUM}" class="goods-image-small goods-image-small2" alt="{goods.NAME}" title="{goods.NAME}" itemprop="image"> {break} {% ENDIF %} {% ENDFOR %}
#14
Отправлено 17 Февраль 2018 - 14:24
Stasya (30 Январь 2018 - 13:46) писал:
<img src="{% IF goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=urban{% ELSE %}{goods.IMAGE_MEDIUM}{% ENDIF %}" class="goods-image-small" alt="{goods.NAME}" title="{goods.NAME}" itemprop="image">и замените его на
<img src="{% IF goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=summer{% ELSE %}{goods.IMAGE_MEDIUM}{% ENDIF %}" class="goods-image-small" alt="{goods.NAME}" title="{goods.NAME}" itemprop="image"> {% FOR images %} {% IF goods.images.length < 2 %} <img src="{% IF goods.IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-small.png?design=summer{% ELSE %}{goods.IMAGE_MEDIUM}{% ENDIF %}" class="goods-image-small2" alt="{goods.NAME}" title="{goods.NAME}" itemprop="image"> {break} {% ELSEIF goods.images.index = 2 %} <img src="{goods.images.MEDIUM}" class="goods-image-small goods-image-small2" alt="{goods.NAME}" title="{goods.NAME}" itemprop="image"> {break} {% ENDIF %} {% ENDFOR %}
Спасибо, класс, все работает !!
Количество пользователей, читающих эту тему: 0
0 пользователей, 0 гостей, 0 анонимных