We realize the inconvenience in our website defaulting to a branch that does not service you and we would like to fix that.
We always want to find ways to serve you better, including fast and easy access to products and product information on the web.
Please set your default branch just this once so that we can better serve you on MG Building Materials in the future.
To proceed click OK, otherwise click CANCEL
");
}
$("div.change-location__cartItems").html(_cartList.join(""));
$("div#change-location__popup-notification").dialog("open");
}
}
function setLocation($this) {
$.post('/MainSite/Store1/Store/SetCurrentLocation', {
locationCode: $this.options[$this.selectedIndex].value
}, StoreSetCurrentLocationOnComplete);
}
function StoreSetCurrentLocationOnComplete(e) {
var currentURL = window.location;
if (currentURL.pathname.search("CategoryHome") > 0 || currentURL.pathname.search("PromotionList") > 0) {
window.location = currentURL.origin + currentURL.pathname;
} else {
window.location.reload();
}
}
function clearShoppingCartItems($this) {
$.post('/MainSite/Store1/ShoppingCart/ClearShoppingCart', function () {
setLocation($this);
});
}
Don't worry, you'll still be able to change your branch once inside the website.