Limited Time Offer: Get 0% APR for 75 Months. Shop Fall Savings!

Pre-Owned 2023 Mercedes-Benz CLS 450 4MATIC®

  • VIN: W1K2J5KB6PA121174
  • Stock: DV61527A

Basic Info

  • Exterior:
    Graphite Grey Metallic
  • Drivetrain:
    AWD 4MATIC
  • Interior:
    Black
  • Transmission:
    9-Speed Automatic w/OD
  • Engine:
    Intercooled Turbo Gas/Electric I-6 3.0 L/183
  • Fuel Efficiency:
    22 CITY / 30 HWY
  • Mileage:
    21,409

Key Features

  • AWD
  • Android Auto
  • Apple CarPlay
  • Backup Camera
  • Blind Spot Monitor
  • Bluetooth
  • Distronic
  • Drivers Assistance Package
  • Forward Collision Warning
  • Hands-Free Liftgate
  • Heated Seats
  • Interior Accents
  • Keyless Entry
  • Leather Seats
  • Navigation System
  • Parking Sensors / Assist
  • Parktronic
  • Power Seats
  • Premium Package
  • Push Start
  • Rain Sensing Wipers
  • Remote Start
  • Side-Impact Air Bags
  • Sunroof / Moonroof

History Report

Description

This vehicle is available for transfer from another Hendrick Automotive Group dealership. All vehicles may not be physically located at this dealership but may be available for delivery through this location. Transportation charges may apply. Please contact the dealership for more specific information. All vehicles are subject to prior sale. Pricing may not include dealer installed accessories or upfits.

Vehicle Details

Exterior

  • Auto On/Off Projector Beam Led Low/High Beam Daytime Running Headlamps w/Washer and Delay-Off
  • Body-Colored Door Handles
  • Body-Colored Front Bumper w/Chrome Rub Strip/Fascia Accent
  • Body-Colored Power Heated Side Mirrors w/Driver Auto Dimming, Power Folding and Turn Signal Indicator
  • Body-Colored Rear Bumper w/Chrome Rub Strip/Fascia Accent
  • Chrome Grille
  • Chrome Side Windows Trim and Black Front Windshield Trim
  • Fixed Rear Window w/Defroster
  • Galvanized Steel/Aluminum Panels
  • LED Brakelights
  • Light Tinted Glass
  • Perimeter/Approach Lights
  • Power 1-Touch Sliding And Tilting Glass 1st Row Sunroof w/Sunshade
  • Speed Sensitive Rain Detecting Variable Intermittent Wipers w/Heated Jets
  • Tires: 245/40R19 Fr & 275/35R19 Rr -inc: All-Season Tires, MOE Tires (Extended Mobility)
  • Trunk Rear Cargo Access
  • Wheels: 8 J x 19 ET33 Fr & 9 J x 19 ET33 Rr -inc: Twin multi-spoke

