Boots, Shoes, & Sandals for Women, Men, & Kids


Boots, Shoes, & Sandals for Women, Men, & Kids | SoftMoc.com “, prevArrow: “ SoftMoc ™   shopping bag items = 1024) showOverlay() }) menuDropdownLinks.on(‘mouseleave’, function () { if (windowW >= 1024) hideOverlay() }) function checkSearchbarBlur (e) { if (!overlay.classList.contains(‘header-v2__overlay–active’)) return var target = e.target var id = target.getAttribute(‘id’) if (id == ‘searchInputX’) return if (target.closest && target.closest(‘#searchautocomplete’)) return hideOverlay() } // if data-animation-offset is set -> check scrolling const mainHeader = document.querySelector(‘.js-mega-nav’); function showOverlay() { if (mainHeader.classList.contains(‘mega-nav–mobile’)) { setTimeout(scroll.disable, 500); } overlay.classList.add(‘header-v2__overlay–active’) } function hideOverlay() { scroll.enable(); overlay.classList.remove(‘header-v2__overlay–active’) window.removeEventListener(‘click’, checkSearchbarBlur, true) } // fix in iOS for mega site navigation if (window.innerWidth mainNav.style.display = ‘block’, 300); } const mainHtml = document.querySelector(‘header’); var animateHeader = mainHeader.getAttribute(‘data-animation’); if (animateHeader && animateHeader == ‘on’) { var scrolling = false, scrollOffset = (mainHeader.getAttribute(‘data-animation-offset’)) ? parseInt(mainHeader.getAttribute(‘data-animation-offset’)) : 400, mainHeaderHeight = mainHeader.offsetHeight, mainHeaderWrapper = mainHeader.getElementsByClassName(‘mega-nav__container’)[0]; window.addEventListener(“scroll”, function (event) { if (!scrolling) { scrolling = true; (!window.requestAnimationFrame) ? setTimeout(function () { checkMainHeader(); }, 250): window.requestAnimationFrame(checkMainHeader); } }); function checkMainHeader () { if (!window.HEADER_IS_FIXED) { var windowTop = window.scrollY || document.documentElement.scrollTop; Util.toggleClass(mainHeaderWrapper, ‘header-v2__wrapper–is-fixed’, windowTop >= mainHeaderHeight + 40); Util.toggleClass(mainHtml, ‘menu–is-fixed’, windowTop >= mainHeaderHeight + 40); Util.toggleClass(mainHeaderWrapper, ‘header-v2__wrapper–slides-down’, windowTop >= scrollOffset); } scrolling = false; }; } // remove scroll for body in mobile $(‘[aria-label=”Toggle menu”]’).on(“click touch”, function (e) { if ($(window).width() < 1024) { const expanded = e.currentTarget.getAttribute('aria-expanded'); if (expanded) { scroll.disable(); } else { $('[aria-label="Toggle menu"]').removeAttr('aria-expanded'); scroll.enable(); } } }) $(document).click(function (e) { if ( $(window).width() { if (!e.target.closest(".js-mega-nav__nav").classList.contains('mega-nav__nav--is-visible')) preventBodyScrollOnClose(); }) } }); // My account menu function myAccountMenuToggle (el) { const myAccount = el; const myAccountTrigger = myAccount.querySelector('.js-menu-trigger'); const myAccountMenu = myAccount.querySelector('.menu'); function removeMenu (ev) { if (!ev.target.closest('.my-account')) { myAccount.classList.remove('menu--is-visible'); window.removeEventListener('click', removeMenu, true); } } myAccountTrigger.addEventListener('click', () => { myAccount.classList.toggle(‘menu–is-visible’); myAccount.classList.contains(‘menu–is-visible’) ? window.addEventListener(‘click’, removeMenu, true) : window.removeEventListener(‘click’, removeMenu, true) }); }; const myAccountElems = document.querySelectorAll(‘.my-account’); for (const myAccount of myAccountElems) { myAccountMenuToggle(myAccount); } }); function MyStore() { var locations = getAllLocations() var numLocations = locations.length // Vars that are set once during init() var map, geoEnabled, coords, storeFilter // Stateful vars var initialized = false var includeCurrPos = false var currentStore = ” var currentStoreName = null var sortedByDistance = [] var markers = { user: null, alt: null } // DOM Elements var dom = { modal: document.getElementById(‘mystore-modal’), input: document.getElementById(‘mystore-location-input’), msg: document.getElementById(‘mystore-picker-msg’), currentStore: document.querySelectorAll(‘.mystore-location’), clearButtons: document.querySelectorAll(‘.mystore-clear’), stores: document.getElementById(‘nearest-to-user-store-popup’), storesM: document.getElementById(‘nearest-to-user-store-popup-m’) } function init() { storeFilter = new google.maps.places.Autocomplete(dom.input, { types: [‘geocode’], componentRestrictions: { country: ‘us’ } }) storeFilter.addListener(‘place_changed’, showNearestStores) markers.alt = { icon: ‘/img/user-location.png’, title: ‘alt-location’, animation: google.maps.Animation.DROP } getGeoLocation( function success(pos) { geoEnabled = true includeCurrPos = true coords = pos.coords initMap() markers.user = { lat: coords.latitude, lng: coords.longitude, icon: ‘/img/user-location.png’, title: ‘your-location’, animation: google.maps.Animation.DROP } map.addMarker(markers.user) map.setCenter(markers.user) map.setZoom(7) showNearestStores() }, function failure(reason) { // Use center of Canada as default center initMap(53, -102) showNearestStores() } ) dom.modal.addEventListener(‘modalIsClose’, function () { dom.input.value = ” dom.msg.classList.add(‘hidden’) }) initialized = true } function reloadMap() { if (!initialized) { init(); return; } map.removeMarkers(); map.addMarker(markers.user); if (showAllStores == “0” && typeof CurrentItemAvailableSize != “undefined”) { var locations_Tmp = [] for (i = 0; i < locations.length; i++) { if (CurrentItemAvailableSize.indexOf("|uvab" + locations[i].details.id + "|") != -1) locations_Tmp.push(locations[i]); } map.addMarkers(locations_Tmp) } else { map.addMarkers(locations) } showNearestStores() } return { locations: locations, modal: dom.modal, init: init, select: selectMyStore, clear: clearMyStore, view: viewNearStore, listen: addListener, detach: removeListener, initStore: initMyStore, reloadMap: reloadMap, openPicker: function (message, cb) { showAllStores = 1; if (typeof message == 'string') { dom.msg.innerHTML = message dom.msg.classList.remove('hidden') } if (message.call || cb.call) { pickerCb = message.call ? message : cb dom.modal.addEventListener('modalIsClose', runPickerCallback) } if (showAllStores != showAllStoresNow) { showAllStoresNow = showAllStores; myStore.reloadMap(); } openModal(dom.modal) }, get name() { return currentStoreName }, get initialized() { return initialized }, get selected() { return currentStore } } function getGeoLocation (cb) { getUserLocation(cb) } function initMap(lat, lng) { map = new GMaps({ div: '#mystore-map', lat: lat || coords.latitude, lng: lng || coords.longitude, zoom: 4, gestureHandling: 'cooperative', }) addMarkerContentToLocations() if (showAllStores == "0" && typeof CurrentItemAvailableSize != "undefined") { var locations_Tmp = [] for (i = 0; i < locations.length; i++) { if (CurrentItemAvailableSize.indexOf("|uvab" + locations[i].details.id + "|") != -1) locations_Tmp.push(locations[i]); } map.addMarkers(locations_Tmp) } else { map.addMarkers(locations) } } function showNearestStores() { map.markers && map.markers.forEach(closeInfoWindow) map.removeMarker(map.markers.reverse().find(function (m) { return m.title == 'alt-location' })) var lat, lng var alt = getNestedProp(storeFilter.getPlace(), 'geometry.location') if (alt) { markers.alt.lat = lat = alt.lat() markers.alt.lng = lng = alt.lng() map.addMarker(markers.alt) } else if (geoEnabled) { lat = coords.latitude lng = coords.longitude } if (alt || geoEnabled) { calculateNearestStores(new google.maps.LatLng(lat, lng)) centerBetweenStores( sortedByDistance.slice(0, 4), alt ? markers.alt : markers.user, !alt ) dom.modal.removeAttribute('data-no-location') } else { sortedByDistance = locations.slice(0, 4) dom.modal.setAttribute('data-no-location', '') } buildStoresLists() } function centerBetweenStores(marks, currentPos, noAltMarker) { if (!marks.length && !includeCurrPos) return if (marks.length == 1) { map.setZoom(10) return viewNearStore(0) } var bounds = new google.maps.LatLngBounds() // Only use current position in bounds on first run if (includeCurrPos || (geoEnabled && noAltMarker)) { includeCurrPos = false bounds.extend(new google.maps.LatLng(currentPos.lat, currentPos.lng)) } for (var m, l, i = 0, len = marks.length; i < len; i++) { m = marks[i] l = new google.maps.LatLng(m.lat, m.lng) bounds.extend(l); } map.fitBounds(bounds) map.panToBounds(bounds) } function calculateNearestStores(target) { sortedByDistance = locations .map(function (store) { var storeCoords = new google.maps.LatLng(store.lat, store.lng) var dist = google.maps.geometry.spherical.computeDistanceBetween(target, storeCoords) * 0.000621371192; dist = Math.round(dist * 0.621371 * 1000) / 1000; // Convert to miles for US customers store.distance = dist return store }) .sort(function (a, b) { return a.distance - b.distance }) } function buildStoresLists() { var html1 = '', html2 = '' var j = 0; for (var i = 0; i < sortedByDistance.length; i++) { if (showAllStores == "0" && typeof CurrentItemAvailableSize != "undefined") { if (CurrentItemAvailableSize.indexOf("|uvab" + sortedByDistance[i].details.id + "|") == -1) continue; } var s = sortedByDistance[i] var details = s.details var name = details.name.replace(/softmoc /i, '') var dist = s.distance var line1 = details.address var line2 = values(details, ['city', 'state', 'zip']).join(', ') html1 = html1 + '' + '' + name + '' + '' + line1 + '
‘ + line2 + ” + ” + dist + ‘ mi(s). away’ + ‘]]]]]]]]>]]]]]]>]]]]>]]>’

