₹248₹248
17% OFF
Added to Cart
Added to cart
Go to Cart
Supertails vet will call you for verification.
`; } function hideModal_atc(){ $('#modal_atc_id').fadeOut(2000,'swing',function(){ $('#modal_atc_id').removeAttr('style') hideElement(modal_atc); clearTimeout(hideModalTimeout) }); $('#overlay_atc_id').fadeOut(2000,'swing',function(){ $('#overlay_atc_id').removeAttr('style') hideElement(overlay_atc); }); } function disableButton(button){ button.disabled = true; } function enableButton(button){ button.disabled = false; } window.dataLayer = window.dataLayer || []; (function() { var originalPush = dataLayer.push; dataLayer.push = function() { var args = [].slice.call(arguments); if (args?.[0]?.[0]==='event' && args?.[0]?.[1] === 'add_to_cart') { return; } return originalPush.apply(dataLayer, args); }; })(); function sendEvents({addedItem}){ window.dataLayer = window.dataLayer || []; dataLayer.push({ "event": "add_to_cart", "ecommerce": { "currency": "INR", "value": addedItem.compare_at_price/100, "items": [ { "item_id": "8837941035246", "item_sku": addedItem.sku, "item_name": "Drools Absolute Salmon Oil Syrup Supplement for Dogs", "coupon": "", "discount": "", "index": 0, "item_brand": "Drools", "item_category": "", "item_category2": "", "item_category3": "", "item_category4": "", "item_category5": "", "item_list_id": "", "item_list_name": "", "item_variant": addedItem.title, "location_id": "", "price": addedItem.price/100, "quantity": 1, "edd": sessionStorage.getItem('edd') } ] } }); clevertap.event.push("Product Added", { "product_id": "8837941035246", "product_name": "Drools Absolute Salmon Oil Syrup Supplement for Dogs", "brand": "Drools", "product_category1": "", "product_category2": "", "product_category3": "", "product_category4": "", "product_category5": "", "variant_name": addedItem.title, "variant_id": addedItem.id, "price": addedItem.price/100, "mrp": addedItem.compare_at_price/100, "quantity": 1, "rating": 0, "rating_count": 0, "product_sku": addedItem.sku, 'edd': sessionStorage.getItem('edd') }); if(window.mixpanel){ const dynamicTimeElement = document.getElementById('dynamicTime'); const errorTextElement = document.getElementById('error-text-id'); const dynamicTime = dynamicTimeElement && dynamicTimeElement.textContent ; const errorText = errorTextElement && errorTextElement.textContent ; const deliveryDay = dynamicTime || errorText || 'N/A'; mixpanel.track("Product Added", { 'Product Name': "Drools Absolute Salmon Oil Syrup Supplement for Dogs", 'Product ID': 8837941035246, 'Variant ID': addedItem.id, 'Variant Name': addedItem.name, 'Brand': "Drools", 'Category L1': null, 'Category L2': null, 'Category L3': null, "Category L4": null, "Category L5": null, 'MRP': addedItem.compare_at_price/100, 'Selling Price': addedItem.price/100, 'Rating Count': "0", 'Rating': "0", 'Product Sku': addedItem.sku, 'City': localStorage.getItem('city'), location: 'PDP', "Page Content": 'Product Page', "Delivery Time": deliveryDay, "Device Type": localStorage.getItem('_deviceTypeIL'), "EDD": sessionStorage.getItem('edd') }); } } function getSelectedVarient(){ const urlParams = new URLSearchParams(window.location.search); let selected_id; if(urlParams.has('variant')){ selected_id = urlParams.get('variant'); }else{ selected_id = $(".product-single__variants").find(':selected').attr("selected_variant_id"); } const addedItem = product_json.variants.find(item => item.id == selected_id); return addedItem } function addImageAnimation(){ let position_cart ; if (cartIcon_atc) { position_cart = cartIcon_atc.getBoundingClientRect(); } let style_element = document.createElement('style'); document.head.appendChild(style_element); let keyframes_pos = ` @keyframes moveAnimation { 0% { top: 40%; left: 50%; transform: translate(-50%, -50%); width: 180px; height: 180px; opacity: 0; } 10% { opacity: 0.6; top: 40%; left: 50%; transform: translate(-50%, -50%); width: 180px; height: 180px; } 100% { opacity: 0; width: 46px; height: 46px; top: ${position_cart.top || 0}px; left: ${position_cart.left || 327}px; bottom: ${position_cart.bottom || 55}px; right: ${position_cart.right || 373}px; transform: unset; } } `; style_element.sheet.insertRule(keyframes_pos, 0); if (image_to_cart_animation) { image_to_cart_animation.style.animation = 'moveAnimation 1.1s linear 0s 1'; } } var drawerCross = document.getElementById('drawerCross'); if (drawerCross) { drawerCross.addEventListener('click', function () { if (sizeChartImageDiv.style.display === 'flex') { showAddToCartButtonCalculation(); sizeChartImageDiv.style.display = 'none'; sizeDrawer.style.display = 'flex'; } else { showAddToCartButtonCalculation(); sizeDrawerModel.style.display = 'none'; isDrawerOpen = false; } }); } document.addEventListener('click', function(event) { const sizeDrawer = document.getElementById('sizeDrawer'); const sizeChartImageDiv = document.getElementById('sizeChartImageDiv'); const drawerCross = document.getElementById('drawerCross'); const sizeDrawerModel = document.getElementById('sizeDrawerModel'); const targetElement = event.target; if ( (sizeDrawer && sizeDrawer.contains(targetElement)) || (sizeChartImageDiv && sizeChartImageDiv.contains(targetElement)) || (drawerCross && drawerCross.contains(targetElement)) ) { } else if (sizeDrawerModel && sizeDrawerModel.contains(targetElement)) { const vid = document.getElementById('atcVideoContainer'); if (vid) vid.pause(); sizeDrawerModel.style.display = 'none'; isDrawerOpen = false; showAddToCartButtonCalculation(); } }); function openDrawerEvents(){ var addedItem = getSelectedVarient(); window.dataLayer = window.dataLayer || []; dataLayer.push({ 'event': 'view_size_bottom_drawer', "items": [ { "item_name": "Drools Absolute Salmon Oil Syrup Supplement for Dogs", "item_brand": "Drools", "item_category": "", "item_category2": "", "item_category3": "", "item_category4": "", "item_category5": "", "price": addedItem.price/100, }], "variant_count": 1, }); if(window.mixpanel){ mixpanel.track('view_size_bottom_drawer',{ "items": [ { "item_name": "Drools Absolute Salmon Oil Syrup Supplement for Dogs", "item_brand": "Drools", "item_category": "", "item_category2": "", "item_category3": "", "item_category4": "", "item_category5": "", "price": addedItem.price/100, }], "variant_count": 1, }); } } function otherEvents(eventName){ var addedItem = getSelectedVarient(); window.dataLayer = window.dataLayer || []; dataLayer.push({ 'event': eventName, "items": [ { "item_name": "Drools Absolute Salmon Oil Syrup Supplement for Dogs", "item_brand": "Drools", "item_category": "", "item_category2": "", "item_category3": "", "item_category4": "", "item_category5": "", "price": addedItem.price/100, }] }); if(window.mixpanel){ mixpanel.track(eventName,{ "items": [ { "item_name": "Drools Absolute Salmon Oil Syrup Supplement for Dogs", "item_brand": "Drools", "item_category": "", "item_category2": "", "item_category3": "", "item_category4": "", "item_category5": "", "price": addedItem.price/100, }] }); } } function atcBtnClick(){ $('.variant-wrapper .variant-input').each(function () { const children = this.children; Array.from(children).forEach(child => { if (child.tagName === 'INPUT' && child.checked) { var checkedValue = child.value; $('.varinat-input-atcVarinat[value="' + checkedValue + '"]').click(); var addedItem = getSelectedVarient(); showAddToCartButtonCalculation(); } }); }); } var pharmaData async function getPharmaText() { const pharmaUrl = "https://supertails-backend.el.r.appspot.com/pharmacy/appointmentStatusMsg/pdp"; try { const response = await fetch(pharmaUrl, { method: "GET", headers: { "Content-Type": "application/json", "ngrok-skip-browser-warning": "any", } }); pharmaData = await response.json(); } catch (error) { console.log("Error in pharma", error); pharmaData= { msg: { isAdded: "Our Supertails vet will call you to verify after your order is placed.", isNotAdded: "Our Supertails vet will call you to verify after your order is placed." } }; } } async function updatePhamacyBanner(quantity){ await getPharmaText() if(!pharmaData){ pharmaData= { msg: { isAdded: "Our Supertails vet will call you to verify after your order is placed.", isNotAdded: "Our Supertails vet will call you to verify after your order is placed." } } } const bannerText = document.getElementById("text_parmacy_IL-id"); const bannerText1 = document.getElementById("text_parmacy_IL-id1"); const lineElement = document.querySelectorAll('.pharmacy__banner_line_IL') const pharmacyOuter = document.querySelectorAll('.phamacy__banner_outer_IL') const atcButtonOuterDiv = document.getElementById('atc_button_outer-id') const atcPharmaText = document.getElementById('pharmacy_banner_text_IL_atc-id') const paymentButtonDiv = document.querySelector(".payment-buttons.add-to-cart-sticky1.mobilefull"); const mainBanner = document.getElementById("pharmacy__banner_main_IL-id"); const parentDiv = document.getElementById("goToCart_Modal_Pharmacy_id"); const divToAppend = document.getElementById("pharmacy__banner_main_IL-id"); const pharmaMobileOuter = document.getElementById("pharmacy_mobile-container-id") // Qty 0 Screen Mobile if(quantity<=0 && window.innerWidth <= 768 && pharmaData){ if (bannerText) {bannerText.innerHTML = pharmaData.msg.isNotAdded;} if (bannerText1) {bannerText1.innerHTML = pharmaData.msg.isNotAdded;} if (pharmaMobileOuter) {pharmaMobileOuter.style.display = "block";} $('.phamacy__banner_outer_IL')?.css('display', 'none'); $('.pharmacy_mobile-container')?.css('display', 'block'); $('.pharmacy_img_IL')?.css('margin', '0px 10px 0px 0px'); $('.Rx_banner_text-id')?.css('display', 'flex'); if (paymentButtonDiv) { paymentButtonDiv.style.padding = "10px 10px 0px 10px"; paymentButtonDiv.style.backgroundImage = "none"; paymentButtonDiv.style.borderRadius = "0px"; } if (atcButtonOuterDiv) { atcButtonOuterDiv.classList.remove("add-border-atc"); } $('#uploadery-container')?.remove(); window.sessionStorage.removeItem("pharmacyBanner"); } // Qty 0 Screen Desktop if(quantity<=0 && window.innerWidth > 768){ if (bannerText) {bannerText.innerHTML = pharmaData.msg.isNotAdded} $('#pharmacy_mobile-container-id')?.css('display','none') $('.pharmacy_banner_text_IL')?.css('width', '415px') $('.pharmacy_img_IL')?.css('margin','0px 10px 0px 0px') $('.pharmacy__next-steps')?.css('display', 'none') $('#pharmacy__banner_line_IL-id1')?.css('display','block') $('#pharmacy__banner_line_IL-id2')?.css('display','block') $('#pharmacy__banner_main_IL-id')?.css('background-image','none') $("#pharmacy_rx_banner-id")?.css("display","flex") $("#pharmacy__banner_main_IL-id")?.css('height','74px') $('#uploadery-container')?.remove(); } // Qty 1 Screen Mobile const pharmacyBannerFlag = window.sessionStorage.getItem("pharmacyBanner") if(quantity>=1 && window.innerWidth <= 768){ if(quantity===1 && !pharmacyBannerFlag){ window.sessionStorage.setItem("pharmacyBanner", true) } if (bannerText) {bannerText.innerHTML = pharmaData.msg.isAdded;} if (atcPharmaText) {atcPharmaText.innerHTML = pharmaData.msg.isAdded;} $('#pharmacy__banner_line_IL-id1')?.css('display','none') $('#pharmacy__banner_line_IL-id2')?.css('display','none') if(!pharmacyBannerFlag){ $('.phamacy__banner_outer_IL').css('display','block') atcButtonOuterDiv.classList.add("add-border-atc") $('.pharmacy__next-steps').css('display', 'flex') $("#pharmacy_rx_banner-id").css("display","none") if (paymentButtonDiv) { // Append styles to the element paymentButtonDiv.style.padding = "5px 0px 0px 0px"; paymentButtonDiv.style.backgroundImage = "linear-gradient(94.96deg, rgb(231, 243, 255) 0.57%, rgb(250, 252, 255) 99.46%)"; paymentButtonDiv.style.borderRadius = "16px 16px 0 0"; $('.pharmacy__next-steps').css('display', 'flex') $('.pharmacy_close_atc').css('display', 'flex') $("#pharmacy__banner_main_IL-id").css('height','140px') $('.pharmacy__banner_IL').css('padding-top','10px') } const element = document.querySelector('.view_cart_wet-verification_div'); $(document).ready(function(){ const ispharma = ["Adult","all_","all_minus_gnv","Animal:Dogs","BBB25","BDAY25","Best seller","BestCard_Offer","bestseller","Bestseller_Drools","BHW ATC","BHW POP","BLOCKBUSTER","BLR","BLR120","Both treats","Brand:Drools","Breed Size:Maxi","Breed Size:Medium","Breed Size:Mini","Budget","C\u0026D Food","Canine(0-6 mon)","Canine(2-5yr)","Canine(6mon-2yr)","Category type: Non-food","cl_non_food","coupon_use","Cross Recom","Dog Food \u0026 Treats","Dog Wet Treats","Dogs","Drools","Drools Dog","ECO_TREAT","Economic","EEP","EOSS Health \u0026 Wellness","EPP","Essential Oils","Food Supplements","Food\/non-food: Food","Food\/non-food: Non-food","Grooming_Tick\u0026Flea","Health \u0026 Wellness","Hello20","Indian Brands","LD","Life stage:Adult","Life stage:Puppy","Life stage:Senior","Maxi","Medicines \u0026 Food Supplements","Medicines \u0026 Supplements","Medium","Min 10% Wl","Min 15% Wl","Mini","Monsoon_Collection","Multivitamin \u0026 Mineral","no-return-exchange","NON-FOOD","non_pharmacy_non_dropship","Offline","Oils and Sprays","OTC","Ph HW","Price Feed","Product Category:Supplements","Product Sub Category:Multivitamin \u0026 Mineral","Product Type:Food Supplements","PromiseDay_Dog","Puppy","Puppy_Corner","Recom Feed","Recuring NF","Ret best_seller","Skin \u0026 Coat Food","SP ACCESS","Supplements","Tax:12","Top 30 Dog Pharmacy","Top 30 Pharmacy","UCJ-Non Food","Under299","Upsell","Upto 84%","Upto 90%","Valentine_Dog","Winter Essentials"].includes('Veterinary Diet'); if (ispharma) { if (window.innerWidth <= 768) { const element = document.querySelector('.view_cart_wet-verification_div'); element.classList.remove('blur-effect'); element.classList.add('show-element'); setTimeout(() => { element.classList.add('blur-effect'); setTimeout(() => { element.classList.remove('show-element'); }, 1500); }, 4000); } } }) setTimeout(() => { const banner123 = document.getElementById("phamacy__banner_outer_IL-id"); if (banner123) banner123.style.display = 'none'; const buttons123 = document.querySelectorAll('.payment-buttons.add-to-cart-sticky1.mobilefull'); buttons123.forEach(button => { button.style.padding = '10px 10px 0px 10px'; button.style.backgroundImage = 'none'; button.style.borderRadius = '0px'; }); const atcOuter = document.querySelectorAll('.add-border-atc'); atcOuter.forEach(button => { button.style.boxShadow = 'none'; }) const overlay123 = document.querySelectorAll('.pharmacy_overlay'); overlay123.forEach(element => { element.classList.add('hidden'); element.addEventListener('transitionend', () => { element.style.display = 'none'; }); }); },5000) } } // Qty 1 Screen Desktop if(quantity>0 && window.innerWidth > 768){ if (mainBanner) { mainBanner.style.backgroundImage = "linear-gradient(94.96deg, #E7F3FF 0.57%, #FAFCFF 99.46%)"; } $("#pharmacy_rx_banner-id")?.css("display","none") if (bannerText) {bannerText.innerHTML = pharmaData.msg.isAdded} if (atcPharmaText) {atcPharmaText.innerHTML = pharmaData.msg.isAdded} if(lineElement){ lineElement.forEach(element => { element.style.display = "none"; }) } if(parentDiv){ parentDiv.appendChild(divToAppend); } if(pharmacyOuter){ pharmacyOuter.forEach(element => { element.style.display = "block"; }) } if(pharmaMobileOuter){ pharmaMobileOuter.style.display = "none"; } $("#pharmacy__banner_main_IL-id")?.css('height','74px') $('#pharmacy_mobile-container-id')?.css('display', 'none') $('#pharmacy_close_atc-id')?.css('display','none') $('.pharmacy__next-steps')?.css('display', 'flex') $('.pharmacy__next-steps')?.css('box-shadow', 'none') $("#pharmacy__banner_main_IL-id")?.css('height','120px') } }
',a.push(_)),e.quietZone&&(s="display:inline-block; width:"+(e.width+2*e.quietZone)+"px; height:"+(e.width+2*e.quietZone)+"px;background:"+e.quietZoneColor+"; text-align:center;"),a.push('
"),e.logo&&(_=new Image,null!=e.crossOrigin&&(_.crossOrigin=e.crossOrigin),_.src=e.logo,(s=e.width/3.5)!=(_=e.height/3.5)&&(s=_),e.logoWidth&&(s=e.logoWidth),e.logoHeight&&(_=e.logoHeight),m="position:relative; z-index:1;display:table-cell;top:-"+((e.height-e.titleHeight)/2+_/2+e.quietZone)+"px;text-align:center; width:"+s+"px; height:"+_+"px;line-height:"+s+"px; vertical-align: middle;",e.logoBackgroundTransparent||(m+="background:"+e.logoBackgroundColor),a.push('
')),e.onRenderingStart&&e.onRenderingStart(e),o.innerHTML=a.join("");var m=o.childNodes[0],s=(e.width-m.offsetWidth)/2,_=(e.height-m.offsetHeight)/2;0