Interior

  • 13 Burmester Speakers
  • 2 12V DC Power Outlets
  • 2 Monitors In The Front
  • 2 Seatback Storage Pockets
  • 2-Way Power Driver Seat -inc: Power Cushion Extension
  • 2-Way Power Passenger Seat -inc: Power Cushion Extension
  • 40-20-40 Folding Bench Front Facing Fold Forward Seatback Rear Seat
  • 590w Regular Amplifier
  • Air Filtration
  • Cargo Space Lights
  • Compass
  • Cruise Control
  • Day-Night Auto-Dimming Rearview Mirror
  • Delayed Accessory Power
  • Digital Signal Processor
  • Digital/Analog Appearance
  • Driver / Passenger And Rear Door Bins
  • Driver And Passenger Visor Vanity Mirrors w/Driver And Passenger Illumination, Driver And Passenger Auxiliary Mirror
  • Driver Foot Rest
  • Driver Information Center
  • Dual Zone Front Automatic Air Conditioning
  • FOB Controls -inc: Keyfob Cargo Access, Keyfob Window Activation, Keyfob Sunroof/Convertible Roof Activation and Keyfob Remote Start
  • Front And Rear Map Lights
  • Front Center Armrest and Rear Center Armrest w/Pass-Thru w/Storage
  • Front Cupholder
  • Full Carpet Floor Covering -inc: Carpet Front And Rear Floor Mats
  • Full Cloth Headliner
  • Full Floor Console w/Covered Storage, Mini Overhead Console w/Storage and 2 12V DC Power Outlets
  • Gauges -inc: Speedometer, Odometer, Engine Coolant Temp, Tachometer, Power/Regen, Trip Odometer and Trip Computer
  • Heated Front Seats
  • HomeLink Garage Door Transmitter
  • HVAC -inc: Underseat Ducts and Console Ducts
  • Illuminated Locking Glove Box
  • Immobilizer
  • Integrated Navigation System w/Voice Activation
  • Interior Trim -inc: Leather/Genuine Wood Console Insert, Chrome/Metal-Look Interior Accents and MB-Tex Leatherette Upholstered Dashboard
  • Leather Door Trim Insert
  • Leather Upholstery -inc: MB-Tex dashboard w/stitching
  • Memory Settings -inc: Driver And Passenger Seats, Door Mirrors, Steering Wheel and Head Restraints
  • Mercedes me connect Tracker System
  • Nappa Leather Steering Wheel w/Auto Tilt-Away
  • Outside Temp Gauge
  • Perimeter Alarm
  • Power 1st Row Windows w/Front And Rear 1-Touch Up/Down
  • Power Door Locks w/Autolock Feature
  • Power Front Bucket Seats -inc: 3-position memory and 4-way lumbar support
  • Power Fuel Flap Locking Type
  • Power Rear Windows
  • Power Tilt/Telescoping Steering Column
  • Power w/Tilt Front Head Restraints and Manual Adjustable Rear Head Restraints
  • Proximity Key For Doors And Push Button Start
  • Radio w/Seek-Scan, Clock, Speed Compensated Volume Control, Aux Audio Input Jack, Steering Wheel Controls, Radio Data System and External Memory Control
  • Radio: MBUX Infotainment System w/Navigation -inc: Hey Mercedes functionality, 12.3 digital instrument and central display w/touchscreen, smartphone integration w/Apple CarPlay and Android Auto, new generation touchpad, Mercedes me connect, Bluetooth connectivity and USB-C adapter cable
  • Real-Time Traffic Display
  • Rear Carpet Floor Trim
  • Rear Cupholder
  • Redundant Digital Speedometer
  • Remote Keyless Entry w/Integrated Key Transmitter, 4 Door Curb/Courtesy, Illuminated Entry, Illuminated Ignition Switch and Panic Button
  • Remote Releases -Inc: Hands-Free Access Proximity Cargo Access
  • Seats w/Leatherette Back Material
  • Selective Service Internet Access
  • Smart Device Integration
  • Smart Device Remote Engine Start
  • Trip Computer
  • Turn-By-Turn Navigation Directions
  • Valet Function
  • Window Grid Diversity Antenna
  • Wireless Phone Connectivity

Mechanical

  • 2.82 Axle Ratio
  • 21.1 Gal. Fuel Tank
  • Battery w/Run Down Protection
  • Driver Selectable Ride Control Suspension
  • Dual Stainless Steel Exhaust w/Chrome Tailpipe Finisher
  • Electric Power-Assist Speed-Sensing Steering
  • Engine Auto Stop-Start Feature
  • Engine: 3.0L Inline-6 Turbo -inc: Mild-Hybrid Drive
  • Front And Rear Anti-Roll Bars
  • Front And Rear Auto-Leveling Suspension
  • Full-Time 4MATIC All-Wheel Drive
  • Gas-Pressurized Shock Absorbers
  • Hybrid Starter Generator
  • Lithium Ion (li-Ion) Traction Battery 1 kWh Capacity
  • Multi-Link Front Suspension w/Coil Springs
  • Multi-Link Rear Suspension w/Coil Springs
  • Regenerative 4-Wheel Disc Brakes w/4-Wheel ABS, Front And Rear Vented Discs, Brake Assist, Hill Hold Control and Electric Parking Brake
  • Transmission w/Driver Selectable Mode and Sequential Shift Control w/Steering Wheel Controls
  • Transmission: 9G-TRONIC 9-Speed Automatic