html2 = html2 +

‘ +
” + name + ” +
” + dist + ‘ mi(s).’ +

j++;
if (j >= 4)
break;
}

dom.stores.innerHTML = html1
dom.storesM.innerHTML = html2
}

function closeInfoWindow(el) {
el.infoWindow && el.infoWindow.close(map, el)
}

function findMarker(store) {
return function (element) {
if (!element.details) return false
return element.details.id === store.details.id;
}
}

function viewNearStore(index) {
if (!initialized) return

var store = sortedByDistance[index];
map.markers && map.markers.forEach(closeInfoWindow)
map.panTo({
lat: +store.lat,
lng: +store.lng
})

var marker = map.markers.find(findMarker(store));
marker.infoWindow.open(map, marker);
}

function initMyStore(id, force) {
if (id == 0) {
var defaultText = ‘Choose Your Store’
currentStore = null
currentStoreName = null
dom.currentStore.forEach(function (el) {
el.innerText = defaultText
})
dom.clearButtons.forEach(function (el) {
el.classList.add(‘hidden’)
})
if (force === true) {
}
else {
setMyStore(“0″)
}
}
else {
var found = false
for (var i = 0; i ‘ + loc.details.name + ” +
” +
loc.details.address + ‘
‘ +
loc.details.city + ‘, ‘ + loc.details.state + ‘
‘ +
loc.details.zip + ‘, ‘ + loc.details.country + ‘
‘ +
‘ + loc.details.phone + ‘‘ +
” +

})
}

