‘)
$(“.header-cart a.brand-modify”).attr(“href”, “/cart/view”);
/*
jQuery.cachedScript = function (url, options) {
options = $.extend(options || {}, {
dataType: “script”,
cache: true,
url: url
});
jQuery.ajax(options).done(function() {
var $pdpReviewContentContainer = $(“div.pdpReviewContentContainer”)
if (($pdpReviewContentContainer.length > 0) && POWERREVIEWS && POWERREVIEWS.display && POWERREVIEWS.display.engine) {
POWERREVIEWS.display.engine({
write: function (content) {
$pdpReviewContentContainer.append(content);
}
}, {
pr_page_id: $(“#data-product-id”).val(),
pr_write_review: $(“.write-another-review”).attr(‘href’)
});
}
});
return {
done: function() {}
};
};
*/
jQuery(function() {
// FIRST stuff
var match = ‘This item will ship within 60 business days. This product will ship separately and WILL NOT arrive by 12/24.’;
var match2 = ‘3-7 Business Days Shipping:’;
var info = “This item will ship separately from other items and will leave our warehouse within 60 business days.”;
var info2 = “Standard Shipping:”;
var shipTargets = [
{
$target: jQuery(“div.pdpShippingMemo:contains(” + match + “)”),
match: match,
info: info
}, {
$target: jQuery(“div.columns.large-9.product-description span.shipping-message:contains(” + match + “)”),
match: match,
info: info
}, {
$target: jQuery(“table#cartTotalsTable div.ViewSr_shippingSummaryDiv:contains(” + match2 + “), .ViewSr_shippingSummaryDiv span:contains(” + match2 + “)”),
match: match2,
info: info2
}
];
shipTargets.forEach(function(shipTarget) {
shipTarget.$target.each(function() {
var $el = $(this)
$el.html($el.html().replace(shipTarget.match, shipTarget.info))
})
})
// END FIRST stuff
// SECOND stuff
var mcAfeeContent = ‘
McAfee SECURE sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams‘;
$(“#mcafee”).html(mcAfeeContent);
if ((/ipad/i).test(navigator.userAgent)) {
jQuery(window).off(“resize.fndtn.topbar”);
jQuery(‘ul.title-area > li’).off(‘mouseenter’);
jQuery(‘.top-bar section > ul > li > a’).attr(‘href’, ‘#’);
}
/* Facebook iFrame fix */
if (jQuery(‘#pdpProductContainer’).length) {
jQuery(‘.row .pdp-social-networking-control-container iframe’).css(‘height’, ’30px’);
}
/* Hack for DTI/Hor Market pagination missing classes */
jQuery(“.Pagination “).addClass(“row navigation-frame”).removeClass(“Pagination”);
/* write a review pdp fix */
jQuery(‘.pdpReviewContentContainer’).on(‘click’, ‘.pr-write-review-link’, function(){
location.href = jQuery(‘.write-another-review’).attr(‘href’);
});
// END SECOND stuff
// THIRD stuff
// fix for hidden left nav options
$(“div.SidebarListContainer.closed div.accordion-content ul.nav, div.SidebarListContainer.Closed div.accordion-content ul.nav”).closest(“li.accordion-navigation”).removeClass(‘active’).find(“div.accordion-content”).removeClass(‘active’).end().end().removeClass(‘hidden’);
/* My Account Login fix */
jQuery(‘.signInRow’).html(‘

‘);
jQuery(‘.account-login-input #Login_Submit’).css(‘height’,’40px’);
/* End My Account Login Fix */
jQuery(‘#myAccountRegisterForm .register-checkbox-label’)
.css(‘cursor’, ‘default’)
.html(‘By placing an order or creating an account, you affirm that you agree to our
Terms & Conditions and
Privacy Policy.’);
// END THIRD stuff
// FOURTH stuff
// BEGIN: Add card issue fix
window.siteCatalyst_savedCardUser = function(fn) {
return function() {
typeof fn === “function” && fn();
window.location.reload();
}
}(window.siteCatalyst_savedCardUser)
// fix for hidden left nav options
$(“div.SidebarListContainer div.accordion-content ul.hidden”).closest(“li.accordion-navigation”).removeClass(‘active’).find(“div.accordion-content”).removeClass(‘active’).end().end().removeClass(‘hidden’);
// END FOURTH stuff
// FIFTH stuff
var $el = $(‘.wallet-payment-information’).find(‘p’)
$el.text($el.text().replace(‘MasterPass’, ‘Masterpass’))
var $el2 = $(‘.masterpass-container-left *’).filter(function(i, e) {
e.textContent.indexOf(‘MasterPass’) > -1
})
$el2.text($el2.text().replace(‘MasterPass’, ‘Masterpass’))
// end lowercase P in MasterPass text
// color swatch add to cart bug
$(document).on(‘swatch.product.tracking’, function() {
$(“input#data-product-id”).val($(“input#productOverride”).val())
})
// END FIFTH stuff
});

Read More

LEAVE A REPLY

Please enter your comment!
Please enter your name here