Safety

  • ABS And Driveline Traction Control
  • Active Brake Assist
  • Airbag Occupancy Sensor
  • Back-Up Camera
  • Blind Spot Assist Blind Spot Warning
  • Child Seat Sensor and Rear Child Safety Locks
  • Collision Mitigation-Front
  • Collision Warning-Front
  • Curtain 1st And 2nd Row Airbags
  • Driver Knee Airbag
  • Driver Monitoring-Alert
  • Dual Stage Driver And Passenger Front Airbags
  • Dual Stage Driver And Passenger Seat-Mounted Side Airbags
  • eCall Emergency System Emergency Sos Capability
  • ESP w/Crosswind Assist Electronic Stability Control (ESC)
  • Outboard Front Lap And Shoulder Safety Belts -inc: Rear Center 3 Point, Height Adjusters and Pretensioners
  • Side Impact Beams
  • Tire Specific Low Tire Pressure Warning

Details

  • HEATED STEERING WHEEL
  • EXTERIOR LIGHTING PACKAGE -inc: LED Intelligent Light System
  • PREMIUM PACKAGE -inc: SiriusXM Radio 6-month all access plan trial Parking Package Code PARKTRONIC w/Active Parking Assist Surround View Camera Burmester Surround Sound System
  • HEATED & VENTILATED FRONT SEATS
  • HEAD-UP DISPLAY
  • AMG LINE -inc: Mercedes-Benz star in radiator grille and brushed aluminum sport pedals w/rubber studs AMG Floor Mats (Matching to Upholstery Color) Black Headliner
  • WHEELS: 8 J X 20 ET33 FR/9 J X 20 ET28 RR (RVQ) -inc: AMG multi-spoke w/black accents Tires: 245/35R20 Fr & 275/30R20 Rr Low-Noise Performance Tires High-Performance Tires MOE Tires (Extended Mobility)
  • DRIVER ASSISTANCE PACKAGE -inc: Active Blind Spot Assist vehicle exit warning function Active Steering Assist Evasive Steering Assist Active Distance Assist DISTRONIC Active Speed Limit Assist Active Lane Change Assist PRE-SAFE Impulse Side Active Emergency Stop Assist Route-Based Speed Adaptation w/End-of Traffic-Jam Active Lane Keeping Assist
  • Turbo/Supercharged
  • All Wheel Drive
  • Power Steering
  • ABS
  • 4-Wheel Disc Brakes
  • Brake Assist
  • Lithium Ion Traction Battery
  • Aluminum Wheels
  • Tires - Front Performance
  • Tires - Rear Performance
  • Sun/Moonroof
  • Generic Sun/Moonroof
  • Heated Mirrors
  • Power Mirror(s)
  • Integrated Turn Signal Mirrors
  • Power Folding Mirrors
  • Rear Defrost
  • Intermittent Wipers
  • Variable Speed Intermittent Wipers
  • Rain Sensing Wipers
  • Daytime Running Lights
  • Automatic Headlights
  • LED Headlights
  • AM/FM Stereo
  • Navigation System
  • MP3 Capability
  • Bluetooth Connection
  • HD Radio
  • Smart Device Integration
  • Premium Sound System
  • MP3 Capability
  • Steering Wheel Audio Controls
  • Auxiliary Audio Input
  • Premium Sound System
  • Bluetooth Connection
  • Power Driver Seat
  • Power Passenger Seat
  • Bucket Seats
  • Driver Adjustable Lumbar
  • Passenger Adjustable Lumbar
  • Seat Memory
  • Heated Front Seat(s)
  • Power Driver Seat
  • Power Passenger Seat
  • Pass-Through Rear Seat
  • Rear Bench Seat
  • Adjustable Steering Wheel
  • Trip Computer
  • Power Windows
  • Telematics
  • Requires Subscription
  • Leather Steering Wheel
  • Keyless Entry
  • Power Door Locks
  • Keyless Start
  • Keyless Entry
  • Power Door Locks
  • Hands-Free Liftgate
  • Universal Garage Door Opener
  • Cruise Control
  • Climate Control
  • Multi-Zone A/C
  • A/C
  • Leather Seats
  • Woodgrain Interior Trim
  • Auto-Dimming Rearview Mirror
  • Driver Vanity Mirror
  • Passenger Vanity Mirror
  • Driver Illuminated Vanity Mirror
  • Passenger Illuminated Visor Mirror
  • Floor Mats
  • Mirror Memory
  • Seat Memory
  • Remote Engine Start
  • Keyless Start
  • Remote Engine Start
  • Smart Device Integration
  • Requires Subscription
  • Navigation System
  • Smart Device Integration
  • Power Windows
  • Power Door Locks
  • Trip Computer
  • Power Driver Seat
  • Power Passenger Seat
  • Mirror Memory
  • Seat Memory
  • Pass-Through Rear Seat
  • Security System
  • Immobilizer
  • Traction Control
  • Stability Control
  • Traction Control
  • Front Side Air Bag
  • Telematics
  • Requires Subscription
  • Blind Spot Monitor
  • Front Collision Mitigation
  • Front Collision Warning
  • Driver Monitoring
  • Tire Pressure Monitor
  • Driver Air Bag
  • Passenger Air Bag
  • Front Head Air Bag
  • Rear Head Air Bag
  • Passenger Air Bag Sensor
  • Knee Air Bag
  • Child Safety Locks
  • Back-Up Camera
