Disclaimer
Term (mo.)
Frequency
Down Payment
$
MSRP
$48,295
Freight & PDI
$2,295
HST
$6,561.62
Manufacturer Rebate
-$500
Balance to Finance
$57,080.1
Term (mo.)
Frequency
KMs Allowance Per Year
Down Payment
$
Selling Price
$48,295
Freight & PDI
$2,295
Manufacturer Rebate
-$500
Balance to Lease
$50,510.0
5.99% lease APR for 48 months equals a biweekly payment of 382.27 for 130 weeks (biweekly payments/months). $0 down payment or equivalent trade-in, $0 security deposit and $382.27 first payment equals $382 due at lease inception. Total lease obligation of $50,510. Estimated Residual Value of $24,373. Lease based on selected 16000 kilometre per year allowance with excess kilometers charged at a rate of $0.15/km.
$191.27 / w
Taxes included
' + '
' + '
' + formatMoneyByCurrentLanguage(value.Value) + '
' + '
' + '
' jQuery('#' + type + '_ppsa_fees').append(html); }); }function populateHST(value, type){ jQuery('#subaru_' + type + '_hst').html(''); jQuery('#subaru_' + type + '_hst').append('
' + '
' + '
' + value.Label + '
' + '
' + '
' + '
' + formatMoneyByCurrentLanguage(value.Value) + '
' + '
' + '
'); } function populateOtherFees(incentivesObj, type){ jQuery('#subaru_' + type + '_other_fees').html(''); jQuery.each(incentivesObj.Fees, function(key, value) { var html = '
' + '
' + '
' + '
' + formatMoneyByCurrentLanguage(value.Value) + '
' + '
' + '
' jQuery('#subaru_' + type + '_other_fees').append(html); }); }function populateDownpayment(value, type){ jQuery('#subaru_' + type + '_down_payment_label').html(''); if(value.DownPayment > 0){ jQuery('#subaru_' + type + '_down_payment_label').append('
' + '
' + '
Down Payment
' + '
' + '
' + '
-$' + value.DownPayment.formatMoney(2,',','.') + '
' + '
' + '
'); } down_payment = value.DownPayment.formatMoney(2, ',', '.'); populateDownPaymentDisclaimer();}function populateCustomFees(type){ jQuery('#subaru_' + type + '_custom_fees').html(''); jQuery.each(SubaruincentivesObj.customFeeSettings.customFees, function(key, value) { var html = '
' + '
' + '
' + key + ''; html += '
' + '
' + '
' + '
' + formatMoneyByCurrentLanguage(parseFloat(value)) + '
' + '
' + '
' jQuery('#subaru_' + type + '_custom_fees').append(html); }); if(SubaruincentivesObj.additionalFeeValue > 0){ var html = '
' + '
' + '
' + SubaruincentivesObj.additionalFeeLabel + ''; html += '
' + '
' + '
' + '
' + formatMoneyByCurrentLanguage(parseFloat(SubaruincentivesObj.additionalFeeValue)) + '
' + '
' + '
' jQuery('#subaru_' + type + '_custom_fees').append(html); }}function populatePackage(value, type){ jQuery('#subaru_' + type + '_package').html(''); var html = '
' + '
' + '
' + value.Label + '
' + '
' + '
' + '
' + formatMoneyByCurrentLanguage(value.Value) + '
' + '
' + '
'; jQuery('#subaru_' + type + '_package').append(html); } function populateColour(value, type){ jQuery('#subaru_' + type + '_colour').html(''); var html = '
' + '
' + '
' + value.Label + '
' + '
' + '
' + '
' + formatMoneyByCurrentLanguage(value.Value) + '
' + '
' + '
'; jQuery('#subaru_' + type + '_colour').append(html); } jQuery('#cash_panel > a').click(function(){ var classanswerOne = jQuery('#answerOne').attr("class"); if(classanswerOne === 'panel-collapse in' || classanswerOne === 'panel-collapse collapse in'){ jQuery('#cash_icon').attr('class', 'iom_panel_collapsed'); }else{ jQuery('#cash_icon').attr('class', 'iom_panel_expanded'); jQuery('#finance_icon').attr('class', 'iom_panel_collapsed'); jQuery('#lease_icon').attr('class', 'iom_panel_collapsed'); } }); jQuery('#finance_panel > a').click(function(){ var classanswerOne = jQuery('#answerTwo').attr("class"); if(classanswerOne === 'panel-collapse in' || classanswerOne === 'panel-collapse collapse in'){ jQuery('#finance_icon').attr('class', 'iom_panel_collapsed'); }else{ jQuery('#finance_icon').attr('class', 'iom_panel_expanded'); jQuery('#cash_icon').attr('class', 'iom_panel_collapsed'); jQuery('#lease_icon').attr('class', 'iom_panel_collapsed'); } }); jQuery('#lease_panel > a').click(function(){ var classanswerOne = jQuery('#answerThree').attr("class"); if(classanswerOne === 'panel-collapse in' || classanswerOne === 'panel-collapse collapse in'){ jQuery('#lease_icon').attr('class', 'iom_panel_collapsed'); }else{ jQuery('#lease_icon').attr('class', 'iom_panel_expanded'); jQuery('#cash_icon').attr('class', 'iom_panel_collapsed'); jQuery('#finance_icon').attr('class', 'iom_panel_collapsed'); } }); function getDataForSubaruIncentivesAjax(lang, down_payment_finance, down_payment_lease) { jQuery.ajax({ type: 'POST', url: '/ajax/subaru-incentives', dataType: 'html', async: true, data: { vehiclePrice: 48295, vehicleid: "13162709", isEdealerVID: true, website_id: '2136', down_payment_finance: removeCurrencyFormatting(down_payment_finance), down_payment_lease: removeCurrencyFormatting(down_payment_lease), language: lang }, success: function(reply) { if(reply != ''){ SubaruincentivesObj = []; SubaruincentivesData = []; var replyObj = jQuery.parseJSON(reply); SubaruincentivesObj = replyObj; SubaruincentivesData = jQuery.parseJSON(replyObj.response); getDataForSubaruIncentives(true); if(SubaruincentivesObj.finance_incentives.length > 0){ var frequency_f = jQuery('#finance_frequency label.active').text().trim(); var term_f = jQuery('#finance_terms label.active').text().trim(); getPaymentDatatByTypeTermAndFrequency(term_f, frequency_f, 'finance', null); }else{ jQuery('#finance_panel').attr('style', 'display: none;'); } if(SubaruincentivesObj.lease_incentives.length > 0){ var frequency_l = jQuery('#lease_frequency label.active').text().trim(); var term_l = jQuery('#lease_terms label.active').text().trim(); var l_km_allowance = jQuery('#lease_km_allowance label.active').text().trim().replace(',',''); getPaymentDatatByTypeTermAndFrequency(term_l, frequency_l, 'lease', l_km_allowance); jQuery('#subaru_lease_km_allowance_label').html(SubaruincentivesObj.lease_km_allowance_label); }else{ jQuery('#lease_panel').attr('style', 'display: none;'); } } } });} function removeCurrencyFormatting(currency) { if (currency == '') return 0; return parseFloat(currency.replace('$', '').replace(' ', '').replace(',', ''));}function clearDynamicIOMContainers(){ jQuery('#cash_incentives').html(''); jQuery('#finance_payment_frequency').html(''); jQuery('#finance_terms').html(''); jQuery('#finance_stackable_cash').html(''); jQuery('#lease_payment_frequency').html(''); jQuery('#lease_terms').html(''); jQuery('#lease_stackable_cash').html(''); jQuery('#cash_discount, #finance_discount, #lease_discount').html(''); jQuery('#finance_ppsa_fees, #lease_ppsa_fees').html('');}function populateDownPaymentDisclaimer(){ down_payment_disclaimer = ''; if(is_down_payment_percentage){ down_payment_disclaimer = formatMoneyByCurrentLanguage(parseFloat(down_payment)) + '% down payment '; if(currentLanguageCode == 'fr-CA'){ down_payment_disclaimer = formatMoneyByCurrentLanguage(parseFloat(down_payment)); } }else{ down_payment_disclaimer = formatMoneyByCurrentLanguage(parseFloat(down_payment)) + ' down payment '; if(currentLanguageCode == 'fr-CA'){ down_payment_disclaimer = formatMoneyByCurrentLanguage(parseFloat(down_payment)); } }}// toggle classesfunction toggleClassActive(on_change_element, label_class){ jQuery(on_change_element).change(function() { jQuery(label_class).removeClass("active"); if(jQuery(this).is(":checked")) { jQuery(this).closest(label_class).addClass("active"); } });}toggleClassActive("[name='incentive_finance_terms']", "#finance_terms label");toggleClassActive("[name='incentive_lease_terms']", "#lease_terms label");toggleClassActive("[name='incentive_finance_frequency']", "#finance_frequency label");toggleClassActive("[name='incentive_lease_frequency']", "#lease_frequency label");toggleClassActive("[name='incentive_lease_km_allowance'", "#lease_km_allowance label");jQuery('body, html').on('click','.subaruFeesModalShow', function(event) { event.preventDefault(); var e = jQuery(this); var title = e.attr('data-title'); var body = e.attr('data-value'); jQuery('#subaru-fees-modal .modal-title').html(title); jQuery('#subaru-fees-modal .modal-body').html('
' + body + '
'); jQuery('#subaru-fees-modal').modal('show');});function get_kms_allowance_disclaimer(allowed_mileage){ kms_allowance_disclaimer = ''; if(!isEmpty(allowed_mileage)){ //kms_allowance_disclaimer = parseFloat(allowed_mileage).formatMoney(0, ',', '.'); if(currentLanguageCode == 'fr-CA' ){ kms_allowance_disclaimer += ' allocation de' + parseFloat(allowed_mileage).formatMoney(0, ' ', ',') + ' km/an, '; }else{ kms_allowance_disclaimer += parseFloat(allowed_mileage).formatMoney(0, ',', '.') + ' kilometre per year allowance '; } } return kms_allowance_disclaimer;}function preventDepositIfGreaterThanPrice(e, type, depositFlag){ var veh_price = SubaruincentivesObj.incentiveModel.MSRP; var deposit = jQuery('#subaru_' + type + '_down_payment').val(); if(isEmpty(deposit)){ deposit = 0; } var max_deposit = veh_price; if(depositFlag){ if (deposit > max_deposit && e.keyCode != 46 // delete && e.keyCode != 8 // backspace ) { e.preventDefault(); jQuery('#subaru_' + type + '_down_payment').val(max_deposit); } }} function getPaymentDataByFrequency(offer, PaymentsPerYear){ var result = null; if(offer.PaymentsDataByFrequency !== null){ jQuery.each(offer.PaymentsDataByFrequency, function(key, value) { if(value.PaymentsPerYear == PaymentsPerYear){ result = value; } }); } return result;} var timerid_finance_down_payment;jQuery("#subaru_finance_down_payment").on("input", function(e) { preventDepositIfGreaterThanPrice(e, 'finance', true); var value = jQuery(this).val(); if (jQuery(this).data("lastval") != value) { jQuery(this).data("lastval", value); clearTimeout(timerid_finance_down_payment); timerid_finance_down_payment = setTimeout(function() { var lease_down_payment = jQuery('#subaru_lease_down_payment').val(); if(isEmpty(value)){ value = 0; } if(isEmpty(lease_down_payment)){ lease_down_payment = 0; } getDataForSubaruIncentivesAjax(currentLanguageCode,value, lease_down_payment); }, 500); }; });var timerid_lease_down_payment;jQuery("#subaru_lease_down_payment").on("input", function(e) { preventDepositIfGreaterThanPrice(e, 'lease', true); var value = jQuery(this).val(); if (jQuery(this).data("lastval") != value) { jQuery(this).data("lastval", value); clearTimeout(timerid_lease_down_payment); timerid_lease_down_payment = setTimeout(function() { var finance_down_payment = jQuery('#subaru_finance_down_payment').val(); if(isEmpty(value)){ value = 0; } if(isEmpty(finance_down_payment)){ finance_down_payment = 0; } getDataForSubaruIncentivesAjax(currentLanguageCode,finance_down_payment, value); }, 500); }; });function populateCashAccordion(){ console.log('populateCashAccordion()'); populateMSRP(); if(SubaruincentivesObj.cash_incentives[0].Colour !== null){ populateColour(SubaruincentivesObj.cash_incentives[0].Colour, 'cash'); } if(SubaruincentivesObj.cash_incentives[0].Package !== null){ populatePackage(SubaruincentivesObj.cash_incentives[0].Package, 'cash'); } populatePDIFreight(); populateCustomFees('cash'); populateOtherFees(SubaruincentivesObj.cash_incentives[0], 'cash'); populateStackableOffers(SubaruincentivesObj.cash_incentives[0], 'cash'); if(SubaruincentivesObj.cash_incentives[0].HST !== null){ populateHST(SubaruincentivesObj.cash_incentives[0].HST, 'cash'); } jQuery('#cash_price_bottom').html(formatMoneyByCurrentLanguage(SubaruincentivesObj.cash_incentives[0].CalculatedTotal)); jQuery('#cash_price').html(formatMoneyByCurrentLanguage(SubaruincentivesObj.cash_incentives[0].CalculatedTotal));}function formatMoneyByCurrentLanguage(amount){ if(currentLanguageCode == 'fr-CA'){ return amount.formatMoney(2,' ',',') + ' $'; }else{ return '$' + amount.formatMoney(2,',','.'); }}function populatePDIFreight(){ jQuery('.maincontent .subaru_pdi_freight div:nth-child(1) p strong').html(SubaruincentivesObj.pdi_freight_label); jQuery('.maincontent .subaru_pdi_freight div:nth-child(2) p').html(formatMoneyByCurrentLanguage(SubaruincentivesObj.incentiveModel.PDIFreight));}function populateMSRP(){ jQuery('.maincontent .subaru_msrp div:nth-child(2) p').html(formatMoneyByCurrentLanguage(SubaruincentivesObj.incentiveModel.MSRP));}function populateStackableOffers(incentivesObj, type){ jQuery(".subaru_" + type + "_stackable_offers").html(''); var html = ''; jQuery.each(incentivesObj.StackableOffers, function (key, stackableOffer) { html += '
' + '
' + '
' + stackableOffer.Label + ''; if(stackableOffer.Disclaimer){ html += ''; } html += '
'; html += '
' + '
' + '
-' + formatMoneyByCurrentLanguage(stackableOffer.Value) + '
' + '
' + '
'; }); jQuery(".subaru_" + type + "_stackable_offers").append(html);}});