Gift Cards
My Account
<%= totalItem %>
Cart
Mfr Code:
Add to Cart

.

.
.
You pay:
Add to Cart
MPC:
SKU:
var iscategory = "<%= product.category[1].name %>"; var iscanon = "<%= product.brand %>"; var warranties = <%= product.finalPrice %>; var preorder = "<%= product.outOfStockMsg %>"; var firstday = "<%= product.name %>"; $("#carepak").attr("data-warranty", warranties); if(iscategory == "Lenses - SLR & Compact System") { $("#carepak").attr("data-lens", "on"); } if(iscategory == "Digital Cameras") { $("#carepak").attr("data-camera", "on"); } if(iscategory == "Video Cameras") { $("#carepak").attr("data-video", "on"); } if(preorder.length > 5 || firstday.includes("First Day")) { $("#carepak").attr("data-preorder", "on"); }
var warranties = <%= product.finalPrice %>; var iscamera = $('#carepak').attr('data-camera'); var islens = $('#carepak').attr('data-lens'); var isvideo = $('#carepak').attr('data-video'); var ispreorder = $('#carepak').attr('data-preorder'); if((iscamera == "on" || islens == "on" || isvideo == "on") && ispreorder == "off" ) { $("#mackwar").show(); if(warranties < 150) { $("#warrantyLinkBox").attr("href", "../mack-3-year-diamond-protect-multi-plan-warranty-up-to-150-1-warranty-up-to-3-items/b348d9b0-cc17-013b-9d7a-00163ecd2826?variation=3464700"); $("#warPrice").html("Price: $26.00"); } else if(warranties < 250) { $("#warrantyLinkBox").attr("href", "../mack-3-year-diamond-protect-multi-plan-warranty-up-to-250-1-warranty-up-to-3-items/a51b7ed0-cc18-013b-4156-00163e90e196?variation=3464709"); $("#warPrice").html("Price: $44.00"); } else if(warranties < 500) { $("#warrantyLinkBox").attr("href", "../mack-3-year-diamond-protect-multi-plan-warranty-up-to-500-1-warranty-up-to-3-items/e19a1a90-cc19-013b-415a-00163e90e196?variation=3464721"); $("#warPrice").html("Price: $66.00"); } else if(warranties < 750) { $("#warrantyLinkBox").attr("href", "../mack-3-year-diamond-protect-multi-plan-warranty-up-to-750-1-warranty-up-to-3-items/2f168f70-cc1a-013b-415c-00163e90e196?variation=3464727"); $("#warPrice").html("Price: $110.00"); } else if(warranties < 1000) { $("#warrantyLinkBox").attr("href", "../mack-3-year-diamond-protect-multi-plan-warranty-up-to-1000-1-warranty-up-to-3-items/c5654ac0-cc15-013b-9d77-00163ecd2826?variation=3464694"); $("#warPrice").html("Price: $146.00"); } else if(warranties < 1500) { $("#warrantyLinkBox").attr("href", "../mack-3-year-diamond-protect-multi-plan-warranty-up-to-1500-1-warranty-up-to-3-items/ebaf0f90-cc17-013b-9d7b-00163ecd2826?variation=3464703"); $("#warPrice").html("Price: $174.00"); } else if(warranties < 2000) { $("#warrantyLinkBox").attr("href", "../mack-3-year-diamond-protect-multi-plan-warranty-up-to-2000-1-warranty-up-to-3-items/21ebec50-cc18-013b-4154-00163e90e196?variation=3464706"); $("#warPrice").html("Price: $234.00"); } else if(warranties < 2500) { $("#warrantyLinkBox").attr("href", "../mack-3-year-diamond-protect-multi-plan-warranty-up-to-2500-1-warranty-up-to-3-items/d83a8270-cc18-013b-4157-00163e90e196?variation=3464712"); $("#warPrice").html("Price: $274.00"); } else if(warranties < 3000) { $("#warrantyLinkBox").attr("href", "../mack-3-year-diamond-protect-multi-plan-warranty-up-to-3000-1-warranty-up-to-3-items/170311b0-cc19-013b-4158-00163e90e196?variation=3464715"); $("#warPrice").html("Price: $318.00"); } else if(warranties < 4000) { $("#warrantyLinkBox").attr("href", "../mack-3-year-diamond-protect-multi-plan-warranty-up-to-4000-1-warranty-up-to-3-items/42e3be60-cc19-013b-9d7c-00163ecd2826?variation=3464718"); $("#warPrice").html("Price: $348.00"); } else if(warranties < 5000) { $("#warrantyLinkBox").attr("href", "../mack-3-year-diamond-protect-multi-plan-warranty-up-to-5000-1-warranty-up-to-3-items/0c09e8d0-cc1a-013b-415b-00163e90e196?variation=3464724"); $("#warPrice").html("Price: $378.00"); } else if(warranties < 15000) { $("#warrantyLinkBox").attr("href", "../mack-3-year-diamond-protect-multi-plan-warranty-up-to-15000-1-warranty-up-to-3-items/53e16420-cc17-013b-4152-00163e90e196?variation=3464697"); $("#warPrice").html("Price: $799.00"); } }
<% console.log(product) %>