Map of Hendrick Subaru Hoover Location

Get Directions

WE ARE LOCATED AT

2929 John Hawkins Parkway, Hoover, AL 35244

Hendrick Vehicle Disclaimer
$949.00 Dealer Administrative Charge included in advertised price.

All prices exclude all taxes, tag, title, registration fees and government fees. Out of state buyers are responsible for all taxes and government fees and title/registration fees in the state where the vehicle will be registered. All prices include all manufacturer to dealer incentives, which the dealer retains unless otherwise specifically provided. Dealer not responsible for errors and omissions; all offers subject to change without notice; please confirm listings with dealer.

All vehicles may not be physically located at this dealership but may be available for delivery through this location. Transportation charges may apply. Please contact the dealership for more specific information. All vehicles are subject to prior sale.
Additional Disclaimers:

*Now through November 30, 2026 get 1.99% APR Financing for 72 months on a new 2026 Crosstrek. Monthly payment of $14.75 per $1,000 borrowed. Manufacturer Offer. No down payment required. Offer may vary by location. Other rates and payment terms available. Cannot be combined with any other coupon, direct/email offer or promotional offer unless allowed by that offer. Financing for well-qualified applicants only. Length of contract is limited. Subject to credit approval, vehicle insurance approval and vehicle availability. Vehicle may not be in stock. Estimated delivery to be determined upon ordering. See participating retailers for details. Must take delivery from retailer stock by November 30, 2026. **Now through November 30, 2026 lease a new 2026 Crosstrek for $235/month on a 36-month lease (Base trim, code TRA-03). $3,234 due at lease signing plus tax & license. $0 security deposit. Manufacturer Offer. MSRP $28,445 (incl. $1,450 freight charge). Net cap cost of $25,346 (incl. $650 acq. fee). Total monthly payments are $8,460. Lease end purchase option is $17,920. Must take delivery from retailer stock by November 30, 2026. Other leases available on other trim levels. Cannot be combined with any other offer unless allowed by that offer. Special lease rates extended to well-qualified buyers. Subject to credit & vehicle insurance approval. Inventory may be limited. Not all buyers may qualify. Payments may be higher in some states. Net cap cost & monthly payment excludes tax, license, title, registration, insurance, additional options, & retailer charges. Retailer participation may affect actual payment. At lease end, lessee is responsible for vehicle maintenance & repairs not covered by warranty, excessive wear & tear, 15 cents per mile over 10,000 miles/year and $300 disposition fee (excl. NY and WI). Lessee pays personal property & ad valorem taxes (where applicable) & insurance. Not available in HI. See participating retailer for details.

