Check back soon!
"); } } resultData(); } } function initCarousel(el, value) { $(el).addClass("owl-carousel").owlCarousel({ dots: false, nav: true, navText: ["", ""], slideBy: 'page', responsive: { 0: { items: 1, loop: true }, 481: { items: 2, loop: true }, 768: { items: 5, loop: true }, 992: { items: 5, loop: true }, 1200: { items: 5, loop: true } } }); } function renderList(template, items, it) { var productList = window.location.pathname + "__" + title; var insertHtml = ""; items.forEach(function (item, index) { item.ProductList = productList; item.ProductPosition = index + 1; insertHtml += render(template, item, it); }); return insertHtml; } } function getRecommendations(offerCode) { var url = "/Product/GetRecommendationProducts"; var recommendationTypes = ["PeopleWhoViewedAlsoViewed", "FrequentlyPurchasedTogether", "PeopleWhoBoughtAlsoBought"]; var defaultParams = { offerCode: "", maxItems: 10, recommendationType: 0, category: "", brand: "" }; var ajaxPromises = []; var ajaxResults = {}; var deferred = $.Deferred(); $.each(recommendationTypes, function (index, type) { var params = JSON.parse(JSON.stringify(defaultParams)); params.offerCode = offerCode; params.recommendationType = index; var queryString = $.param(params); var query = $.post(url + "?" + queryString).done(function (response) { ajaxResults[type] = response[type]; }).fail(function (error) { console.log("Error getting recommendations for " + type, error); $("#variant-c-recommendations").hide(); }); ajaxPromises.push(query); }); $.when.apply($, ajaxPromises).done(function () { deferred.resolve(ajaxResults); }).fail(function () { console.log("Error getting all recommendations", error); $("#variant-c-recommendations").hide(); deferred.reject(); }); return deferred.promise(); } function pickRecommendationSet(data, minimum) { if (data["FrequentlyPurchasedTogether"] && data["FrequentlyPurchasedTogether"].length >= minimum) { console.log("Showing FrequentlyBought"); return data["FrequentlyPurchasedTogether"]; } if (data["PeopleWhoBoughtAlsoBought"] && data["PeopleWhoBoughtAlsoBought"].length >= minimum) { console.log("No FrequentlyBought, showing AlsoBought"); return data["PeopleWhoBoughtAlsoBought"]; } if (data["PeopleWhoViewedAlsoViewed"] && data["PeopleWhoViewedAlsoViewed"].length >= minimum) { console.log("No AlsoBought, showing AlsoViewed"); return data["PeopleWhoViewedAlsoViewed"]; } return null; } function prepareRecommendationItems(items) { items.forEach(function (item, index) { var percentOffText = item.PercentOff.DisplayPercentage.replace("(", "").replace(")", ""); if (parseInt(percentOffText) >= 15) { item.BadgeText = percentOffText; } else { item.BadgeText = ""; } item.ToplineAttr = item.Topline.replace(/"/g, ""); }); return items; } function prepareBoutiqueItems(items) { items.forEach(function (item, index) { var priceBadge = "hello"; if (item.OfferId) { item.OfferPriceLow = item.OfferPriceLow.toFixed(2); item.OfferPriceHigh = item.OfferPriceHigh.toFixed(2); var percentOffPriceLow = Math.round(((item.ListPriceLow - item.OfferPriceLow) / item.ListPriceLow) * 100); var percentOffPriceHigh = Math.round(((item.ListPriceHigh - item.OfferPriceHigh) / item.ListPriceHigh) * 100); if (item.OfferPriceLow === item.OfferPriceHigh) { item.OfferPrice = "$" + item.OfferPriceHigh; } else { item.OfferPrice = "$" + item.OfferPriceLow + " – " + "$" + item.OfferPriceHigh; } if (item.ListPriceLow === item.ListPriceHigh) { item.ListPrice = "$" + formatMoney(item.ListPriceHigh); } else { item.ListPrice = "$" + item.ListPriceLow + " – " + "$" + formatMoney(item.ListPriceHigh); } if (item.Title.toLowerCase().indexOf("waterford") >= 0 || percentOffPriceLow > 99 || percentOffPriceLow 99 || percentOffPriceHigh 3 ? j % 3 : 0; return (s + (j ? i.substr(0, j) + t : "") + i.substr(j).replace(/(d{3})(?=d)/g, "$1" + t) + (c && Math.abs(n - i).toFixed() > 0 ? d + Math.abs(n - i).toFixed(c).slice(2) : "")); } function save(key, jsonData, expirationMin) { var expirationMS = expirationMin * 60 * 1000; var record = { value: JSON.stringify(jsonData), timestamp: new Date().getTime() + expirationMS }; localStorage.setItem(key, JSON.stringify(record)); return jsonData; } function load(key) { var record = JSON.parse(localStorage.getItem(key)); if (!record) { return false; } return new Date().getTime()Check back soon!
"); } } resultData(); } } function initCarousel(el, value) { // DEBUG UI OFFERCODE value.forEach(function(r, index) { $(`#QuickView_${r.OfferCode}`).click(function() { console.log('Debug offercode: ', r.OfferCode) }) }) $(el).addClass("owl-carousel").owlCarousel({ dots: false, nav: true, navText: ["", ""], slideBy: 'page', responsive: { 0: { items: 1, loop: true }, 481: { items: 2, loop: true }, 768: { items: 3, loop: true }, 992: { items: 5, loop: true }, 1200: { items: 5, loop: true } } }); } function renderList(template, items, it) { var productList = window.location.pathname + "__" + title; var insertHtml = ""; items.forEach(function(item, index) { item.ProductList = productList; item.ProductPosition = index + 1; insertHtml += render(template, item, it); }); return insertHtml; } } function getRecommendations(offerCode) { var url = "/Product/GetRecommendationProducts"; var recommendationTypes = ["PeopleWhoViewedAlsoViewed", "FrequentlyPurchasedTogether", "PeopleWhoBoughtAlsoBought"]; var defaultParams = { offerCode: "", maxItems: 10, recommendationType: 0, category: "", brand: "" }; var ajaxPromises = []; var ajaxResults = {}; var deferred = $.Deferred(); $.each(recommendationTypes, function(index, type) { var params = JSON.parse(JSON.stringify(defaultParams)); params.offerCode = offerCode; params.recommendationType = index; var queryString = $.param(params); var query = $.post(url + "?" + queryString).done(function(response) { ajaxResults[type] = response[type]; }).fail(function(error) { console.log("Error getting recommendations for " + type, error); $("#variant-c-recommendations").hide(); }); ajaxPromises.push(query); }); $.when.apply($, ajaxPromises).done(function() { deferred.resolve(ajaxResults); }).fail(function() { console.log("Error getting all recommendations", error); $("#variant-c-recommendations").hide(); deferred.reject(); }); return deferred.promise(); } function pickRecommendationSet(data, minimum) { if (data["FrequentlyPurchasedTogether"] && data["FrequentlyPurchasedTogether"].length >= minimum) { console.log("Showing FrequentlyBought"); return data["FrequentlyPurchasedTogether"]; } if (data["PeopleWhoBoughtAlsoBought"] && data["PeopleWhoBoughtAlsoBought"].length >= minimum) { console.log("No FrequentlyBought, showing AlsoBought"); return data["PeopleWhoBoughtAlsoBought"]; } if (data["PeopleWhoViewedAlsoViewed"] && data["PeopleWhoViewedAlsoViewed"].length >= minimum) { console.log("No AlsoBought, showing AlsoViewed"); return data["PeopleWhoViewedAlsoViewed"]; } return null; } function prepareRecommendationItems(items) { items.forEach(function(item, index) { var percentOffText = item.PercentOff.DisplayPercentage.replace("(", "").replace(")", ""); if (parseInt(percentOffText) >= 15) { item.BadgeText = percentOffText; } else { item.BadgeText = ""; } item.ToplineAttr = item.Topline.replace(/"/g, ""); }); return items; } function prepareBoutiqueItems(items) { items.forEach(function(item, index) { var priceBadge = "hello"; if (item.OfferId) { item.OfferPriceLow = item.OfferPriceLow.toFixed(2); item.OfferPriceHigh = item.OfferPriceHigh.toFixed(2); var percentOffPriceLow = Math.round(((item.ListPriceLow - item.OfferPriceLow) / item.ListPriceLow) * 100); var percentOffPriceHigh = Math.round(((item.ListPriceHigh - item.OfferPriceHigh) / item.ListPriceHigh) * 100); if (item.OfferPriceLow === item.OfferPriceHigh) { item.OfferPrice = "$" + item.OfferPriceHigh; } else { item.OfferPrice = "$" + item.OfferPriceLow + " – " + "$" + item.OfferPriceHigh; } if (item.ListPriceLow === item.ListPriceHigh) { item.ListPrice = "$" + formatMoney(item.ListPriceHigh); } else { item.ListPrice = "$" + item.ListPriceLow + " – " + "$" + formatMoney(item.ListPriceHigh); } if (item.Title.toLowerCase().indexOf("waterford") >= 0 || percentOffPriceLow > 99 || percentOffPriceLow 99 || percentOffPriceHigh 3 ? j % 3 : 0; return (s + (j ? i.substr(0, j) + t : "") + i.substr(j).replace(/(d{3})(?=d)/g, "$1" + t) + (c && Math.abs(n - i).toFixed() > 0 ? d + Math.abs(n - i).toFixed(c).slice(2) : "")); } function save(key, jsonData, expirationMin) { var expirationMS = expirationMin * 60 * 1000; var record = { value: JSON.stringify(jsonData), timestamp: new Date().getTime() + expirationMS }; localStorage.setItem(key, JSON.stringify(record)); return jsonData; } function load(key) { var record = JSON.parse(localStorage.getItem(key)); if (!record) { return false; } return new Date().getTime()Terms of Use | Privacy | Accessibility
©2025 ShopHQ. All rights reserved. All trademarks, service marks and logos are owned by or registered to IV Media, LLC All other product or brand names are trademarks of their respective owners.