function getNestedProp(obj, props) {
if (obj === undefined) return obj

var nest = props.split(‘.’).reverse()
for (var i = nest.length; i–;) {
obj = obj[nest[i]]
if (obj === undefined) break
}

return obj
}

function values(obj, keys) {
return keys.map(function (k) {
return obj.hasOwnProperty(k) ? obj[k] : undefined
})
}

function getAllLocations() {
// Locations Array
var locations = [

{
details: {
storeUrl: “JordanCreekTownCenter”,
id: “503”,
name: “SoftMoc Jordan Creek”,
address: “101 Jordan Creek Parkway, Unit 12030”,
city: “West Des Moines”,
state: “IA”,
zip: “50266”,
country: “USA”,
phone: “(515) 444-4218”,
email: “mr503@softmoc.com”,
storeImage: “https://www.softmoc.com/store/images/S_2721859112082020197251110.jpg”
},
lat: “41.570038”,
lng: “-93.803193”,
infoWindow: {}
}

,

{
details: {
storeUrl: “MallofAmerica”,
id: “501”,
name: “SoftMoc Mall of America”,
address: “159 North Garden, Unit N159”,
city: “Bloomington”,
state: “MN”,
zip: “55425”,
country: “USA”,
phone: “(952) 223-4885”,
email: “mr501@softmoc.com”,
storeImage: “https://www.softmoc.com/store/images/S_2211337112102520197251110.jpg”
},
lat: “44.855372”,
lng: “-93.24113”,
infoWindow: {}
}

,

{
details: {
storeUrl: “KenwoodTowneCentre”,
id: “502”,
name: “SoftMoc Kenwood Towne Centre”,
address: “7875 Montgomery Rd, Unit1226”,
city: “Cincinnati”,
state: “OH”,
zip: “45236”,
country: “USA”,
phone: “513-440-9473”,
email: “mr502@softmoc.com”,
storeImage: “https://www.softmoc.com/store/images/S_1882937163127620199251638.jpg”
},
lat: “39.203505”,
lng: “-84.376979”,
infoWindow: {}
}

];

return locations
}