*Now through November 30, 2026 get 1.99% APR Financing for 36 months on select new 2026 Forester Sport Models. Monthly payment of $28.64 per $1,000 borrowed. Manufacturer Offer. No down payment required. Offer may vary by location. Other rates and payment terms available. Cannot be combined with any other coupon, direct/email offer or promotional offer unless allowed by that offer. Financing for well-qualified applicants only. Length of contract is limited. Subject to credit approval, vehicle insurance approval and vehicle availability. Vehicle may not be in stock. Estimated delivery to be determined upon ordering. See participating retailers for details. Must take delivery from retailer stock by November 30, 2026. **Now through November 30, 2026 lease a new 2026 Forester for $279/month on a 36-month lease (Base trim, code TFB-01). $4,278 due at lease signing plus tax & license. $0 security deposit. Manufacturer Offer. MSRP $31,445 (incl. $1,450 freight charge). Net cap cost of $27,246 (incl. $650 acq. fee). Total monthly payments are $10,044. Lease end purchase option is $18,867. Must take delivery from retailer stock by November 30, 2026. Other leases available on other trim levels. Cannot be combined with any other offer unless allowed by that offer. Special lease rates extended to well-qualified buyers. Subject to credit & vehicle insurance approval. Inventory may be limited. Not all buyers may qualify. Payments may be higher in some states. Net cap cost & monthly payment excludes tax, license, title, registration, insurance, additional options, & retailer charges. Retailer participation may affect actual payment. At lease end, lessee is responsible for vehicle maintenance & repairs not covered by warranty, excessive wear & tear, 15 cents per mile over 10,000 miles/year and $300 disposition fee (excl. NY and WI). Lessee pays personal property & ad valorem taxes (where applicable) & insurance. Not available in HI. See participating retailer for details.

*Now through November 30, 2026 get 0% APR Financing for 75 months on a new 2026 Ascent. Monthly payment of $13.33 per $1,000 borrowed. Manufacturer Offer. No down payment required. Offer may vary by location. Other rates and payment terms available. Cannot be combined with any other coupon, direct/email offer or promotional offer unless allowed by that offer. Financing for well-qualified applicants only. Length of contract is limited. Subject to credit approval, vehicle insurance approval and vehicle availability. Vehicle may not be in stock. Estimated delivery to be determined upon ordering. See participating retailers for details. Must take delivery from retailer stock by November 30, 2026. **Now through November 30, 2026 lease a new 2026 Ascent for $335/month on a 36-month lease (Premium 7 trim, code TCC-12). $4,434 due at lease signing plus tax & license. $0 security deposit.Manufacturer Offer. MSRP $42,245 (incl. $1,450 freight charge). Net cap cost of $35,946 (incl. $650 acq. fee). Total monthly payments are $12,060. Lease end purchase option is $24,502. Must take delivery from retailer stock by November 30, 2026. Other leases available on other trim levels. Cannot be combined with any other offer unless allowed by that offer. Special lease rates extended to well-qualified buyers. Subject to credit & vehicle insurance approval. Inventory may be limited. Not all buyers may qualify. Payments may be higher in some states. Net cap cost & monthly payment excludes tax, license, title, registration, insurance, additional options, & retailer charges. Retailer participation may affect actual payment. At lease end, lessee is responsible for vehicle maintenance & repairs not covered by warranty, excessive wear & tear, 15 cents per mile over 10,000 miles/year and $300 disposition fee (excl. NY and WI). Lessee pays personal property & ad valorem taxes (where applicable) & insurance. Not available in HI. See participating retailer for details.

