var warranties = <%= product.finalPrice %>;
var iscategory = "<%= product.category[1].id %>";
var cameras = "a58a8268-4946-4121-8912-f53ba8efa0ea";
var lenses = "1c2d2aa8-6eda-4c6e-9b23-a49316b6450e";
var cine = "bc5bc5e0-fa1d-0135-de3a-00163e90e196";
if(iscategory == cameras || iscategory == lenses || iscategory == cine) {
if(warranties < 250) {
$(".warranty-container").css("display","flex")
$("#warranty3 a").attr("href", "../foto-care-plan-de-protection-3-ans-couverture-0-250/f9bb8880-dedf-0137-5016-00163ecd2826?variation=3316189");
$("#warranty2").html("Prix: 50$");
}
else if(warranties < 500) {
$(".warranty-container").css("display","flex")
$("#warranty3 a").attr("href", "../foto-care-plan-de-protection-3-ans-couverture-251-a-500/673c10e0-8e1e-012e-8772-20cf30bab63e?variation=3316177");
$("#warranty2").html("Prix: 85$");
}
else if(warranties < 750) {
$(".warranty-container").css("display","flex")
$("#warranty3 a").attr("href", "../foto-care-plan-de-protection-3-ans-couverture-501-a-750/744a3fa0-8e1e-012e-8773-20cf30bab63e?variation=3316186");
$("#warranty2").html("Prix: 145$");
}
else if(warranties < 1000) {
$(".warranty-container").css("display","flex")
$("#warranty3 a").attr("href", "../foto-care-plan-de-protection-3-ans-couverture-751-a-1000/751ddba0-8e1e-012e-8772-20cf30bab63e?variation=3316159");
$("#warranty2").html("Prix: 165$");
}
else if(warranties < 1500) {
$(".warranty-container").css("display","flex")
$("#warranty3 a").attr("href", "../foto-care-plan-de-protection-3-ans-couverture-1001-a-1500/75ee9ba0-8e1e-012e-8771-20cf30bab63e?variation=3316162");
$("#warranty2").html("Prix: 200$");
}
else if(warranties < 2000) {
$(".warranty-container").css("display","flex")
$("#warranty3 a").attr("href", "../foto-care-plan-de-protection-3-ans-couverture-1501-a-2000/76ea5060-8e1e-012e-8773-20cf30bab63e?variation=3316165");
$("#warranty2").html("Prix: 290$");
}
else if(warranties < 2500) {
$(".warranty-container").css("display","flex")
$("#warranty3 a").attr("href", "../foto-care-plan-de-protection-3-ans-couverture-2001-a-2500/777b4de0-8e1e-012e-8772-20cf30bab63e?variation=3316168");
$("#warranty2").html("Prix: 360$");
}
else if(warranties < 3000) {
$(".warranty-container").css("display","flex")
$("#warranty3 a").attr("href", "../foto-care-plan-de-protection-3-ans-couverture-2501-a-3000/7835c1a0-8e1e-012e-8771-20cf30bab63e?variation=3316171");
$("#warranty2").html("Prix: 440$");
}
else if(warranties < 4000) {
$(".warranty-container").css("display","flex")
$("#warranty3 a").attr("href", "../foto-care-plan-de-protection-3-ans-couverture-3001-a-4000/7a96c600-8e1e-012e-8773-20cf30bab63e?variation=3316174");
$("#warranty2").html("Prix: 529$");
}
else if(warranties < 5000) {
$(".warranty-container").css("display","flex");
$("#warranty3 a").attr("href", "../foto-care-plan-de-protection-3-ans-couverture-4001-a-5000/7e188160-8e1e-012e-8773-20cf30bab63e?variation=3316180");
$("#warranty2").html("Prix: 675$");
}
else if(warranties < 6000) {
$(".warranty-container").css("display","flex")
$("#warranty3 a").attr("href", "../foto-care-plan-de-protection-3-ans-couverture-5001-a-6000/72ea6980-8e1e-012e-8771-20cf30bab63e?variation=3316183");
$("#warranty2").html("Prix: 825$");
}
else if(warranties < 7000) {
$(".warranty-container").css("display","flex")
$("#warranty3 a").attr("href", "../foto-care-plan-de-protection-3-ans-couverture-6001-a-7000/aa314050-a498-013b-9734-00163ecd2826?variation=3404767");
$("#warranty2").html("Prix: 910$");
}
else if(warranties < 8000) {
$(".warranty-container").css("display","flex")
$("#warranty3 a").attr("href", "../foto-care-plan-de-protection-3-ans-couverture-7001-a-8000/9b430d70-a4aa-013b-3c29-00163e90e196?variation=3404776");
$("#warranty2").html("Prix: 1 050$");
}
else if(warranties < 9000) {
$(".warranty-container").css("display","flex")
$("#warranty3 a").attr("href", "../foto-care-plan-de-protection-3-ans-couverture-8001-a-9000/969e6a60-a4aa-013b-3c28-00163e90e196?variation=3404773");
$("#warranty2").html("Prix: 1 190$");
}
else if(warranties < 10000) {
$(".warranty-container").css("display","flex")
$("#warranty3 a").attr("href", "../foto-care-plan-de-protection-3-ans-couverture-9001-a-10000/92b40830-a4aa-013b-3c27-00163e90e196?variation=3404770");
$("#warranty2").html("Prix: 1 330$");
}
else if(warranties > 10000) {
$(".warranty-container").hide();
}
}
if ($('.dakis-product-desc').html() == "") {
$(".spec-desc-container").hide();
}