2022NissanFrontier
SV51,870
Disclaimer
The estimated monthly payment provided is based on estimated APR and excludes estimated tax and license fees. Actual payments may vary depending on factors such as credit score, down payment, and financing terms.
Check Availability
360° View
Schedule Your Test Drive
2022NissanFrontier
SV
Price Details
Price Breakdown
The estimated monthly payment provided is based on estimated APR and excludes estimated tax and license fees. Actual payments may vary depending on factors such as credit score, down payment, and financing terms.
Used
51,870
24
Cardinal Red Tricoat
655115
1N6ED1EJ1NN655115
Learn MoreGet Approved
Highlights
- Financing
Features & Specs
Description
Specifications
Truck
24
Exterior Features
Interior Features
Mechanical Features
Safety Features
Technology Features
More Features
All Features
See More
Lock In Your Price
Pricing and availability can fluctuate as the market changes. Lock in our best deal before this vehicle is gone.
Lock In Price
Unlock Payment Options
Location
';var incentives = false,condition,discountFromMSRP = 0,askingPriceDiscount = 0,msrp = 0,price = 0,additionalPricingUrl = '',additionalPricingData = '',lotPrice = '',discount = '',addOn = '',priceLabel = 'Final Price',show_prices = '1',disableInstantRebatesVDP = '',disableInstantRebateSubraction = '1',instantRebatesCappedVDP = false;if ( vehicleYear != '' ) {vehicleYear = parseInt(vehicleYear);}async function startVDPAppointmentWidget(vehicleVin, redirectUrl, vdpMainImage, vehicleYear, vehicleMake, vehicleModel, vehicleTrim, vehiclePrice, dealershipName, appointmentDateUTC) {if ( document.URL.indexOf('spaceauto.dev') > -1 || document.URL.indexOf('dev1.space.auto') > -1 ) {console.log({container: document.getElementById('appointment-widget-root'),form: 'testdrive',appointmentUTCDate: appointmentDateUTC,body: 'Your new ride is just a test drive away! Simply choose a day and time most convenient for you.',title: 'Ready to Get Behind the Wheel?',success: 'message',vehicle: {vin: vehicleVin,img: vdpMainImage,year: vehicleYear,make: vehicleMake,model: vehicleModel,trim: vehicleTrim,price: calcPrice,dealershipName: dealershipName,vin: vehicleVin}})vdpAppointmentWidget = await window.SpaceWidgets.initRetailingWidget({container: document.getElementById('appointment-widget-root'),form: 'testdrive',appointmentUTCDate: appointmentDateUTC,body: 'Your new ride is just a test drive away! Simply choose a day and time most convenient for you.',title: 'Ready to Get Behind the Wheel?',success: 'message',vehicle: {vin: vehicleVin,img: vdpMainImage,year: vehicleYear,make: vehicleMake,model: vehicleModel,trim: vehicleTrim,price: calcPrice,dealershipName: dealershipName,vin: vehicleVin}});}else {vdpAppointmentWidget = await window.SpaceWidgets.initAppointmentWidget({container: document.getElementById('appointment-widget-root'),form: 'appointment',name: 'Schedule Test Drive',appointmentUTCDate: appointmentDateUTC,body: 'Your new ride is just a test drive away! Simply choose a day and time most convenient for you.',title: 'Ready to Get Behind the Wheel?',vin: vehicleVin,success: redirectUrl,vehicle: {vin: vehicleVin,img: vdpMainImage,year: vehicleYear,make: vehicleMake,model: vehicleModel,trim: vehicleTrim,price: calcPrice,dealershipName: dealershipName,}});}vdpAppointmentWidget.onMessage = ({ type, payload }) => { if (type === 'submit') {try {if ( typeof dataLayer != 'undefined' ) {dataLayer.push({'event': 'appointment-submit'});if ( typeof window.SpaceWebAnalytics != 'undefined') {window.SpaceWebAnalytics.conversion('Appointment Inquiry');}if ( typeof space_lead_conversion === 'function' ) {space_lead_conversion('Space Lead - Appointment - VDP');}if ( document.URL.indexOf('spaceauto.dev') > -1 || document.URL.indexOf('dev1.space.auto') > -1 ) {}else {vdpAppointmentWidget.destroy();var email = payload.email,dealId = payload.dealId, form = 'thank-you-appointment';startVDPLoginWidget(email, dealId, form, 'appointment-widget-root');$('#srp-lightbox-wrap').addClass('login');}/* Snackbar tracking */ if ( document.URL.indexOf('snackbar=true') > -1 ) {if ( typeof gtag === 'function' && window.ignoreSnackbarEvents != true ) {gtag('event', 'click', {'event_category': 'Space Retargeting','event_label': 'Retargeting|Snackbar Direct Conversion'});console.log('Snackbar Direct Conversion');eraseCookie('snackbar-vdp');}}else {if ( typeof gtag === 'function' && window.ignoreSnackbarEvents != true ) {let snackbarViewed = getSpaceCookie('snackbar-vdp');if ( snackbarViewed == '1' ) {gtag('event', 'click', {'event_category': 'Space Retargeting','event_label': 'Retargeting|Snackbar Delayed Conversion'});console.log('Snackbar Delayed Conversion');eraseCookie('snackbar-vdp');}}}let snackbarConvertedVDPs = getSpaceCookie('convertedSnackbarVDPs');if ( snackbarConvertedVDPs.indexOf(vehicleVin) == -1 ) {snackbarConvertedVDPs += vehicleVin;}setSpaceCookie('convertedSnackbarVDPs', snackbarConvertedVDPs, 365);}}catch(e){console.log(e);}}};}async function startVDPLoginWidget(email, dealId, form, id) {if ( id == 'appointment-widget-root' ) {vdpAppointmentWidget = false;}if ( document.URL.indexOf('spaceauto.dev') > -1 || document.URL.indexOf('dev1.space.auto') > -1 ) {/*vdpLoginWidget = await window.SpaceWidgets.initRetailingWidget({container: document.getElementById(id),form: 'thank-you',});*/}else {vdpLoginWidget = await window.SpaceWidgets.initLoginWidget({container: document.getElementById(id),email: email,dealId: dealId,form: form,});}}async function startVDPLeadWidget(vehicleVin, vdpLeadRedirectUrl, vdpMainImage, vehicleYear, vehicleMake, vehicleModel, vehicleTrim, dealershipName) {if ( document.URL.indexOf('ezloan') > -1 ) {if ( document.URL.indexOf('spaceauto.dev') > -1 || document.URL.indexOf('dev1.space.auto') > -1 ) {vdpContactWidget = await window.SpaceWidgets.initRetailingWidget({container: document.getElementById('vdp-lead-widget-root-' + vehicleVin),form: 'preapproval',vehicle: {vin: vehicleVin,img: vdpMainImage,year: vehicleYear,make: vehicleMake,model: vehicleModel,trim: vehicleTrim,price: calcPrice,dealershipName: dealershipName},success: 'message',isModal: false,body: 'Dive into your payment options with a quick sign up. Just fill in a few details and you\'re on your way to tailored payment plans.',additionalFields: [{ type: 'hidden', value: 'Preapproval for '+vehicleVin+' '+vehicleYear+' '+vehicleMake+' '+vehicleModel, },{ name: 'location', type: 'select', label: 'Select Location', description: 'Please select a location', options: [ { value: 'Niagara Falls', label: 'Niagara Falls' }, { value: 'Lockport', label: 'Lockport' }, { value: 'Buffalo', label: 'Buffalo' } ]}],});}else {vdpContactWidget = await window.SpaceWidgets.initGeneralLeadWidget({container: document.getElementById('vdp-lead-widget-root-' + vehicleVin),form: 'preapproval',vin: vehicleVin,success: vdpLeadRedirectUrl,vehicle: null,name: ' ',dealershipName: dealershipName,title: ' ',body: "Dive into your payment options with a quick sign up. Just fill in a few details and you're on your way to tailored payment plans.",additionalFields: [{ type: 'hidden', value: 'Preapproval for '+vehicleVin+' '+vehicleYear+' '+vehicleMake+' '+vehicleModel, },{ name: 'location', type: 'select', label: 'Select Location', description: 'Please select a location', options: [ { value: 'Niagara Falls', label: 'Niagara Falls' }, { value: 'Lockport', label: 'Lockport' }, { value: 'Buffalo', label: 'Buffalo' } ]}],});}}else {if ( document.URL.indexOf('spaceauto.dev') > -1 || document.URL.indexOf('dev1.space.auto') > -1 ) {vdpContactWidget = await window.SpaceWidgets.initRetailingWidget({container: document.getElementById('vdp-lead-widget-root-' + vehicleVin),form: 'preapproval',vehicle: {vin: vehicleVin,img: vdpMainImage,year: vehicleYear,make: vehicleMake,model: vehicleModel,trim: vehicleTrim,price: calcPrice,dealershipName: dealershipName},isModal: false,title:' ',success: 'message',body: 'Dive into your payment options with a quick sign up. Just fill in a few details and you\'re on your way to tailored payment plans.',additionalFields: [{ type: 'hidden', value: 'Preapproval for '+vehicleVin+' '+vehicleYear+' '+vehicleMake+' '+vehicleModel, },],});}else {vdpContactWidget = await window.SpaceWidgets.initGeneralLeadWidget({container: document.getElementById('vdp-lead-widget-root-' + vehicleVin),form: 'preapproval',vin: vehicleVin,success: vdpLeadRedirectUrl,vehicle: null,name: ' ',dealershipName: dealershipName,title: ' ',body: "Dive into your payment options with a quick sign up. Just fill in a few details and you're on your way to tailored payment plans.",additionalFields: [{ type: 'hidden', value: 'Preapproval for '+vehicleVin+' '+vehicleYear+' '+vehicleMake+' '+vehicleModel, },],});}}vdpContactWidget.onMessage = ({ type, payload }) => { if (type === 'submit') {try {if ( typeof window.SpaceWebAnalytics != 'undefined') {window.SpaceWebAnalytics.conversion('Vehicle Inquiry');}if ( typeof space_lead_conversion === 'function' ) {space_lead_conversion('Space Lead - Pre-qualification - VDP');}var email = payload.email,dealId = payload.dealId, form = 'thank-you-vehicle';if ( document.URL.indexOf('spaceauto.dev') > -1 || document.URL.indexOf('dev1.space.auto') > -1 ) {}else {vdpContactWidget.destroy();vdpContactWidget = false;startVDPLoginWidget(email, dealId, form, 'vdp-lead-widget-root-' + vehicleVin);$('.vdp-module-vehicle-lead').parent().addClass('login');}if ( typeof dataLayer != 'undefined' ) {if ( document.URL.indexOf('ezloan') > -1 && typeof payload.customerId != 'undefined' ) {dataLayer.push({ event: "space-conversion", customerId: payload.customerId });}dataLayer.push({'event': 'vehicle-lead-submit'});if ( document.URL.indexOf('snackbar=true') > -1 ) {if ( typeof gtag === 'function' && window.ignoreSnackbarEvents != true ) {gtag('event', 'click', {'event_category': 'Space Retargeting','event_label': 'Retargeting|Snackbar Direct Conversion'});console.log('Snackbar Direct Conversion');eraseCookie('snackbar-vdp');}}else {if ( typeof gtag === 'function' && window.ignoreSnackbarEvents != true ) {let snackbarViewed = getSpaceCookie('snackbar-vdp');if ( snackbarViewed == '1' ) {gtag('event', 'click', {'event_category': 'Space Retargeting','event_label': 'Retargeting|Snackbar Delayed Conversion'});console.log('Snackbar Delayed Conversion');eraseCookie('snackbar-vdp');}}}let snackbarConvertedVDPs = getSpaceCookie('convertedSnackbarVDPs');if ( snackbarConvertedVDPs.indexOf(vehicleVin) == -1 ) {snackbarConvertedVDPs += vehicleVin;}setSpaceCookie('convertedSnackbarVDPs', snackbarConvertedVDPs, 365);}}catch(e){console.log(e);}}};}jQuery(document).ready(function($){if ( document.URL.indexOf('snackbar=true') > -1 ) {setSpaceCookie('snackbar-vdp', '1', 1);}/* Get features from API */var apiUrl = 'https://search-api.space.auto/vehicles/1N6ED1EJ1NN655115';if ( document.URL.indexOf('.dev') > -1 || document.URL.indexOf('space-testing-website.click') > -1 || document.URL.indexOf('dev1.space.auto') > -1 ) {apiUrl = 'https://search-api.space-auto.com/vehicles/1N6ED1EJ1NN655115';}$.ajax({ url: apiUrl,method: 'GET',headers: { 'dealership': 'pattersonnissanlongview' },contentType: 'application/json',}).done(function( response ) {vehicleObj = response;dealershipName = vehicleObj.dealershipName;if (typeof vehicleObj.price !== 'undefined') {price = vehicleObj.price;}if (typeof vehicleObj.msrp !== 'undefined') {msrp = vehicleObj.msrp;}if ( typeof vehicleObj.video != 'undefined') {if ( vehicleObj.video != '' && vehicleObj.video != null ) {let youtubeId = vehicleObj.video.replace('https://youtu.be/','');let videoBtn = `Video`, videoBadge = `Video`;$('.vdp-module-buttons').append(videoBtn);$('.vdp-images-gallery-icon-wrap').append(videoBadge);}}if ( msrp == 0 && price == 0) {$('.fc-v2-field.fc-v2-vehicle-price-wrap').addClass('show');$('.fc-v2-tradein-estimate, .vdp-price-details-wrap, .vdp-header-price-wrap, .vdp-module-test-drive-ymmp-right').hide();}if ( additionalPricingUrl != '' ) {fetch(additionalPricingUrl).then(function(pricingResponse) {return pricingResponse.json();}).then(function (pricingData) {additionalPricingData = pricingData;/*if ( document.querySelector('.vdp-module-description') != null ) {if ( document.URL.indexOf('callahan') > -1 ) {let descriptionFound = false;for ( let d = 0; d < additionalPricingData.length; d++ ) {if ( additionalPricingData[d].vin == vehicleObj.vin ) {let description = additionalPricingData[d].description;description = description.replaceAll('\\n','
').replaceAll('
', '
');document.getElementById('vdp-description').innerHTML = description;document.querySelector('.vdp-module-description').style.display = 'block';descriptionFound = true;break;}}}}*/buildPricingBreakdown(additionalPricingData);}).catch(function(err) {console.log('Error retrieving pricing', err);});}else {buildPricingBreakdown(additionalPricingData);}if ( document.URL.indexOf('huckleberry') > -1 ) {dealershipName = 'Huckleberry Motors';}var showPrice = false, splideHtml = '', photosExist = false,enableStockImagesConditional = '';if ( document.URL.indexOf('huckleberry') == -1 ) {if (typeof vehicleObj.photos !== 'undefined') {if ( vs_images != false ) {if (typeof vehicleObj.photos == 'undefined' ) {vehicleObj.photos = [];}if ( isEmpty(vehicleObj.photos) ) {vs_images.forEach(item => {if ( item.id == vehicleObj.vin ) {vehicleObj.photos = vehicleObj.photos.concat(item.img);}});}}if ( vehicleObj.photos.length > 0 ) {if ( document.URL.indexOf('callahanmotor') > -1 || document.URL.indexOf('mcandrew') > -1 ) {vehicleObj.photos = vehicleObj.photos.map(url => url.replace("http://x-img", "https://cf-img"));}else {vehicleObj.photos = vehicleObj.photos.map(url => url.replace("http:", "https:"));}for ( var x = 0; x < vehicleObj.photos.length; x++ ) {var thisPhoto = vehicleObj.photos[x];if ( document.URL.indexOf('galleriabmw') > -1 ) {if ( thisPhoto.indexOf('assets.cai-media-management.com') == -1 ) {thisPhoto = thisPhoto.replace('http:', 'https:');splideHtml += '
';if ( x == 0 ) {allImages = [thisPhoto];photosExist = true;}else {allImages.push(thisPhoto);}}}else {thisPhoto = thisPhoto.replace('http:', 'https:');splideHtml += '
';if ( x == 0 ) {allImages = [thisPhoto];photosExist = true;}else {allImages.push(thisPhoto);}}}}}}else {vehicleObj.photos.length = 0;}if ( window.width < 768 ) {if ( enableStockImagesConditional == '1' ) {if ( vehicleObj.photos.length < 2 ) {if (typeof vehicleObj.stockPhotos640 !== 'undefined') {if ( vehicleObj.stockPhotos640.length > 0 ) {for ( var x = 0; x < vehicleObj.stockPhotos640.length; x++ ) {var thisPhoto = vehicleObj.stockPhotos640[x].replace('http:', 'https:');splideHtml += '
';if ( photosExist == false ) {if ( x == 0 ) {allImages = [thisPhoto];}else {allImages.push(thisPhoto);}}else {allImages.push(thisPhoto);}}}}}}else if ( photosExist == false ) {if (typeof vehicleObj.stockPhotos640 !== 'undefined') {if ( vehicleObj.stockPhotos640.length > 0 ) {for ( var x = 0; x < vehicleObj.stockPhotos640.length; x++ ) {var thisPhoto = vehicleObj.stockPhotos640[x].replace('http:', 'https:');splideHtml += '
';if ( photosExist == false ) {if ( x == 0 ) {allImages = [thisPhoto];}else {allImages.push(thisPhoto);}}else {allImages.push(thisPhoto);}}}}}}else {var noneFound = true;if ( enableStockImagesConditional == '1' ) {if ( vehicleObj.photos.length < 2 ) {if (typeof vehicleObj.stockPhotos1280 !== 'undefined') {if ( vehicleObj.stockPhotos1280.length > 0 ) {for ( var x = 0; x < vehicleObj.stockPhotos1280.length; x++ ) {var thisPhoto = vehicleObj.stockPhotos1280[x].replace('http:', 'https:');splideHtml += '
';noneFound = false;if ( photosExist == false ) {if ( x == 0 ) {allImages = [thisPhoto];}else {allImages.push(thisPhoto);}}else {allImages.push(thisPhoto);}}}}}}else if (photosExist == false) {if (typeof vehicleObj.stockPhotos1280 !== 'undefined') {if ( vehicleObj.stockPhotos1280.length > 0 ) {for ( var x = 0; x < vehicleObj.stockPhotos1280.length; x++ ) {var thisPhoto = vehicleObj.stockPhotos1280[x].replace('http:', 'https:');splideHtml += '
';noneFound = false;if ( x == 0 ) {allImages = [thisPhoto];}else {allImages.push(thisPhoto);}}}}}if ( enableStockImagesConditional == '1' ) {if ( vehicleObj.photos.length < 2 ) {if (typeof vehicleObj.stockPhotos640 !== 'undefined') {if ( vehicleObj.stockPhotos640.length > 0 ) {for ( var x = 0; x < vehicleObj.stockPhotos640.length; x++ ) {var thisPhoto = vehicleObj.stockPhotos640[x].replace('http:', 'https:');splideHtml += '
';if ( photosExist == false ) {if ( x == 0 ) {allImages = [thisPhoto];}else {allImages.push(thisPhoto);}}else {allImages.push(thisPhoto);}}}}}}else if ( noneFound == true ) {if (typeof vehicleObj.stockPhotos640 !== 'undefined') {if ( vehicleObj.stockPhotos640.length > 0 ) {for ( var x = 0; x < vehicleObj.stockPhotos640.length; x++ ) {var thisPhoto = vehicleObj.stockPhotos640[x].replace('http:', 'https:');splideHtml += '
';if ( photosExist == false ) {if ( x == 0 ) {allImages = [thisPhoto];}else {allImages.push(thisPhoto);}}else {allImages.push(thisPhoto);}}}}}}if ( splideHtml == '' ) {splideHtml = '
';}$('#splide-images').html(splideHtml);$('#vdp-image-gallery-icon').data('images', JSON.stringify(allImages));buildSlider(allImages);/* Load Contact Form */var vdpLeadRedirectUrl = 'message';startVDPLeadWidget(vehicleVin, vdpLeadRedirectUrl, vdpMainImage, vehicleYear, vehicleMake, vehicleModel, vehicleTrim, dealershipName);if (typeof vehicleObj.condition !== 'undefined') {if ( vehicleObj.condition != '' ) {tagHtml += ''+vehicleObj.condition+'';}}if (typeof vehicleObj.substatus !== 'undefined') {if ( vehicleObj.substatus != '' ) {$('#vdp-status').html(vehicleObj.substatus);$('.vdp-module-lockin-status').addClass('show');}}let showAvailable = true;if (typeof vehicleObj.customTags !== 'undefined') {if ( vehicleObj.customTags != null ) {for ( let t = 0; t < vehicleObj.customTags.length; t++ ) {if ( vehicleObj.customTags[t] == 'Courtesy') {tagHtml += 'Courtesy';showAvailable = false;break;}}}}if (typeof vehicleObj.status !== 'undefined') {if ( vehicleObj.status != '' ) {if ( showAvailable == true ) {tagHtml += ''+vehicleObj.status+'';}}}$('.vdp-vehicle-tags-wrap').html(tagHtml);if (typeof vehicleObj.interiorColor !== 'undefined' ) {if ( vehicleObj.interiorColor != '' && vehicleObj.interiorColor != null) {let oemInterior = vehicleObj.interiorColor;if ( typeof ( vehicleObj.originalInteriorColor !== 'undefined')) {if ( vehicleObj.originalInteriorColor != '' && vehicleObj.originalInteriorColor != null) {oemInterior = vehicleObj.originalInteriorColor;$('.vdp-loop-details-intcolor-wrap').html(''+removeBracketedText(oemInterior)+'');}else {$('.vdp-loop-details-intcolor-wrap').html(''+removeBracketedText(vehicleObj.interiorColor)+'');}}else {$('.vdp-loop-details-intcolor-wrap').html(''+removeBracketedText(vehicleObj.interiorColor)+'');}}}if (typeof vehicleObj.originalColor !== 'undefined' ) {let hex = '';if (typeof vehicleObj.colorHex !== 'undefined') {hex = vehicleObj.colorHex.replace('#ff333333', '#000000');}if ( vehicleObj.originalColor != '') {let originalColor = removeBracketedText(vehicleObj.originalColor);$('.vdp-loop-details-extcolor-wrap').html(''+originalColor+'');}}if ( document.querySelector('.vdp-module-description') != null ) {if (typeof vehicleObj.description !== 'undefined') {if ( vehicleObj.description != '' && vehicleObj.description != null ) {let description = vehicleObj.description;description = description.replaceAll('\\n',' ', ' ');document.getElementById('vdp-description').innerHTML = description;}else {$('.vdp-module-description').hide();}}else {$('.vdp-module-description').hide();}}if (typeof vehicleObj.views !== 'undefined' && document.getElementById('vdp-views') != null ) {if ( vehicleObj.views != '0' ) {document.getElementById('vdp-views').innerHTML = vehicleObj.views;$('#vdp-views').attr('data-value', vehicleObj.views);$('.vdp-module-lockin-views').addClass('show');}}if (typeof vehicleObj.likes !== 'undefined' && document.getElementById('vdp-faves') != null ) {if ( vehicleObj.likes != '0' ) {document.getElementById('vdp-faves').innerHTML = vehicleObj.likes;$('#vdp-faves').attr('data-value', vehicleObj.likes);$('.vdp-module-lockin-faves').addClass('show');}}/*if (typeof vehicleObj.modelCode !== 'undefined') {$('.vehicleid-modelcode').attr('data-value', vehicleObj.modelCode);document.getElementById('vehicleid-modelcode').innerHTML = vehicleObj.modelCode;}*/let noHighlights = true;if (typeof vehicleObj.exteriorHighlights !== 'undefined' && document.getElementById('vdp-highlights-exterior') != null ) {if ( vehicleObj.exteriorHighlights.length > 0 ) {var exteriorHtml = '';for (var i = 0; i < vehicleObj.exteriorHighlights.length; i++) {exteriorHtml += ' '+vehicleObj.exteriorHighlights[i]+' '+vehicleObj.safetyHighlights[i]+' '+vehicleObj.technologyHighlights[i]+' '+vehicleObj.interiorHighlights[i]+' '+vehicleObj.mechanicalHighlights[i].replace('ENGINE:','Engine:')+' '+vehicleObj.moreHighlights[i]+' '+allFeatures[i]+' '+vehicleObj.exteriorFeatures[i]+' '+vehicleObj.interiorFeatures[i]+' '+vehicleObj.mechanicalFeatures[i]+' '+vehicleObj.safetyFeatures[i]+' '+vehicleObj.technologyFeatures[i]+' '+vehicleObj.moreFeatures[i]+' Check Availability '+thisRebate.programName+' - $'+numberWithCommas(thisRebate.programCashValue)+' ';if ( price != 0 && price != 'Ask' ) {incentiveHtml += ' ' +' ' + ' Est. Payment ' +'' + '' + '' + ' ' +' ' +'' +' ' +' ';if ( vehicleObj.condition == 'new' ) {incentiveHtml += ' ' +' ' +' '+msrpText+' ' +' ' +''+thisMsrp+'' + ' ' +' ' + ' ';if ( addOn != '' && addOn != 0 ) {addOn = parseInt(addOn);discountFromMSRP = discountFromMSRP+addOn;}else if ( typeof vehicleObj.discountedPrice != 'undefined' && price != 0 ) {if ( vehicleObj.discountedPrice != '' && vehicleObj.discountedPrice != null && msrp != 0 ) {discountFromMSRP = msrp - vehicleObj.discountedPrice;}}if ( discountFromMSRP > 0 ) {incentiveHtml += ' ' +' ' +' Dealer Discount ' +' ' +'-$'+numberWithCommas(discountFromMSRP)+'' + ' ' +' ' + ' ';}if ( rebateHtml != '' && rebateCount > 0 ) {incentiveHtml += ' ' +' ' +' ' +' Instant Offers ' +' ' +rebateHtml +' ';}if ( addOn != '' && addOn != 0 ) {priceLabel = 'Price with Add-Ons';}}if ( addOn != '' && addOn != 0 ) {incentiveHtml += ' ' +' ' +' Add-Ons ' +' ' +'+$'+numberWithCommas(addOn)+'' + ' ' +' ' + ' ';}incentiveHtml += ' ' +' ' +' '+priceLabel+' ' +' '+ numberWithCommas(price) + ' ' +' ' +' ';}incentiveHtml += ' ';if ( vehicleObj.condition == 'new' ) {if ( typeof vehicleObj.rebates != 'undefined' ) {if ( vehicleObj.rebates != null && vehicleObj.rebates != 0 && vehicleObj.rebates != '%5B%5D' ) {incentives = JSON.parse(vehicleObj.rebates);var incentiveList = [];if ( incentives.length > 0 ) {var rebateCount = 0,rebateHtml = '';for (var i = 0; i < incentives.length; i++) {var thisRebate = incentives[i],rebateIdentifier = '',transactionType = '',isAvailableToAll = '',programCashValue = 0;if ( typeof thisRebate.programCashValue != 'undefined' ) {programCashValue = thisRebate.programCashValue;}if ( typeof thisRebate.programName != 'undefined' ) {rebateIdentifier += thisRebate.programName;}if ( typeof thisRebate.programId != 'undefined' ) {rebateIdentifier += thisRebate.programId;}if ( typeof thisRebate.programCashValue != 'undefined' ) {rebateIdentifier += thisRebate.programCashValue;}if ( typeof thisRebate.transactionType != 'undefined' ) {transactionType = thisRebate.transactionType;}if ( typeof thisRebate.isAvailableToAll != 'undefined' ) {isAvailableToAll = thisRebate.isAvailableToAll;}if ( incentiveList.includes(rebateIdentifier) == false && programCashValue != 0 && isAvailableToAll == false ) {rebateHtml += ' '+thisRebate.programName+' - $'+numberWithCommas(thisRebate.programCashValue)+' ';incentiveList.push(rebateIdentifier);rebateCount++;}}if ( rebateHtml != '' && rebateCount > 0 ) {incentiveHtml += ' ' +' ' +' ' +' Conditional Offers ' +' ' +rebateHtml +' ';}incentiveHtml += ' All incentives are subject to conditions and restrictions. Contact dealership to determine specific eligibility and prices. ';}}}}incentiveHtml += ' ';incentiveHtml += ' ', carouselClass = 'active';for (var i = 0; i < allImages.length; i++) {if (i==0) {carouselClass = 'active';}if (i==1) {carouselClass = 'small';}if (i==2){carouselClass = 'small';}if (i==3) {carouselClass = 'micro';}if (i==4) {carouselClass = 'hidden';}if (i>4) {carouselClass = 'hidden';}carouselPaginationHtml += '';}carouselPaginationHtml += ' Your privacy is very important to us. Please see our Privacy Policy for more information. Easy value for your trade-in. Get Trade Value
').replaceAll('').css('visibility','visible');}else {/* Image slider */var carouselHeight = '480px', imageGap = '8px';if ( imageCount < 2 ) {carouselHeight = '300px';imageGap = '0px';}mainSlider = new Splide( '#vdp-loop-splide', {type : 'loop',perPage : 3,autoWidth : true,focus : 'center',start : 0,height : carouselHeight,gap : imageGap,pagination : false,lazyLoad : 'nearby',arrows : true,breakpoints: {767: {perPage: 1,height: '290px',gap: imageGap,autoWidth: false,autoHeight: true},}} );mainSlider.on( 'mounted', function () {if ( imageCount < 2 ) {$('.vdp-loop-images .splide__arrows, .vdp-loop-images .splide__pagination').hide();}});var carouselPaginationHtml = '
');$('.vehicle-share-form .form-vehicle-year').html(vehicleObj.year);$('.vehicle-share-form .form-vehicle-make').html(vehicleObj.make);$('.vehicle-share-form .form-vehicle-model').html(vehicleObj.model);$('.vehicle-share-form .form-vehicle-price').html(vehicleObj.trim);let dealershipName = vehicleObj.dealershipName;dealershipName = dealershipName.replace('AutoSmart ','');$('.vehicle-share-form input[name="vehicle_inquiry_year"]').val(vehicleObj.year);$('.vehicle-share-form input[name="vehicle_inquiry_make"]').val(vehicleObj.make);$('.vehicle-share-form input[name="vehicle_inquiry_model"]').val(vehicleObj.model);$('.vehicle-share-form input[name="vehicle_inquiry_trim"]').val(vehicleObj.trim);$('.vehicle-share-form input[name="vehicle_inquiry_vin"]').val(vehicleObj.vin);$('.vehicle-share-form input[name="vehicle_inquiry_stock"]').val(vehicleObj.stock);$('.vehicle-share-form input[name="vehicle_inquiry_condition"]').val(vehicleObj.condition);$('.vehicle-share-form input[name="vehicle_inquiry_link"]').val(vdpPermalink);$('.vehicle-share-form input[name="vehicle_location"]').val(dealershipName);$('.vehicle-lead-form, .images-gallery-popup').removeClass('show');$('#srp-lightbox-wrap').removeClass('gallery');$('.srp-lightbox, .vehicle-share-form').addClass('show');$('.srp-lead-form-main .vehicle-share-form .nf-form-layout .nf-form-content input[type=button]').attr('value','Send Link');$('.srp-lead-form-main .vehicle-share-form input[type="text"], .srp-lead-form-main .vehicle-share-form input[type="tel"]').keyup(function(){var $this = $(this),val = $this.val();if (val == '' || val == '(___) ___-____') {$this.parent().parent().removeClass('smaller');}else {$this.parent().parent().addClass('smaller');}});$('.srp-lead-form-main .vehicle-share-form .email input[type="text"]').keyup(function(){captureEmail = $(this).val();});$('.srp-lead-form-main .vehicle-share-form .first_name input[type="text"]').keyup(function(){captureFirstName = $(this).val();});$('.srp-lead-form-main .vehicle-share-form .last_name input[type="text"]').keyup(function(){captureLastName = $(this).val();});$('.srp-lead-form-main .vehicle-share-form .phone-container input[type="tel"]').keyup(function(){capturePhone = $(this).val().replaceAll('(','').replaceAll(')','').replaceAll(' ','').replaceAll('-','');});//$('.vehicle-share-form .textarea-container:first').after('