<% var title = typeof product.new_title !== 'undefined' ? product.new_title : product.title; %>
<%
var price = product.finalPrice ;
var ecotax = parseFloat(product.ecotax);
if (parseFloat(ecotax) > 0) {
price = price + ecotax;
}
price = String(price.toFixed(2));
if (product.discount <= 0) { %>
<% if(product.hasSeveralPrices) {%>
à partir de<% } %>
<%= price %>€
<% if (product.stickers.Descriptionbottom){ %>
<% if (product.stickers.Descriptionbottom.type === 'HTML' && !window.eb.isMobile()) {%>
<%= product.stickers.Descriptionbottom.value %>
<% } %>
<% if (product.stickers.Descriptionbottom.type === 'Image' && !window.eb.isMobile()) {%>
<% } %>
<% } %>
<%} else {
var stringCatalogPrice = String(product.priceCatalog);
var promoPrice = parseFloat(stringCatalogPrice.replace(',','.'));
if (parseFloat(product.ecotax) > 0) {
promoPrice = promoPrice + parseFloat(product.ecotax) ;
}
promoPrice = String(promoPrice.toFixed(2));
%>
<% if (!window.eb.isMobile()) { %>
<%= promoPrice.replace('.',',') %>€
<% if(product.hasSeveralPrices ) {%>
à partir de<% } %>
<%= price.replace('.',',') %>€
<% } %>
<% if (window.eb.isMobile()) { %>
<% if(product.hasSeveralPrices) {%>
à partir de<% } %>
<%= price.replace('.',',') %>€
<%= promoPrice.replace('.',',') %>€
<% } %>
<%}%>
<% if (product.ecotax > 0) {%>
dont <%= String(product.ecotax).replace('.',',') %> € d'éco-participation
<%}%>