{% if productTitleTag is not defined %}{% set productTitleTag = 'div' %}{% endif %}{% if priceGroup is not defined %}{% set priceGroup = customerMgr.getPriceContext() %}{% endif %}<li class="product" data-pid="{{ product.id }}" data-mid="{{ model.code }}">{% if removeBt is defined %}<a class="{{ removeBt }}" data-product="{{ product.id }}"><svg xmlns="http://www.w3.org/2000/svg" id="Calque_2" viewBox="0 0 11.25 11.05"><line style="fill:none;stroke:#000;stroke-miterlimit:10;" x1=".56" y1=".35" x2="10.9" y2="10.69"/><line style="fill:none;stroke:#000;stroke-miterlimit:10;" x1="10.69" y1=".35" x2=".35" y2="10.69"/></svg></a>{% endif %}<div class="picture">{# image de la déclinaison affichée, à défaut d'une déclinaison de la même entrée, puis du modèle #}{% set picture = model.getListingPicture(product) %}{% if picture %}<img src="{{ asset(picture.webPath) | imagine_filter('product_medium') }}" width="300" height="300" alt="{{ product.name }}">{% else %}<img src="{{ asset('img/img-default.png') | imagine_filter('product_medium') }}" width="300" height="300" alt="{{ product.name }}">{% endif %}</div><div class="manufacturer">{% if product.manufacturer %}{% set slug = product.manufacturer.getUrl(app.request.locale) %}<a href="{{ path('manufacturer',{id:product.manufacturer.id,url:slug}) }}">{{ product.manufacturer.name }}</a>{% endif %}</div>{% set productUrl = product_path(product) %}{% set productTitle = model.name %}{% set axisLabel = model ? product.listingAxisLabel : null %}{% if axisLabel %}{% set modelDescription = model.getProductModelDescription(app.request.locale) %}{% if modelDescription and modelDescription.name %}{% set productTitle = modelDescription.name ~ ' - ' ~ axisLabel %}{% endif %}{% endif %}<{{ productTitleTag }} class="title"><a href="{{ productUrl }}">{{ productTitle|excerpt(60,'') | raw }}</a></{{ productTitleTag }}>{% if customerMgr.canSeePrices() and product.hasPrice(customerMgr.priceContext) %}{% set country = customerMgr.getCustomerCountry() %}{% if product.isAvailableForCountry(country) %}{# prix calculés sur les seules déclinaisons de cette entrée de listing (ex. même couleur) #}{% set fromPrice = model.getFromPrice(true, priceGroup, false, product) %}{% set fromPriceVat = model.getFromPrice(true, priceGroup, true, product) %}{% set severalVariants = model.getListingProducts(product)|length > 1 %}{% if customerMgr.isExpert() %}{% if not product.isGift() %}<div class="price-ctn cf">{% if severalVariants and fromPriceVat %}<div class="from-price"><span class="from">{% trans %}A partir de :{% endtrans %}</span><span class="price">{{ fromPrice|price }}</span></div><span class="price-tax-incl">{{ fromPriceVat|price }}<sup>{{ 'ttc' | trans }}</sup></span>{% else %}<span class="price">{{ fromPrice|price }}</span><span class="price-tax-incl">{{ fromPriceVat|price }}<sup>{{ 'ttc' | trans }}</sup></span>{% endif %}</div>{% endif %}{% else %}<div class="price-ctn cf">{% if fromPrice %}{% if severalVariants %}<span class="from">{% trans %}A partir de :{% endtrans %}</span>{% endif %}<span class="price">{{ fromPrice|price }}</span>{% endif %}</div>{% endif %}{% endif %}{% endif %}{% if productItemFooter is defined and productItemFooter %}{{ productItemFooter|raw }}{% endif %}</li>