function addListener(fn) {
dom.modal.addEventListener(‘mystore.selected’, fn)
return fn
}

function removeListener(fn) {
dom.modal.removeEventListener(‘mystore.selected’, fn)
}

function dispatch() {
var ev = new CustomEvent(‘mystore.selected’, {
detail: currentStore ? {
details: currentStore.details,
name: currentStoreName,
coords: {
lat: currentStore.lat,
lng: currentStore.lng
}
} : null
})
dom.modal.dispatchEvent(ev)
}

function runPickerCallback(e, store, storeName) {
dom.modal.removeEventListener(‘modalIsClose’, runPickerCallback)
dom.msg.classList.add(‘hidden’)
pickerCb(store || null, storeName)
pickerCb = null
}
}

function getUserLocation(cb) {
var xhr = new XMLHttpRequest()
xhr.onreadystatechange = function () {
if (xhr.readyState == 4 && xhr.status == 200) {
var arr = xhr.responseText.split(‘,’)
var coords = {
latitude: Number(arr[0]),
longitude: Number(arr[1])
}
return cb({ coords: coords })
}
}
xhr.open(‘GET’, ‘https://ipapi.co/latlong/?key=WGTnzPNfj0zexMISaf7H32BRXnJNt5mhAIYkUUGdG2McjEiAMo’)
xhr.send()
}

// _1_diagonal-movement
document.addEventListener(‘DOMContentLoaded’, function () {
new menuAim({
menu: document.getElementsByClassName(“mega-nav__items”)[0],
submenuDirection: “below”,
activate: function (e) {
$(e).find(‘.mega-nav__sub-nav-wrapper’).addClass(‘hover’);
},
deactivate: function (e) {
$(e).find(‘.mega-nav__sub-nav-wrapper’).removeClass(‘hover’);
$(‘.header-v2__overlay’).removeClass(‘header-v2__overlay–active’);
},
exitMenu: function (e) {
$(e).find(‘.mega-nav__sub-nav-wrapper’).removeClass(‘hover’);
return true;
}
});
});
‘), data.indexOf(‘rn]]]]]]]]>]]]]]]>]]]]>]]>

‘));
$(‘#request-from-sizeChart’).html(html);
var el
if (typeof target == ‘string’) el = document.getElementById(target)
else if (target instanceof HTMLElement) {
var triggers = target.getAttribute(‘aria-controls’)
el = triggers ? document.getElementById(triggers) : target
} else {
console.error(‘Target is not an ID or a reference to a DOM element’)
return
}

if (!el || !el.classList.contains(‘modal’)) {
console.error(‘Modal with the passed target not found’)
return
} else if (el.classList.contains(‘modal–is-visible’)) return

var fo = focusOn && document.getElementById(focusOn)
var ev = new CustomEvent(‘openModal’, fo ? { detail: fo } : {});
el.dispatchEvent(ev);
}
});
}
else {
var el
if (typeof target == ‘string’) el = document.getElementById(target)
else if (target instanceof HTMLElement) {
var triggers = target.getAttribute(‘aria-controls’)
el = triggers ? document.getElementById(triggers) : target
} else {
console.error(‘Target is not an ID or a reference to a DOM element’)
return
}

if (!el || !el.classList.contains(‘modal’)) {
console.error(‘Modal with the passed target not found’)
return
} else if (el.classList.contains(‘modal–is-visible’)) return

var fo = focusOn && document.getElementById(focusOn)
var ev = new CustomEvent(‘openModal’, fo ? { detail: fo } : {});
el.dispatchEvent(ev);
}

}