*Now through November 30, 2026 get 0% APR Financing for 75 months on a new 2026 Outback. Monthly payment of $13.33 per $1,000 borrowed. Manufacturer Offer. No down payment required. Offer may vary by location. Other rates and payment terms available. Cannot be combined with any other coupon, direct/email offer or promotional offer unless allowed by that offer. Financing for well-qualified applicants only. Length of contract is limited. Subject to credit approval, vehicle insurance approval and vehicle availability. Vehicle may not be in stock. Estimated delivery to be determined upon ordering. See participating retailers for details. Must take delivery from retailer stock by November 30, 2026. **Now through November 30, 2026 lease a new 2026 Outback for $299/month on a 36-month lease (Premium trim, code TDD-11). $4,298 due at lease signing plus tax & license. $0 security deposit. Manufacturer Offer. MSRP $36,445 (incl. $1,450 freight charge). Net cap cost of $31,796 (incl. $650 acq. fee). Total monthly payments are $10,764. Lease end purchase option is $22,231. Must take delivery from retailer stock by November 30, 2026. Other leases available on other trim levels. Cannot be combined with any other offer unless allowed by that offer. Special lease rates extended to well-qualified buyers. Subject to credit & vehicle insurance approval. Inventory may be limited. Not all buyers may qualify. Payments may be higher in some states. Net cap cost & monthly payment excludes tax, license, title, registration, insurance, additional options, & retailer charges. Retailer participation may affect actual payment. At lease end, lessee is responsible for vehicle maintenance & repairs not covered by warranty, excessive wear & tear, 15 cents per mile over 10,000 miles/year and $300 disposition fee (excl. NY and WI). Lessee pays personal property & ad valorem taxes (where applicable) & insurance. Not available in HI. See participating retailer for details.

*Now through November 30, 2026 get 0% APR Financing for 75 months on select new 2026 Subaru Models. Monthly payment of $13.33 per $1,000 borrowed. Manufacturer Offer. No down payment required. Offer may vary by location. Other rates and payment terms available. Cannot be combined with any other coupon, direct/email offer or promotional offer unless allowed by that offer. Financing for well-qualified applicants only. Length of contract is limited. Subject to credit approval, vehicle insurance approval and vehicle availability. Vehicle may not be in stock. Estimated delivery to be determined upon ordering. See participating retailers for details. Must take delivery from retailer stock by November 30, 2026. **Now through November 30, 2026 lease a new 2026 Crosstrek for $235/month on a 36-month lease (Base trim, code TRA-03). $3,234 due at lease signing plus tax & license. $0 security deposit. Manufacturer Offer. MSRP $28,445 (incl. $1,450 freight charge). Net cap cost of $25,346 (incl. $650 acq. fee). Total monthly payments are $8,460. Lease end purchase option is $18,205. Must take delivery from retailer stock by November 30, 2026. Other leases available on other trim levels. Cannot be combined with any other offer unless allowed by that offer. Special lease rates extended to well-qualified buyers. Subject to credit & vehicle insurance approval. Inventory may be limited. Not all buyers may qualify. Payments may be higher in some states. Net cap cost & monthly payment excludes tax, license, title, registration, insurance, additional options, & retailer charges. Retailer participation may affect actual payment. At lease end, lessee is responsible for vehicle maintenance & repairs not covered by warranty, excessive wear & tear, 15 cents per mile over 10,000 miles/year and $300 disposition fee (excl. NY and WI). Lessee pays personal property & ad valorem taxes (where applicable) & insurance. Not available in HI. See participating retailer for details. ***Well-qualified customers who purchase a new, used, or certified pre-owned vehicle, 4 model years or newer with less than 60K miles between November 2, 2026 and December 31, 2026, and finance through a participating dealer and lender have the option to defer monthly payments for 90 days from contract date. Excludes Hendrick Performance vehicles. Finance charges begin to accrue on the date you sign the Retail Installment Sale Contract at the Annual Percentage Rate (APR) disclosed in the contract. May not be combined with other preferred lender financing offers. 75 months maximum term limit. Equal monthly payments only. Not available to Pennsylvania residents; see your dealer for details. Must take retail delivery by December 31, 2026. See dealer for complete down payment and interest rate options and details. Financing available to qualified buyers. Some exclusions apply. See dealer for complete details.

