console.log('JWT blank. Not taking any login action.'); //************************************************ //********** GLOBAL PD/ONE VARIABLES ************* //************************************************ var pdProductId = "9304"; var pdProductCode = "WSFloorLiners"; //************************************************ //************ 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); } //************************************************ //****** PD/ONE FEATURE SPECIFIC CSS/JS ********* //************************************************ pdLoadJsCssFile("https://cdn.practicaldatacore.com/my-justforjeeps-com/mod_bigcommerce/pdCompiledScript.js?cb=1935668", "js"); pdLoadJsCssFile("https://cdn.practicaldatacore.com/my-justforjeeps-com/mod_pdOneStyleEditor/pdPublicStyle.css?cb=483917", "css"); //*** CATEGORY ID:**** //*** PRODUCT ID:9304**** //*** PRODUCT ID LIST CSV:**** //*** BEGIN public_mod_myRewards_getRenderedPromotionMessagingJsInsertionCode *** document.querySelectorAll("div.pdRewardsPromoMessage[productId=\"9304\"], div.pdRewardsPromoMessage[data-itemid=\"9304\"]").forEach(function(div) { div.innerHTML = "
Earn 90 Rewards Points for this item! Learn More...
";}); //*** END public_mod_myRewards_getRenderedPromotionMessagingJsInsertionCode *** //*** BEGIN public_mod_myRewards_getRenderedPromotionPopupJsInsertionCode *** document.body.insertAdjacentHTML("beforeend", "
Rewards Members Enjoy Great Benefits!
1
Join
It\'s free - get started now!
2
Earn
Points for purchases, referrals & more!
3
Redeem
Redeem for store credit and special offers!
Sign Up Login
Earn Points
Make a purchase
1 point per $1
Write a review
20 points
"); //*** END public_mod_myRewards_getRenderedPromotionPopupJsInsertionCode *** //**** PRODUCT PAGE JAVASCRIPT **** document.querySelectorAll("div.pdPrProductPageCallout[productId='9304'], div.pdPrProductPageCallout[data-itemid='9304']").forEach(function(element) { element.innerHTML = "
Reviews
"; }); document.querySelectorAll("div.pdPrProductPageReviewsHtml[productId='9304'], div.pdPrProductPageReviewsHtml[data-itemid='9304']").forEach(function(element) { element.innerHTML = "
1700154704
5.0
out of 5.0
2 Reviews
Reviews
Ratings Snapshot
5 Star
100% (2)
4 Star
0% (0)
3 Star
0% (0)
2 Star
0% (0)
1 Star
0% (0)
100%
of Reviewers
Recommend
Perfect
By Jimlee R.
from Alaska
on October 6, 2023
Verified Buyer
Love it, it fit just perfect, I was looking for something like this and other companies didn’t ship to Alaska, so I give my 5 stars for the commitment and service.
Wagoneer floor mats
By Charles
from Southern Oklahoma
on May 12, 2023
Verified Buyer
Fit great fast shipping 👍👍
"; }); //*** 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.justforjeeps.com\\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@id\":\"https:\\/\\/www.justforjeeps.com\\/shop-by-brand.html\",\"name\":\"Shop By Brand\"}},{\"@type\":\"ListItem\",\"position\":3,\"item\":{\"@id\":\"https:\\/\\/www.justforjeeps.com\\/weathertech.html\",\"name\":\"WeatherTech\"}},{\"@type\":\"ListItem\",\"position\":4,\"item\":{\"@id\":\"https:\\/\\/www.justforjeeps.com\\/weathertech-digitalfit-floor-liner-wagoneer-grand-wagoneer-ws-including-l.html\",\"name\":\"WeatherTech DigitalFit Floor Liner for 2022-2025 Wagoneer\\/Grand Wagoneer WS (including Wagoneer\\/Grand Wagoneer L)\"}}]}" 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\":\"89.95\",\"priceCurrency\":\"USD\",\"priceValidUntil\":\"2025-03-18\",\"seller\":{\"@type\":\"Organization\",\"name\":\"JustForJeeps.com\"},\"@id\":\"https:\\/\\/www.justforjeeps.com\\/weathertech-digitalfit-floor-liner-wagoneer-grand-wagoneer-ws-including-l.html#offers\",\"url\":\"https:\\/\\/www.justforjeeps.com\\/weathertech-digitalfit-floor-liner-wagoneer-grand-wagoneer-ws-including-l.html\",\"itemCondition\":\"NewCondition\",\"availability\":\"InStock\"},\"name\":\"WeatherTech DigitalFit Floor Liner for 2022-2025 Wagoneer\\/Grand Wagoneer WS (including Wagoneer\\/Grand Wagoneer L)\",\"image\":\"https:\\/\\/cdn11.bigcommerce.com\\/s-ux3o9miy8b\\/products\\/9304\\/images\\/15496\\/4417041-4417042-4417043__90880.1740174196.386.513.jpg?c=1\",\"sku\":\"WSFloorLiners\",\"@id\":\"https:\\/\\/www.justforjeeps.com\\/weathertech-digitalfit-floor-liner-wagoneer-grand-wagoneer-ws-including-l.html#product\",\"review\": [{\"@type\":\"Review\",\"itemReviewed\":\"WeatherTech DigitalFit Floor Liner for 2022-2023 Wagoneer\\/Grand Wagoneer WS\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"5\"},\"author\":{\"@type\":\"person\",\"name\":\"Jimlee R.\"},\"reviewBody\":\"Love it, it fit just perfect, I was looking for something like this and other companies didn’t ship to Alaska, so I give my 5 stars for the commitment and service.\",\"datePublished\":\"2023-10-06 14:52:33\"},{\"@type\":\"Review\",\"itemReviewed\":\"WeatherTech DigitalFit Floor Liner for 2022-2023 Wagoneer\\/Grand Wagoneer WS\",\"reviewRating\":{\"@type\":\"Rating\",\"ratingValue\":\"5\"},\"author\":{\"@type\":\"person\",\"name\":\"Charles\"},\"reviewBody\":\"Fit great fast shipping 👍👍\",\"datePublished\":\"2023-05-12 18:40:32\"}]}}" document.getElementsByTagName('head')[0].appendChild(script); ; function pdInjectAccountLinkModifications() { //***** INJECT REWARDS LINK **** jQuery(".navBar-section li:nth-child(2)").after(''); //***** INJECT OLDER ORDER HISTORY LINK **** jQuery(".navBar-section li:nth-child(1)").after(''); } pdInjectAccountLinkModifications();var pdPublicUrl = 'https://my.justforjeeps.com/'; jQuery(document).ready(function(){ const urlParams = new URLSearchParams(location.search); var prevLinkElem = jQuery('.navBar-section .is-active').data("pdLinkElem"); var prevLinkTarget = jQuery('.navBar-section .is-active').data("pdLinkElemTarget"); if (prevLinkElem && prevLinkTarget) { jQuery(prevLinkTarget).html(prevLinkElem); jQuery('.navBar-section .is-active').data("pdLinkElem", false); jQuery('.navBar-section .is-active').data("pdLinkElemTarget", false); } if (urlParams.has('pd_module_content')){ var module = urlParams.get('pd_module_content'); var subNav = urlParams.get('pd_module_subNav'); var moduleTitle = jQuery('#pdContent_'+module+' a').html(); var currentUrl = window.location.href; var currentUrlNoQuery = currentUrl.substring(0, currentUrl.indexOf('?')); console.log(currentUrlNoQuery); var currentTab = jQuery('.navBar-section .is-active').html(); if (jQuery('.navBar-section .is-active').hasClass('pdLinkEvent') == false){ if(jQuery('.navBar-section .is-active .navBar-action').length){ } else { jQuery('.navBar-section .is-active').html(''+currentTab+''); } } jQuery('.navBar-section .is-active').data("pdLinkElemTarget", '#pdContent_'+module); jQuery('.navBar-section .is-active').data("pdLinkElem", jQuery('#pdContent_'+module).html()); jQuery('#pdContent_'+module).html(jQuery('#pdContent_'+module+' a').text()); jQuery('.navBar-section .is-active').removeClass('is-active'); jQuery('#pdContent_'+module).addClass('is-active'); jQuery('.page-heading').html(moduleTitle); if (subNav !== '' && subNav !== null){ url = pdPublicUrl+'/'+module+'/'+subNav+'.php?module='+module; } else { url = pdPublicUrl+'/'+module+'/index.php?module='+module; } pdOneAjaxLinkHandler(url); } }); jQuery(document).on('submit', '.pdModal form', function(e){ e.preventDefault(); e.stopImmediatePropagation() pdOneAjaxFormHandler(this); }); jQuery(document).on('submit', '#pdModuleContent form', function(e){ e.preventDefault(); e.stopImmediatePropagation() pdOneAjaxFormHandler(this); }); jQuery(document).on('click', '.pdLinkEvent', function(e){ var currentUrl = window.location.href; var currentTab = jQuery('.navBar-section .is-active .navBar-action').html(); console.log(jQuery(this).html()); if (jQuery('.navBar-section .is-active').hasClass('pdLinkEvent') == false){ jQuery('.navBar-section .is-active').html(''+currentTab+''); } jQuery('.navBar-section .is-active').removeClass('is-active'); jQuery(this).parent().addClass('is-active'); var url = jQuery(this).attr('href'); e.preventDefault(); e.stopImmediatePropagation() pdOneAjaxLinkHandler(url); }); jQuery(document).on('click', '#pdModuleContent a', function(e) { var url = jQuery(this).attr('href'); jQuery(this).attr("href", "#"); e.preventDefault(); pdOneAjaxLinkHandler(url); }); function pdOneAjaxLinkHandler(url){ console.log("pdOneAjaxLinkHandler:" + url); var currModule = jQuery('#pdModuleContent').attr('data-currmodule'); var externalLink = false; //assume http or https is external link var testUrl = url; var testUrlNoQuery = url.substring(0, testUrl.indexOf('?')); if (testUrlNoQuery !== ''){ if ((url.includes('https://') || url.includes('http://')) && !testUrlNoQuery.includes('mod_')){ externalLink = true; } } if (!externalLink && currModule !== '' && currModule !== undefined) { testUrl = testUrl.replace('https://', ''); testUrl = testUrl.replace('http://', ''); replaceStart = testUrl.indexOf('/'); if (replaceStart == -1){ replaceStart = 0; } testurl = testUrl.substring(replaceStart); //If no 'mod_' present assume reference path to current module and create absolute path if (!url.includes('mod_')){ url = pdPublicUrl+'/'+currModule+'/'+testurl+'?module='+currModule; } //Else assume link to other module and create absolute path else { url = pdPublicUrl+'/'+testurl+'?module='+currModule; } } //Perform ajax if not linking to external site if (!externalLink){ if (url.includes('?')){ url += '&mode=inject'; } else { url += '?mode=inject'; } jQuery.ajax({ 'async': true, 'global': false, 'xhrFields': { withCredentials: true }, 'type': "POST", 'crossDomain': true, 'url': url, 'success': function(result) { console.log('success'); jQuery('.account-content').html(result); }, error: function(errMsg) { console.log('error'); console.log(errMsg['statusText']); } }); } else { // window.location.href = url; } } function pdOneAjaxFormHandler(form, module){ currModule = jQuery('#pdModuleData').attr('data-currmodule'); if (currModule == undefined){ currModule = jQuery('#pdModuleContent').attr('data-currmodule'); } formData = jQuery(form).serializeArray(); console.log(formData); var method = jQuery(form).attr('method'); var url = jQuery(form).attr('action'); replaceStart = url.indexOf('/'); if (replaceStart == -1){ replaceStart = 0; } url = url.substring(replaceStart); url = pdPublicUrl+'/'+currModule+'/'+url+'?module='+currModule; if (url.includes('?')){ url += '&mode=inject'; } else { url += '?mode=inject'; } if (url.includes('?')){ url += '&module='+currModule; } else { url += '?module='+currModule; } jQuery.ajax({ 'async': false, 'global': false, 'xhrFields': { withCredentials: true }, 'type': method, 'crossDomain': true, 'url': url, data: formData, 'success': function(result) { console.log('success'); console.log(result); jQuery(form).closest('#pdModuleContent').replaceWith(result); }, error: function(errMsg) { console.log('error'); console.log(errMsg); } }); }var script = document.createElement('style'); script.setAttribute('type', 'text/css'); script.innerHTML = ``; document.getElementsByTagName('head')[0].appendChild(script); if(jQuery('#pd_pdOneBanner').length) { //*** BANNER ALREADY EXISTS, DO NOT RE-INSERT } else { jQuery("body").prepend('
'); } jQuery("#pd_pdOneBanner").html("
Sign In My Account My Rewards
Create a Rewards Account! Earn Starter Points
"); //*** COMPLETEION CALLBACK try{pdContentRenderCompleted()}catch(e){}; //*** done.