'; html += '
' + suggestion.vendor + '
'; html += '
' + suggestion.meta.product.product_title + '
'; if(suggestion.promo_discount2 == true){ html +='$' + (suggestion.price * 0.64).toFixed(2) + ''; } else if(suggestion.promo_discount1 == true){ html +='$' + (suggestion.price * 1.0).toFixed(2) + ''; } else { if(suggestion.tags.includes("saleproductx")) { html +='$' + (suggestion.price * 0.8).toFixed(2) + ''; } else { if(suggestion.compare_at_price) { html += '$' + suggestion.price.toFixed(2) + ''; } else { html += '$' + suggestion.price.toFixed(2) + ''; } } } if (suggestion.compare_at_price) { html += '$' + suggestion.compare_at_price.toFixed(2) + ''; } else { if ((suggestion.promo_discount2 == true) || (suggestion.promo_discount1 == true) || (suggestion.tags.includes("saleproductx"))) { html += '$' + suggestion.price.toFixed(2) + ''; } } html +='