// Find the first close button within the visible modal and click it
function closeModal() {
var trigger = document.querySelector(‘.modal–is-visible .js-modal__close’)
trigger.click()
}

function __toggleDrawer(force, id) {
var drawer = document.getElementById(id)
if (!drawer || !drawer.classList.contains(‘drawer’)) return
var forceUsed = force != undefined

// Before opening the drawer the wrong way, look for an element with [aria-controls={id}] to use
// Otherwise, the drawer will open but you won’t be able to close it the normal ways
if (!drawer.classList.contains(‘drawer–is-visible’) && (!forceUsed || force)) {
var trigger = document.querySelector(“[aria-controls='” + id + “‘]”)
if (trigger) {
return trigger.click()
}
}

forceUsed ? drawer.classList.toggle(‘drawer–is-visible’, force) : drawer.classList.toggle(‘drawer–is-visible’)
}
‘, ‘‘); //tmp = tmp.replace(“#Brand#”, res[i].BrandName); container.append(tmp); } if ((dataProduct == “”) || (dataProduct == “undefined”)) { $(“#seeAllItemMatches”).attr(“href”, $(element).attr(“href”)); } else { $(“#seeAllItemMatches”).attr(“href”, window.location.origin + “/us/search?keyword=” + quickString.replace(/[:@&26=+$#{}^~%]/g, ” “)); } }, error: function (err) { console.log(err); } }); } function joinSoftMocRewards() { this.document.joinSoftMocRewards_Form.submit(); } /* $(“#language-picker-select”).change(function () { var selectedCountry = $(this).children(“option:selected”).val(); alert(“You have selected the country – ” + selectedCountry); }); */ ]]]]]]]]>]]]]]]>]]]]>]]> SoftMoc - Winter Boots, Slippers & More! Up to 30% OFF! SoftMoc - Winter Boots, Slippers & More! Up to 30% OFF! Columbia - Minx Winter Boots Cougar - Winter Boots UGG - Classic Comfort UGG - Classic Comfort Birkenstock - Sandals Converse - Sneakers Adidas - Athletics Kids Winter Boots Skechers - Athletics

Follow us @SoftMocShoes

Shop Collections

Women's Collections Women’s Men's Collections Men’s

” + myStore.selected.details.name.replace(/softmoc /i, ”) + “”)); if (currentHours >= pickUpTomorrowHours) $(“#pick-up-today-confirmation-main-msg”).html($(“#pick-up-today-confirmation-main-msg”).html().replace(“Today”, “Tomorrow”)); if (shipToStoreOverride) return; var itemList = “”; var itemids = ids.split(‘,’); var itemsizes = sizes.split(‘,’); var itemimages = images.split(‘,’); for (i = 0; i < itemids.length; i++) { itemList += ""; itemList += "" + itemids[i] + "“; itemList += “” + itemids[i] + “
“; itemList += “” + itemsizes[i] + “”; itemList += “”; } $(“#pick-up-today-confirmation-main-items”).html(itemList); $(“#shipToStoreName-main”).html(“Ship to #StoreName#”.replace(‘#StoreName#’, myStore.selected.details.name.replace(/softmoc /i, ”))); //restoreMyStore(myPrevStoreId); CancelPickUpTodayBag_Main() openModal(document.getElementById(‘pick-up-today-confirmation-main’)); } } function UpdatePickUpTodayBag_Main(method) { // Pick Up Today var pickupStore = newPickUpStore; if (pickupStore == myCurrentPickupStore) return; myStore.initStore(pickupStore, true); myStoreId = pickupStore; var url; if (method == ‘Remove’) url = “/us/pickupstore_serverload.aspx?UpdateSID=” + pickupStore; else { shipToStoreOverride = true; url = “/us/pickupstore_serverload.aspx?ShipToSID=” + pickupStore; } checkPickUpStore(url); myPrevStoreId = myStoreId; myCurrentPickupStore = myStoreId; // MyFavorite if (typeof window.pre_pickupStoreChanged_MyFavorite !== “undefined”) { pre_pickupStoreChanged_MyFavorite(); } } function checkPickUpStore(url) { var FormInputArray = new Array(); var ASPName = url; var CallBackFunctionName = “”; var WantGrayOut = false; var WantPleaseWaitPopUp = false; var PleaseWaitPopUp_Width = 0; var PleaseWaitPopUp_Height = 0; var PleaseWaitPopUp_HTML = “”; ServerCheckingFrame_Exec(ASPName, CallBackFunctionName, FormInputArray, WantGrayOut, WantPleaseWaitPopUp, PleaseWaitPopUp_Width, PleaseWaitPopUp_Height, PleaseWaitPopUp_HTML); } function CancelPickUpTodayBag_Main() { myStore.initStore(myPrevStoreId); } function checkMyAccountLogin() { var cbdata = {}; var funcname = ”; if (funcname == ‘sd_getinventories’) { cbdata = controller.mainModel.firstInventoriesRequest; cbdata.cbfuncname = ‘sd_getinventories’; } else if (funcname == ‘id_getitemdetail’) { if (typeof CurrentItemID != “undefined”) { cbdata = { itemid: CurrentItemID, cbfuncname: “id_getitemdetail” }; } } $.ajax({ type: “POST”, dataType: “json”, data: jQuery.param(cbdata), url: “/us/myaccountinfo_serverload.aspx”, contentType: “application/x-www-form-urlencoded; charset=UTF-8”, success: function (res) { getAccountInfo(res); }, error: function (err) { console.log(err); if (funcname == ‘sd_getinventories’) { $(“.result-container”).removeClass(“hidden”); } } }); } function getAccountInfo(jsonRes) { var accountInfo = jsonRes.accountInfo; var userName = accountInfo.FirstName; var loginName= accountInfo.LoginName; var userCredits = accountInfo.UserCredits; var numOfItem = accountInfo.NumOfItem; var numOfFav = accountInfo.NumOfFav; var store = accountInfo.MyStoreID; var sortby = accountInfo.SortbyAbbr; var showLiveChat = jsonRes.showLiveChat; if (showLiveChat) { $(“#sticky-chat-options”).addClass(“chat-menu-enabled”); $(“.chat-menu”).show(); } $(“.num-of-item”).html(numOfItem == 0 ? “” : numOfItem); if (numOfItem == 0) $(“.num-of-item-counter”).hide(); else $(“.num-of-item-counter”).show(); $(“.num-of-fav”).html(numOfFav == 0 ? “” : numOfFav); if (numOfFav == 0) $(“.num-of-fav-counter”).hide(); else $(“.num-of-fav-counter”).show(); if (loginName != “”) { mySignedIn = true; myLoginName = loginName; $(“.user-name”).html(userName); $(“.user-credits”).html(userCredits == 0 ? “0” : userCredits); $(“.user-credits-text”).html((userCredits == 0 ? “0” : userCredits) + ” Credit”); document.documentElement.setAttribute(“data-signed-in”, true); } myStoreId = store; mySortBy = sortby; myStore = MyStore(); $(myStore.modal).one(‘modalIsOpen’, function () { // only initialize MyStore() after modal is opened // to avoid asking for location prematurely myStore.init() }) var needToRemoveNotAvailableFilters = true; var funcname = ”; if (funcname == ‘sd_getinventories’) { CurrentFavoritesItems = jsonRes.favoritesItems; var productsCount = jsonRes.productsCount; if (productsCount >= 0) { $(document).trigger(‘reload’, jsonRes); } else { if (CurrentFavoritesItems.length > 0) $(document).trigger(‘reload-favorites’); $(“.result-container”).removeClass(“hidden”); } } else if (funcname == ‘id_getitemdetail’) { var productsCount = jsonRes.productsCount; if (productsCount > 0) { if (typeof CurrentItemID != “undefined”) { var isFavoritesItem = jsonRes.isFavoritesItem; $(‘.myFavouritesArea’).prop(“checked”, isFavoritesItem); var isReviewed = jsonRes.isReviewed; if (isReviewed == 0) $(‘#writeReviewButton’).show(); else $(‘#reviews-success-msg’).show(); if (mySignedIn) { if (CurrentItemPriceFormat == “3”) { var isSalesAlert = jsonRes.isSalesAlert; $(‘#mySalesAlertArea_desk’).prop(“checked”, isSalesAlert); $(“.sales-alert-wrapper”).show(); } if (isReviewed == 0 && showWriteReview == “1”) setTimeout(‘MyAccountLogin_SuccessLogin_ShowWriteReview()’, 100); } var rvProducts = jsonRes.recentlyViewItems.map(rvProduct) || []; if (rvProducts.length > 0) { addRVProduct(rvProducts); } if (jsonRes.itemReviews != null) { if (typeof GetItemReview_ServerLoad_CallBack !== “undefined”) GetItemReview_ServerLoad_CallBack(jsonRes.itemReviews); } if (CurrentItemID.toUpperCase().indexOf(“GIFTCARD”) < 0) { if (jsonRes.myfitresult != null) emitter.emit('load-myFit', jsonRes.myfitresult) else emitter.emit('init-load') } } } } if (myStoreId != "0") { myStore.initStore(myStoreId, true); myPrevStoreId = myStoreId; // Search var toggle = document.getElementById('pickup-toggle'); var name = document.getElementById('pickup-storename'); if (toggle != null) { /* if (sortby != "") { mySortBy = sortby; $('.sort-by-d, .sort-by-m').val(sortby); } */ myCurrentPickupStore = myStoreId; // do not trigger pickUpStoreChanged, only toggle 'pickup-toggle' button to ON $(toggle).prop('checked', true); name.classList.remove('hidden'); } else { // Item Detail if (typeof window.pickupStoreChanged !== "undefined") { pickupStoreChanged(); } } } else { /* if (sortby != "") { // Search var toggle = document.getElementById('pickup-toggle'); if (toggle != null) { if (sortby != "") { mySortBy = sortby; $('.sort-by-d, .sort-by-m').val(sortby); } //$(document).trigger('sortByChangedWithForce'); } } */ } // Search Detail and Item Detail if (typeof window.StorePickup !== "undefined") { pickup = StorePickup(); // Search Detail if (needToRemoveNotAvailableFilters) $(document).trigger('removeNotAvailableFilters'); // Item Detail if (mySignedIn) $(document).trigger('buyNow'); } // MyFavorite if (typeof window.pre_pickupStoreChanged_MyFavorite !== "undefined") { pre_pickupStoreChanged_MyFavorite(); } // Locations if (typeof window.initAutocomplete_Locations !== "undefined") { initAutocomplete_Locations(); } } function rvProduct(rvNewProduct) { var rvProduct = { itemID: '', itemURL: '', vendorName: '', thumbnail_S: '', listPrice: '', onLinePrice: '', priceFormat: '' } if (rvNewProduct) { rvProduct.itemID = rvNewProduct.ItemID; rvProduct.itemURL = rvNewProduct.ItemURL; rvProduct.vendorName = rvNewProduct.BrandName; rvProduct.thumbnail_S = rvNewProduct.Thumbnail_S; rvProduct.listPrice = rvNewProduct.ListPrice; rvProduct.onLinePrice = rvNewProduct.OnLinePrice; rvProduct.priceFormat = rvNewProduct.PriceFormat; } return rvProduct; } function addRVProduct(products) { var newProducts = ""; for (var i = 0; i < products.length; i++) { var product = products[i]; var template = $('#rv-slider-template').html(); template = template.replace(/#ItemURL#/g, product.itemURL); template = template.replace(/#Thumbnail#/g, product.thumbnail_S); template = template.replace(/#VendorName#/g, product.vendorName); //Price var price = ""; if (product.priceFormat == "1") { price = $('#rv-price-shipping-template-1').html(); price = price.replace(/#RegPrice#/g, product.listPrice); } else if (product.priceFormat == "2") { price = $('#rv-price-shipping-template-2').html(); price = price.replace(/#RegPrice#/g, product.listPrice); price = price.replace(/#SalePrice#/g, product.onLinePrice); } else { price = $('#rv-price-shipping-template-3').html(); price = price.replace(/#RegPrice#/g, product.onLinePrice); } template = template.replace(/#Price#/g, price); newProducts += template; } newProducts = newProducts.replace(//g, “”); $(‘#rv-slider’).html(newProducts); $(‘#rv-slider’).slick({ slidesToShow: 5, slidesToScroll: 3, arrows: true, nextArrow: “ ‘, emptyStar: ‘‘, displayOnly: true, min: 0, max: 5, step: .1, stars: 5, }); ]]]]]]]]>]]]]]]>]]]]>]]>

Source

Leave a Comment

Your email address will not be published. Required fields are marked *