console.log('uid='); //*** time check 1 (0.01597s elapsed) //*** time check 2 (0.01663s elapsed) //*** JJ itemId=oraclens-wipes //*** pageType=category //*** time check 3 (0.01701s elapsed) //*** forceOutOfStock=false //*** time check 4 (0.01702s elapsed) //*** public_mod_structuredData_renderJsonByItemId found //*** public_mod_structuredData enabled var script = document.createElement('script'); script.setAttribute('type', 'application/ld+json'); script.innerHTML = "{\"@context\":\"http:\\/\\/schema.org\",\"@type\":\"BreadcrumbList\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@id\":\"https:\\/\\/www.entirelypets.com\\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@id\":\"https:\\/\\/www.entirelypets.com\\/dentalproductsdogs.html\",\"name\":\"Dental Products for Dogs\"}},{\"@type\":\"ListItem\",\"position\":3,\"item\":{\"@id\":\"https:\\/\\/www.entirelypets.com\\/additivesdogs.html\",\"name\":\"Dental Additives for Dogs\"}},{\"@type\":\"ListItem\",\"position\":4,\"item\":{\"@id\":\"https:\\/\\/www.entirelypets.com\\/oraclens1.html\",\"name\":\"Ora-Clens Dental Care\"}},{\"@type\":\"ListItem\",\"position\":5,\"item\":{\"@id\":\"https:\\/\\/www.entirelypets.com\\/oraclens-wipes.html\",\"name\":\"Ora-Clens Dental Care\"}}]}" document.getElementsByTagName('head')[0].appendChild(script); ; var script = document.createElement('script'); script.setAttribute('type', 'application/ld+json'); script.innerHTML = "{\"@context\":\"http:\\/\\/schema.org\",\"@type\":\"Product\",\"offers\":{\"@type\":\"Offer\",\"price\":\"0.00\",\"priceCurrency\":\"USD\",\"priceValidUntil\":\"2025-03-20\",\"seller\":{\"@type\":\"Organization\",\"name\":\"Entirelypets.com\"},\"@id\":\"https:\\/\\/www.entirelypets.com\\/oraclens-wipes.html#offers\",\"url\":\"https:\\/\\/www.entirelypets.com\\/oraclens-wipes.html\",\"itemCondition\":\"NewCondition\",\"availability\":\"OutOfStock\"},\"name\":\"Ora-Clens Dental Care\",\"sku\":\"oraclens-wipes\",\"@id\":\"https:\\/\\/www.entirelypets.com\\/oraclens-wipes.html#product\",\"review\": [{\"@type\":\"Review\",\"itemReviewed\":\"Ora-Clens Dental Wipes (50 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"1.0\"},\"author\":{\"@type\":\"person\",\"name\":\"Kessler\"},\"reviewBody\":\"Never received product after multiple attempts of calling. Awful customer service. Spoke to many people who said a manager will call back. Never happened.\",\"datePublished\":\"2024-09-01 19:43:08\"},{\"@type\":\"Review\",\"itemReviewed\":\"Ora-Clens Dental Wipes (50 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"1.0\"},\"author\":{\"@type\":\"person\",\"name\":\"Diana S.\"},\"reviewBody\":\"My dogs did not care for these wipes, it smells like alcohol and mint , they ran and hid everytime i brought out the container\",\"datePublished\":\"2023-05-31 08:20:16\"},{\"@type\":\"Review\",\"itemReviewed\":\"Ora-Clens Dental Wipes (50 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"5.0\"},\"author\":{\"@type\":\"person\",\"name\":\"ED\"},\"reviewBody\":\"We have been using these wipes for a number of years on multiple dogs. The product has helped with their dental health and overall breath. \",\"datePublished\":\"2023-02-23 07:49:47\"},{\"@type\":\"Review\",\"itemReviewed\":\"Ora-Clens Dental Wipes (50 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"5.0\"},\"author\":{\"@type\":\"person\",\"name\":\"Maria L.\"},\"reviewBody\":\"Works really well \",\"datePublished\":\"2021-12-20 04:06:39\"},{\"@type\":\"Review\",\"itemReviewed\":\"6-PACK Ora-Clens Dental Wipes (300 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"5.0\"},\"author\":{\"@type\":\"person\",\"name\":\"Denice C.\"},\"reviewBody\":\"Have used for years and it has prolonged necessary dental cleanings due to teeth have less tartar build up.\",\"datePublished\":\"2020-10-05 07:58:32\"},{\"@type\":\"Review\",\"itemReviewed\":\"Ora-Clens Dental Wipes (50 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"4.0\"},\"author\":{\"@type\":\"person\",\"name\":\"Priscilla\"},\"reviewBody\":\"I use these on my dogs very small front teeth as she will not tolerate brushing there. I do brush the back teeth and then use the wipes there also. Keeps the front teeth very clean and am satisfied that they are helping the molars also. \",\"datePublished\":\"2019-10-17 15:43:44\"},{\"@type\":\"Review\",\"itemReviewed\":\"6-PACK Ora-Clens Dental Wipes (300 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"1.0\"},\"author\":{\"@type\":\"person\",\"name\":\"Butchi\"},\"reviewBody\":\"I have used these wipes everyday on my dog\'s teeth since her ;last dental cleaning a year ago. Her dental cleaning today does not support the supposed efficacy the company shares. Her teeth were fine 1 yr ago. Today she needed 8 teeth extracted due to periodontal disease. I have faithfully cleaned her teeth every night. Last year no problems. 1 year later 8 extractions, and 4 of the teeth were infected as well. Don\'t waste your time, energy and your dog\'s health using this product.\",\"datePublished\":\"2017-09-12 14:42:34\"},{\"@type\":\"Review\",\"itemReviewed\":\"6-PACK Ora-Clens Dental Wipes (300 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"1.0\"},\"author\":{\"@type\":\"person\",\"name\":\"He\"},\"reviewBody\":\"I had my dog\'s teeth cleaned by the Vet in May 2016. As you know they have to put the pet under anesthesia to do this, which can be problematic in some animals. So I ordered this product and have used this product everyday since her cleaning. I just took her to the vet for her annual and the vet told me she needed her teeth cleaned again and showed me the tartar that had built up despite cleaning her teeth with these wipes for over a year!\",\"datePublished\":\"2017-07-02 12:17:49\"},{\"@type\":\"Review\",\"itemReviewed\":\"Ora-Clens Dental Wipes (50 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"4.0\"},\"author\":{\"@type\":\"person\",\"name\":\"JH\"},\"reviewBody\":\"The dental wipes are very easy to use & so much easier than brushing. They\'re especially helping with the tarter and plaque on the canine teeth of my 12 yr lab mix.\",\"datePublished\":\"2017-01-05 16:09:32\"},{\"@type\":\"Review\",\"itemReviewed\":\"3-PACK Ora-Clens Dental Wipes (150 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"5.0\"},\"author\":{\"@type\":\"person\",\"name\":\"marazara\"},\"reviewBody\":\"The wipes make it easier to clean the back teeth. My dogs like them which helps also.\",\"datePublished\":\"2016-10-21 19:27:08\"},{\"@type\":\"Review\",\"itemReviewed\":\"6-PACK Ora-Clens Dental Wipes (300 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"5.0\"},\"author\":{\"@type\":\"person\",\"name\":\"WHS\"},\"reviewBody\":\"This is a great product for dogs who will not tolerate much tooth brushing. They almost all will allow you to wipe their teeth with these.\",\"datePublished\":\"2016-05-13 11:17:17\"},{\"@type\":\"Review\",\"itemReviewed\":\"Ora-Clens Dental Wipes (50 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"4.0\"},\"author\":{\"@type\":\"person\",\"name\":\"Misty\'s M.\"},\"reviewBody\":\"I bought these wipes hoping to keep my dog\'s mouth in a healthy state. I wanted to freshen her breath while cleaning her teeth and her gum area.\\n\\nThe problem I have is my dog is very, very good at clamping her mouth closed. I am able, after a while, to access the rear gum area while lifting her top jowl but it\'s a tricky process. Even so, I think these are working for her. Her breath is better and when she yawns, I can see her teeth look good. She doesn\'t mind the flavor, just the intrusion into her mouth. She\'s a nervous little dog and guards herself tightly.\\n\\nAt any rate, I recommend these wipes. My only real suggestion would be to make them larger. The size of these makes it even more difficult to use them on a dog who won\'t open her mouth.\",\"datePublished\":\"2015-11-24 11:01:51\"},{\"@type\":\"Review\",\"itemReviewed\":\"6-PACK Ora-Clens Dental Wipes (300 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"5.0\"},\"author\":{\"@type\":\"person\",\"name\":\"EddieC53\"},\"reviewBody\":\"We use those wipes every night on all three dogs and it seems to help with the healthof their teeth.\",\"datePublished\":\"2015-10-07 08:02:11\"},{\"@type\":\"Review\",\"itemReviewed\":\"6-PACK Ora-Clens Dental Wipes (300 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"4.0\"},\"author\":{\"@type\":\"person\",\"name\":\"may j.\"},\"reviewBody\":\"Pad rather small for my big dogs mouths...I use two!but overall does a great job!\",\"datePublished\":\"2015-07-01 07:35:11\"},{\"@type\":\"Review\",\"itemReviewed\":\"3-PACK Ora-Clens Dental Wipes (150 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"4.0\"},\"author\":{\"@type\":\"person\",\"name\":\"junior\"},\"reviewBody\":\"just started to use it. It is very easy to use compared to brushing their teeth, but I will not know if it is effective until a longer time period.\",\"datePublished\":\"2015-06-09 14:37:47\"},{\"@type\":\"Review\",\"itemReviewed\":\"6-PACK Ora-Clens Dental Wipes (300 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"5.0\"},\"author\":{\"@type\":\"person\",\"name\":\"Sissy\"},\"reviewBody\":\"My dog is allergic to almost all dental products except ora-clens wipes and ora-vet dental gel. These products keep my dog healthy daily as well as produce good dental hygine.\",\"datePublished\":\"2015-03-22 14:34:55\"},{\"@type\":\"Review\",\"itemReviewed\":\"3-PACK Ora-Clens Dental Wipes (150 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"5.0\"},\"author\":{\"@type\":\"person\",\"name\":\"Miles\"},\"reviewBody\":\"My two Yorkshire Terrier (1 year, 3-4 years) became clean teeth immediately after using this Ora-Clens product\",\"datePublished\":\"2015-02-23 00:25:21\"},{\"@type\":\"Review\",\"itemReviewed\":\"Ora-Clens Dental Wipes (50 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"5.0\"},\"author\":{\"@type\":\"person\",\"name\":\"greyracers\"},\"reviewBody\":\"We have a 11 year old greyhound that has developed a bleeding condition that prevents him from having dentals any more. In searching for a dental product for him, I found the Ora-Clens wipes. While he does not love the minty smell and flavor, he easily allows us to thoroughly clean his teeth twice a day. The wipes do a great job of removing the gook that comes from eating wet kibble. The cost of the product makes it very affordable to use. I love when a product lives up to its claim and this product does!\",\"datePublished\":\"2014-08-23 06:15:45\"},{\"@type\":\"Review\",\"itemReviewed\":\"Ora-Clens Dental Wipes (50 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"3.0\"},\"author\":{\"@type\":\"person\",\"name\":\"MDillon\"},\"reviewBody\":\"I use this product every other day between brushing or when I am crunched for time. It gives my Pom fresh breath and she likes the taste but it obviously doesn\'t clean as good as a brush.\",\"datePublished\":\"2014-01-16 18:41:27\"},{\"@type\":\"Review\",\"itemReviewed\":\"Ora-Clens Dental Wipes (50 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"5.0\"},\"author\":{\"@type\":\"person\",\"name\":\"Barbara\"},\"reviewBody\":\"Dental wipes are a great addition to teeth brushing. They are easy to use and don\'t require as much time as brushing. I alternate between the two. I usually use the wipes just before bed to clean excess food and plaque that has accumulated during the day. The Chlorhexidine Gluconate is also antiseptic and helps with bad breath.\",\"datePublished\":\"2014-01-07 20:12:34\"},{\"@type\":\"Review\",\"itemReviewed\":\"Ora-Clens Dental Wipes (50 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"2.0\"},\"author\":{\"@type\":\"person\",\"name\":\"Tango b.\"},\"reviewBody\":\"The pads are too flimsy and ball up when I\'m using them.\",\"datePublished\":\"2013-12-17 20:00:52\"},{\"@type\":\"Review\",\"itemReviewed\":\"3-PACK Ora-Clens Dental Wipes (150 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"5.0\"},\"author\":{\"@type\":\"person\",\"name\":\"Lu\"},\"reviewBody\":\"Tooth brushes seem too big for the mouth of my dogs but dental care is so important. I was happy to find these cleansing pads. They\'re less expensive than the ones I used in the past but work just as well.\\nI use the pads a little differently than some people might. First I clean the dog\'s teeth with the pad. Then I turn the pad over and apply a little dog toothpaste to the \\\"new\\\" side and clean the teeth once more. This seems to work pretty well.\",\"datePublished\":\"2013-09-17 23:09:57\"},{\"@type\":\"Review\",\"itemReviewed\":\"Ora-Clens Dental Wipes (50 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"5.0\"},\"author\":{\"@type\":\"person\",\"name\":\"me\"},\"reviewBody\":\"seem to be working ,easy to use and dog does not mind\",\"datePublished\":\"2013-09-12 18:41:16\"},{\"@type\":\"Review\",\"itemReviewed\":\"Ora-Clens Dental Wipes (50 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"4.0\"},\"author\":{\"@type\":\"person\",\"name\":\"Bettylafea67\"},\"reviewBody\":\"This is a good product to use in between brushing. My cat seems to tolerate it and it does clean his teeth.\",\"datePublished\":\"2013-08-05 22:17:40\"},{\"@type\":\"Review\",\"itemReviewed\":\"Ora-Clens Dental Wipes (50 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"5.0\"},\"author\":{\"@type\":\"person\",\"name\":\"Westie m.\"},\"reviewBody\":\"Easy to use & helps with doggie breath as well as cleaning inside the gum line.\",\"datePublished\":\"2013-07-26 20:21:18\"},{\"@type\":\"Review\",\"itemReviewed\":\"3-PACK Ora-Clens Dental Wipes (150 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"4.0\"},\"author\":{\"@type\":\"person\",\"name\":\"Margsheltie\"},\"reviewBody\":\"wipes are large size, stay wet down to bottom of jar. Toothpaste applied with them. Using them daily and hope to avoid $ vet cleaning bills in future.\",\"datePublished\":\"2013-03-21 08:59:50\"},{\"@type\":\"Review\",\"itemReviewed\":\"3-PACK Ora-Clens Dental Wipes (150 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"5.0\"},\"author\":{\"@type\":\"person\",\"name\":\"Alexandria\"},\"reviewBody\":\"Exelent ,very effective ,helps to maintain to keep my dog and cat\'s teeth clean for qiute some time.\",\"datePublished\":\"2012-12-25 21:41:28\"},{\"@type\":\"Review\",\"itemReviewed\":\"Ora-Clens Dental Wipes (50 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"5.0\"},\"author\":{\"@type\":\"person\",\"name\":\"debrr\"},\"reviewBody\":\"I will continue to buy this product.It has been amazing for my dogs teeth.\",\"datePublished\":\"2012-11-21 12:43:37\"},{\"@type\":\"Review\",\"itemReviewed\":\"Ora-Clens Dental Wipes (50 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"4.0\"},\"author\":{\"@type\":\"person\",\"name\":\"Inna\"},\"reviewBody\":\"this is a good product. it is easy to use. another alternative to brushing with a toothbrush. thank you EntirelyPets.\",\"datePublished\":\"2012-11-06 13:34:50\"},{\"@type\":\"Review\",\"itemReviewed\":\"Ora-Clens Dental Wipes (50 Count)\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"4.0\"},\"author\":{\"@type\":\"person\",\"name\":\"Syd\"},\"reviewBody\":\"I have a new small dog who was fighting the toothbrush. It was too big for her mouth and she just didn\'t like it. The wipes were easy to use and she didn\'t fight me when I used them. It\'s been over a month now and she still doesn\'t mind me using them.\",\"datePublished\":\"2012-10-26 11:43:54\"}],\"aggregateRating\":{\"@type\":\"AggregateRating\",\"reviewCount\":\"36\",\"ratingValue\":\"4.0\"}}" document.getElementsByTagName('head')[0].appendChild(script); ; //*** time check 5 (0.05007s elapsed) //*** mod_storeClosed called //*** time check 6 (0.05021s elapsed) //*** time check 7 (0.05022s elapsed) var pdServerTime = new Date("2025-03-17T10:58:55-05:00"); var pdProductId = "oraclens-wipes"; //************************************************ //************ JS/CSS FILE ROUTINES ************* //************************************************ function pdLoadJsCssFile(filename, filetype){ if (filetype=="js") { var fileref=document.createElement('script'); fileref.setAttribute("type","text/javascript"); fileref.setAttribute("async",true); fileref.setAttribute("src", filename); } else if (filetype=="css") { var fileref=document.createElement("link"); fileref.setAttribute("rel", "stylesheet"); fileref.setAttribute("type", "text/css"); fileref.setAttribute("href", filename); } if (typeof fileref!="undefined") document.getElementsByTagName("head")[0].appendChild(fileref); } function pdAddStyle(css) { var style = document.createElement("style"); style.innerHTML = css; document.getElementsByTagName("body")[0].appendChild(style); } //*** time check 8 (0.05023s elapsed) /* pdGetElementsByClassName -- Revised to avoid JS conflicts with libraries that override native "getElementsByClassName" browser function in IE Developed by Robert Nyman, http://www.robertnyman.com Code/licensing: http://code.google.com/p/getelementsbyclassname/ */ var pdGetElementsByClassName = function (className, tag, elm){ var ieVersion = getInternetExplorerVersion(); if (ieVersion == -1 && document.getElementsByClassName) { pdGetElementsByClassName = function (className, tag, elm) { elm = elm || document; var elements = elm.getElementsByClassName(className), nodeName = (tag)? new RegExp("\b" + tag + "\b", "i") : null, returnElements = [], current; for(var i=0, il=elements.length; i -1) { if(signatureList[i] == 'android') { //*** ONLY CONSIDER android a mobile device if "mobile" is also present in user agent string if(agent.indexOf("mobile") > -1) isMobile = true; } else { isMobile = true; } } } return isMobile; } function pdIsIpad() { var isIpad = false; var signatureList = new Array('ipad'); var agent = navigator.userAgent.toLowerCase(); for(var i=0;i -1) isIpad = true; } return isIpad; } function pdIsTablet() { var isTablet = false; var signatureList = new Array('ipad', 'android'); var agent = navigator.userAgent.toLowerCase(); for(var i=0;i -1) { isTablet = true; //*** ASSUME TABLET if(signatureList[i] == 'android') { //*** ONLY CONSIDER android a mobile device if "mobile" is also present in user agent string if(agent.indexOf("mobile") > -1) isTablet = false; } else { isTablet = true; } } } return isTablet; } function pdFormatCurrency(num, includeDollarSign) { num = num.toString().replace(/$|\,/g,''); if(isNaN(num)) num = "0"; sign = (num == (num = Math.abs(num))); num = Math.floor(num*100+0.50000000001); cents = num%100; num = Math.floor(num/100).toString(); if(cents<10) cents = "0" + cents; for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++) num = num.substring(0,num.length-(4*i+3))+','+ num.substring(num.length-(4*i+3)); var returnValue = (((sign)?'':'-') + num + '.' + cents); if(includeDollarSign == true) returnValue = "$" + returnValue; return returnValue; } function pdFindParentForm(element) { var elm,parentForm; for (elm = element.parentNode; elm; elm = elm.parentNode) { if(elm.tagName.toLowerCase() == "form") { parentForm = elm; break; } } return parentForm; } function pdHideForLoggedInUser() { var hideList = pdGetElementsByClassName("pdHideForLoggedInUser", null); for(var i=0;i (36 reviews)"; elements.forEach(element => { element.innerHTML = newHtml; }); elements = document.querySelectorAll(".pdRatingStarsWrapper[productId='oraclendtlwps150'], .pdRatingStarsWrapper[data-itemid='oraclendtlwps150']"); newHtml = "
(36 reviews)"; elements.forEach(element => { element.innerHTML = newHtml; }); elements = document.querySelectorAll(".pdRatingStarsWrapper[productId='oraclendtlwps300'], .pdRatingStarsWrapper[data-itemid='oraclendtlwps300']"); newHtml = "
(36 reviews)"; elements.forEach(element => { element.innerHTML = newHtml; }); pdStarsRefreshFlag = false; } } pdDisplayCategoryStars(); //*** time check 12 (0.06163s elapsed) $(".abr-flex-favorite-link").on("click", function(){ var pdAddToFavoritesAction = "https://myaccount.entirelypets.com/mod_favorites/ajax/favoritesAddItemNew.php"; var itemId = jQuery(this).parent().parent().data("data-itemid"); var productId = jQuery(this).parent().parent().data("productId"); var item; if(!isBlank(itemId)){ item = itemId; }else{ item = productId; } var pdAddToFavoritesButton = jQuery(this); if (!item) { console.log("Unable to identify item id for adding to favorites"); return false; } var data = { vwitem: item } //**** IF ITEM IS ALREADY FAVORITED, DISABLE ACTIONS AND DIRECT TO CUSTOMER FAVORITES *** var pdItemAlreadyInFavorites = jQuery(this).children("div").hasClass("is-favorite"); var pdItemAddedToFavorites = jQuery(this).children("div").hasClass("is-added"); if(pdItemAlreadyInFavorites == true || pdItemAddedToFavorites == true){ console.log("Item is already in customer favorites"); return false; } jQuery.ajax({ 'async': false, 'global': false, 'xhrFields': {withCredentials: true}, 'type': "POST", 'url': pdAddToFavoritesAction, 'data': data, 'crossDomain': true, 'success': function (response) { if (response.indexOf("<") == 0){ response = response.slice(response.indexOf(">")+1); } var data = jQuery.parseJSON(response); console.log(data); if (data['loggedIn'] == true){ jQuery(pdAddToFavoritesButton).addClass("is-favorite"); console.log("Success adding to favorites"); } else{ console.log("User not logged in adding to favorites"); } }, 'error': function(xhr, status, error){ var errorMessage = xhr.status + ': ' + xhr.statusText console.log('Error - ' + errorMessage); } }); }); function pdAddToFavorites(orderForm,index,productUrl) { var pdAddToFavoritesAction = "https://myaccount.entirelypets.com/mod_favorites/favoritesAddItem.php"; if(pdIsBlank(index)) index = 0; var item = "vwitem" + index; var itemAttr = "vwattr" + index + "_"; //*** CAN'T FIND MULTIFORM ELEMENT? FALL BACK TO SINGLE ITEM CASE if(typeof orderForm[item] == "undefined") { item = "item"; itemAttr = "vwattr_"; } //******** ATTACH PRODUCT ID INPUT ************** if(item != "item") { var inputProductId = document.createElement("INPUT"); inputProductId.type = "hidden"; inputProductId.name = "add-single-favorites"; inputProductId.value = index; orderForm.appendChild(inputProductId); } if(productUrl == "autoDetect") productUrl = String(document.location); if(!pdIsBlank(productUrl)) { var inputOptions = document.createElement("INPUT"); inputOptions.type = "hidden"; inputOptions.name = "productUrl"; inputOptions.value = productUrl; orderForm.appendChild(inputOptions); } var tempAction = orderForm.action; var copiedQueryString = ""; var queryStringPosition = tempAction.indexOf("?"); if(queryStringPosition > -1) { copiedQueryString = tempAction.substring(queryStringPosition, tempAction.length); copiedQueryString = copiedQueryString.replace("+", "%20"); } orderForm.action=pdAddToFavoritesAction + copiedQueryString; if(orderForm.target != "_top") orderForm.target = ""; //*** COMPAT W/ SCFC orderForm.submit(); orderForm.action = tempAction; orderForm.removeChild(inputProductId); orderForm.removeChild(inputOptions); return false; } //*** time check 13 (0.06173s elapsed) //*** time check 14 (0.06173s elapsed) //*** time check 15 (0.06178s elapsed) if (typeof pdPerformLoginActions === "function") { pdPerformLoginActions(false); } //*** time check 16 (0.06266s elapsed) //*** time check 17 (0.06348s elapsed) //*** time check 18 (0.06439s elapsed) //*** time check 19 (0.06442s elapsed) //*** time check 20 (0.06515s elapsed) //*** time check 21 (0.06584s elapsed) //*** time check 22 (0.06699s elapsed) //********************************* //*** BEGIN mod_promotionCenter *** //********************************* //*** COULD NOT FIND PUBLIC FUNCTION 'public_mod_promotionCenter_getRenderedPageScript3()' //******************************* //*** END mod_promotionCenter *** //******************************* //*** time check 23 (0.06701s elapsed) //*** SEND PROMO INFO TO ALREADY ON-PAGE HANDLER FUNCTION var pdPromo = {}; try{pdHandlePromoInfo(pdPromo)} catch(e) {} //*** SEND PROMO INFO TO ALREADY ON-PAGE HANDLER FUNCTION var pdProductListCalloutHtml = ""; try{pdHandleProductListCallout(pdProductListCalloutHtml)} catch(e) {} //*** time check 24 (0.06763s elapsed) //*** mod_fbConversion is NOT enabled! //*** time check 25 (0.06828s elapsed) //*** time check 26 (0.06894s elapsed) //*** time check 27 (0.06954s elapsed) //*** time check 28 (0.07012s elapsed) //**** CART ITEM COUNT MESSAGE ***** function pdDisplayCartItemCount() { var pdCartItemCount = pdGetCookie('pdCartItemCount'); if(!pdIsBlank(pdCartItemCount)) { var pdCartItemCountMessage = pdCartItemCount; jQuery('.pdCartItemCountMessage').html(pdCartItemCountMessage); } } pdDisplayCartItemCount(); //*** pageScript end (0.07016s elapsed) //*** time check 29 (0.07016s elapsed)