*Special finance rates available on select Subaru Certified Pre-Owned used vehicles 2026-2021 model years. Manufacturer offer. No down payment required. Cannot be combined with any other coupon, direct/email offer or promotional offer unless allowed by that offer. Financing for well-qualified applicants only. Length of contract is limited. Subject to credit approval, vehicle insurance approval & vehicle availability. See participating retailers for details. Must take delivery from retailer stock by November 30, 2026.***Well-qualified customers who purchase a new, used, or certified pre-owned vehicle, 4 model years or newer with less than 60K miles between November 2, 2026 and December 31, 2026, and finance through a participating dealer and lender have the option to defer monthly payments for 90 days from contract date. Excludes Hendrick Performance vehicles. Finance charges begin to accrue on the date you sign the Retail Installment Sale Contract at the Annual Percentage Rate (APR) disclosed in the contract. May not be combined with other preferred lender financing offers. 75 months maximum term limit. Equal monthly payments only. Not available to Pennsylvania residents; see your dealer for details. Must take retail delivery by December 31, 2026. See dealer for complete down payment and interest rate options and details. Financing available to qualified buyers. Some exclusions apply. See dealer for complete details.

Connect With Us

Contact Us

Main 659-250-0477
2929 John Hawkins Parkway
Hoover, AL 35244

Get Directions

2929 John Hawkins Parkway, Hoover, AL, 35244
Hendrick Subaru Hoover 33.368921716405026, -86.82027599039188.
window.addEventListener("load", function () { // Add "openXtime" class to buttons with Schedule Service text or href ending var links = Array.from(document.querySelectorAll('a')).filter(function(link) { return link.href.endsWith("/schedule-service/") || link.textContent.toLowerCase().includes("schedule service"); }); links.forEach(function(link) { link.classList.add("openXtime"); link.addEventListener("click", function(event) { event.preventDefault(); if (window.xtime && typeof window.xtime.showC8Modal === "function") { window.xtime.showC8Modal(true); } }); }); // Check for URL parameter or path to auto-open service modal function checkAndOpenServiceModal() { var shouldOpen = false; var urlParams = new URLSearchParams(window.location.search); var intsrc = urlParams.get('intsrc'); var currentPath = window.location.pathname; // Check if URL parameter is present if (intsrc === 'tcom:maps:dealervisit:service') { shouldOpen = true; } // OR check if we're on the schedule-service page else if (currentPath.includes('/schedule-service/') || currentPath.includes('/service/schedule-service/')) { shouldOpen = true; } if (shouldOpen) { // Function to attempt opening the modal function attemptOpenModal() { if (window.xtime && typeof window.xtime.showC8Modal === "function") { window.xtime.showC8Modal(true); return true; // Successfully opened } return false; // xtime not ready yet } // Try immediately if (attemptOpenModal()) { return; // Success! } // If not ready, set up retry mechanism var attempts = 0; var maxAttempts = 50; // Try for up to 5 seconds (50 * 100ms) var retryInterval = setInterval(function() { attempts++; if (attemptOpenModal() || attempts >= maxAttempts) { clearInterval(retryInterval); } }, 100); } } // Check URL parameter/path on page load checkAndOpenServiceModal(); });