valeriruss (13 Декабрь 2016 - 14:22) писал:
.products-grid .item:hover .desc.block_hover { margin-top: 10px; height: 78px; } .desc.block_hover { font-size: 11px; width: 100%; float: left; overflow: hidden; height: 0; -webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -o-transition: all 0.3s ease; -ms-transition: all 0.3s ease; transition: all 0.3s ease; }
далее найдите в шаблоне hTML
{% IFNOT index_page_goods.goods_attr_list_empty %} <div class="attr-list"> {% FOR goods_attr_list %} {% IF index_page_goods.goods_attr_list.index > 2 %}{break}{% ENDIF %} <div class="attr"> <span class="name">{index_page_goods.goods_attr_list.NAME}:</span> <span class="value">{index_page_goods.goods_attr_list.VALUE}</span> </div> {% ENDFOR %} </div> {% ENDIF %}
замените на
{% IF index_page_goods.DESCRIPTION_SHORT %} <div class="desc block_hover"> <p itemprop="description">{index_page_goods.DESCRIPTION_SHORT}</p> </div> {% ENDIF %}
далее найдите
{% IFNOT index_page_new_goods.goods_attr_list_empty %} <div class="attr-list"> {% FOR goods_attr_list %} {% IF index_page_new_goods.goods_attr_list.index > 2 %}{break}{% ENDIF %} <div class="attr"> <span class="name">{index_page_new_goods.goods_attr_list.NAME}:</span> <span class="value">{index_page_new_goods.goods_attr_list.VALUE}</span> </div> {% ENDFOR %} </div> {% ENDIF %}
замените на
{% IF index_page_new_goods.DESCRIPTION_SHORT %} <div class="desc block_hover"> <p itemprop="description">{index_page_new_goods.DESCRIPTION_SHORT}</p> </div> {% ENDIF %}
далее найдите
{% IFNOT index_page_favorites_goods.goods_attr_list_empty %} <div class="attr-list"> {% FOR goods_attr_list %} {% IF index_page_favorites_goods.goods_attr_list.index > 2 %}{break}{% ENDIF %} <div class="attr"> <span class="name">{index_page_favorites_goods.goods_attr_list.NAME}:</span> <span class="value">{index_page_favorites_goods.goods_attr_list.VALUE}</span> </div> {% ENDFOR %} </div> {% ENDIF %}
замените на
{% IF index_page_favorites_goods.DESCRIPTION_SHORT %} <div class="desc block_hover"> <p itemprop="description">{index_page_favorites_goods.DESCRIPTION_SHORT}</p> </div> {% ENDIF %}