<% console.log(product) %>
<% var categoryName = ''; if(product) { var category = product.category ? product.category.find(function(c){ return c.parentId }) : null; categoryName = category ? category.name : ''; } if(categoryName.match(/^(Digital Cameras|Lenses - SLR & Compact System)$/)) { %>
Price: $89.99
Click to purchase
<% } %>
var warranties = <%= product.finalPrice %>; if(warranties < 200) { $("#warrantyLinkBox").attr("href", "../promaster-3-year-adh-protection-under-200-6025/92bdf7f0-fb35-0132-eef4-00163e9110c0?variation=2812337"); $("#warPrice").html("Price: $30.58"); } else if(warranties < 250) { $("#warrantyLinkBox").attr("href", "../promaster-3-year-adh-protection-under-250-6027/93c530c0-fb38-0132-ef00-00163e9110c0?variation=2812340"); $("#warPrice").html("Price: $33.64"); } else if(warranties < 30) { $("#warrantyLinkBox").attr("href", "../promaster-3-year-adh-protection-under-300-6029/94a91ec0-fb38-0132-ef01-00163e9110c0?variation=2812343"); $("#warPrice").html("Price: $38.23"); } else if(warranties < 700) { $("#warrantyLinkBox").attr("href", "../promaster-3-year-adh-protection-under-700-6037/9de0aba0-fb38-0132-ef0e-00163e9110c0?variation=2812382"); $("#warPrice").html("Price: $76.48"); } else if(warranties < 750) { $("#warrantyLinkBox").attr("href", "../promaster-3-year-adh-protection-under-750-6039/a3e7d590-fb38-0132-ef17-00163e9110c0?variation=2812409"); $("#warPrice").html("Price: $84.13"); } else if(warranties < 800) { $("#warrantyLinkBox").attr("href", "../promaster-3-year-adh-protection-under-800-6041/9761b980-fb38-0132-ef05-00163e9110c0?variation=2812355"); $("#warPrice").html("Price: $91.78"); } else if(warranties < 1200) { $("#warrantyLinkBox").attr("href", "../promaster-3-year-adh-protection-under-1200-6047/9a3f57e0-fb38-0132-ef09-00163e9110c0?variation=2812367"); $("#warPrice").html("Price: $114.73"); } else if(warranties < 1500) { $("#warrantyLinkBox").attr("href", "../promaster-3-year-adh-protection-under-1500-6051/a704e270-fb38-0132-ef1b-00163e9110c0?variation=2812421"); $("#warPrice").html("Price: $133.09"); } else if(warranties < 6000) { $("#warrantyLinkBox").attr("href", "../promaster-3-year-adh-protection-under-6000-6063/9f495210-fb38-0132-ef10-00163e9110c0?variation=2812388"); $("#warPrice").html("Price: $327.40"); } else if(warranties < 7500) { $("#warrantyLinkBox").attr("href", "../promaster-3-year-adh-protection-under-7500-6065/a34d29e0-fb38-0132-ef16-00163e9110c0?variation=2812406"); $("#warPrice").html("Price: $403.90"); } else if(warranties < 10000) { $("#warrantyLinkBox").attr("href", "../promaster-3-year-adh-protection-under-10000-6067/9ea66040-fb38-0132-ef0f-00163e9110c0?variation=2812385"); $("#warPrice").html("Price: $572.20"); }
Price: $89.99
Click to purchase