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

Pre-Owned 2024 CADILLAC XT4 AWD Sport

  • VIN: 1GYFZFR40RF181646
  • Stock: X81646

Basic Info

  • Exterior:
    Crystal White Tricoat
  • Drivetrain:
    AWD
  • Interior:
    Jet Black with Santorini Blue accents
  • Transmission:
    9-Speed Automatic
  • Engine:
    Turbocharged Gas I4 2.0L/122
  • Fuel Efficiency:
    22 CITY / 29 HWY
  • Mileage:
    16,497

Key Features

  • AWD
  • Android Auto
  • Apple CarPlay
  • Automatic Climate Control
  • Backup Camera
  • Blind Spot Monitor
  • Bluetooth
  • Cold Weather Package
  • Cooled Seats
  • Forward Collision Warning
  • Hands-Free Liftgate
  • Keyless Entry
  • Lane Departure Warning
  • Leather Seats
  • Navigation System
  • Parking Sensors / Assist
  • Power Liftgate
  • Power Seats
  • Rain Sensing Wipers
  • Remote Start
  • Satellite Radio Ready
  • Side-Impact Air Bags
  • Sunroof / Moonroof
  • Technology Package
  • WiFi Hotspot
  • Wireless Phone Charging

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

  • Active Aero Shutters, front (Deleted when (V92) Trailering Package is ordered.)
  • Door handles, body-color
  • Glass, acoustic, laminated front-side and windshield
  • Glass, tinted, rear side and back window
  • Hands-Free Liftgate, open and close with motion sense and programmable memory height
  • Headlamp control, automatic on/off with tunnel detection
  • Headlamps, LED
  • IntelliBeam, automatic high beam on/off
  • Lamp, LED center high-mounted stop/brake
  • Longitudinal roof rails, gloss Black finish
  • Lower bodyside appearance with accent color, trim specific
  • Mirrors, outside heated power-adjustable, power-folding and driver-side auto-dimming, body-color with integrated turn signal indicators
  • Moldings, bodyside gloss Black finish, window surround
  • Taillamps, LED (Neutral density appearance.)
  • Tire Inflator Kit (Deleted when (4G7) 17 spare wheel is ordered.)
  • Turn signal, front lamp, LED
  • Wiper, rear intermittent
  • Wipers, front intermittent, Rainsense

Interior

  • Active Noise Cancellation
  • Adaptive Remote Start
  • Air conditioning, dual-zone automatic climate control
  • Air filter, cabin
  • Air vents, rear
  • Assist handles, driver, front passenger and rear outboard
  • Cadillac Connected Access capable (Subject to terms. See onstar.com or dealer for details.)
  • Cargo net anchors
  • Cargo shade, rear
  • Cupholders 2 front in center console and 2 rear in second row center armrest. Additionally, 1 bottle holder in door storage pocket for driver and front passenger
  • Defogger, rear-window electric
  • Driver memory, recalls 2 presets for 8-way power driver seat and outside mirror
  • Gearshift handle, with Piano Black accents
  • Glovebox, lockable
  • Google built-in infotainment experience with 33 diagonal advanced color LED display. Provides navigation capability, connected apps, personalized profiles for each driver's settings, Natural Voice Recognition and Phone Integration for Wireless Apple CarPlay/Wireless Android Auto for compatible phones
  • Head restraints, 2-way adjustable (up/down), front
  • Head restraints, rear, adjustable, folding
  • Keyless Access, passive entry
  • Lighting, cargo area
  • Lighting, illuminated entry
  • Map pockets, driver and front passenger seatbacks
  • Mini-umbrella holders driver and front passenger doors
  • Oil life monitor
  • Pedals, sport alloy
  • Power outlet, rear auxiliary, 12-volt, cargo area
  • Power outlets, 2 auxiliary, 12-volt, console
  • Power outlets, 2 auxiliary, USB, rear seat
  • Rotary infotainment controller, console mounted, with jog capability
  • Seat adjuster, driver 8-way power
  • Seat adjuster, passenger 6-way power (Upgradeable to (A7K) 8-way power passenger seat adjuster when (WPC) Comfort and Convenience Package is ordered.)
  • Seat, driver power lumbar control, 4-way
  • Seat, driver power seatback bolster
  • Seat, front passenger power lumbar control, 4-way
  • Seat, front passenger power seatback bolster
  • Seats, front bucket
  • Seats, rear, 60/40 split-folding seatback with fold down armrest
  • Sensor, cabin humidity
  • Sill plate cover, Sport finish, front door opening
  • Sill plate, rear cargo, metallic finish
  • Steering column, manual rake and telescoping (Upgradeable to (N38) power rake and telescoping steering column when (CWM) Technology Package is ordered.)
  • Steering wheel controls
  • Steering wheel mounted paddle shift controls
  • Sunglass holder, overhead console
  • Theft-deterrent system, content theft alarm
  • Universal Home Remote
  • USB ports, full function one type A and one type C, front console
  • Visors, driver and front passenger illuminated vanity mirrors, covered
  • Wi-Fi Hotspot capable (Terms and limitations apply. See onstar.com or dealer for details.)
  • Windows, power, front with Express-Up/Down and rear with Express Down
  • Wireless Apple CarPlay/Wireless Android Auto

Mechanical

  • Automatic Stop/Start, with disable
  • Axle, 3.47 ratio
  • Battery rundown protection
  • Brake rotors, Duralife, FNC (Ferritic Nitrocarburizing), front and rear
  • Brake, electronic parking
  • Brakes, 4-wheel antilock, 4-wheel disc
  • Capless fuel fill
  • Driver Mode Selector
  • Drivetrain, all-wheel drive
  • Engine, 2.0L Turbo, 4-cylinder, SIDI (235 hp [175 kW] @ 5000 rpm, 258 lb-ft of torque [350 N-m] @ 1500-4000 rpm)
  • Exhaust, dual-outlet with bright tips integrated in fascia
  • Hill hold and start assist
  • Intelligent brake fade resistance includes auto drying
  • Steering, power, variable assist, electric
  • Suspension, front, MacPherson strut
  • Suspension, rear multi-link with coil springs
  • Transmission, 9-speed automatic electronically-controlled

Safety

  • Airbag, Passenger Sensing System sensor indicator inflatable restraint, front passenger/child presence detector (Always use seat belts and the correct child restraints. Children are safer when properly secured in a rear seat in the appropriate child restraint. See the Owner's Manual for more information.)
  • Airbags, dual-stage frontal knee and seat-mounted side-impact for driver and front passenger; head-curtain for all outboard seating positions with rollover protection (Always use seat belts and the correct child restraints. Children are safer when properly secured in a rear seat in the appropriate child restraint. See the Owner's Manual for more information.)
  • Blind Zone Steering Assist
  • Daytime Running Lamps, LED
  • Door locks, rear child security
  • Forward Collision Alert
  • Front Pedestrian and Bicyclist Braking
  • Intelligent Brake Assist
  • OnStar and Cadillac connected services capable (Terms and limitations apply. See onstar.com or dealer for details.)
  • Rear Cross Traffic Braking
  • Rear Park Assist
  • Safety Alert Seat
  • Seat belts, 3-point, all positions includes front seat belt pretensioners
  • StabiliTrak, stability control system with Traction Control
  • Teen Driver a configurable feature that lets you activate customizable vehicle settings associated with a key fob, to help encourage safe driving behavior. It can limit certain available vehicle features, and it prevents certain safety systems from being turned off. An in-vehicle report card gives you information on driving habits and helps you to continue to coach your new driver
  • Tire Pressure Monitoring System includes Tire Fill Alert

Details

  • SEATS HEATED DRIVER AND FRONT PASSENGER
  • SEAT ADJUSTER PASSENGER 8-WAY POWER
  • SPORT PREFERRED EQUIPMENT GROUP includes standard equipment
  • SEAT DRIVER POWER LUMBAR MASSAGE
  • TECHNOLOGY PACKAGE includes (UV6) Head-Up Display (DRZ) Rear Camera Mirror (CWA) Rear Camera Mirror washer (N38) power rake and telescoping steering column and (K4C) Wireless Phone Charging
  • WHEELS 20 (50.8 CM) DYNAMIC MULTI-SPOKE ALLOY with Diamond Cut/Dark Android finish
  • LPO CARGO LINER
  • REAR CAMERA MIRROR WASHER
  • HEAD-UP DISPLAY FULL-COLOR RECONFIGURABLE
  • AUDIO SYSTEM AKG PREMIUM 14-SPEAKER SYSTEM
  • WIRELESS PHONE CHARGING
  • LPO ALL-WEATHER FLOOR MATS FRONT AND REAR
  • TIRES P245/45R20 ALL-SEASON
  • JET BLACK WITH SANTORINI BLUE ACCENTS LEATHER SEATING SURFACES WITH MINI-PERFORATED INSERTS (With Twenty Two high-gloss genuine Carbon Fiber trim.)
  • SEAT FRONT PASSENGER POWER LUMBAR MASSAGE
  • ENGINE 2.0L TURBO 4-CYLINDER SIDI (235 hp [175 kW] @ 5000 rpm 258 lb-ft of torque [350 N-m] @ 1500-4000 rpm) (STD)
  • SEATS FRONT BUCKET (STD)
  • SUNROOF POWER DUAL PANEL GLASS TILT/SLIDING
  • COMFORT AND CONVENIENCE PACKAGE includes (A7K) 8-way power passenger seat adjuster (AF6) driver power lumbar massage (AKE) front passenger power lumbar massage and (KU9) driver and front passenger ventilated seats (Includes leather seating surfaces.
  • TRANSMISSION 9-SPEED AUTOMATIC electronically-controlled (STD)
  • SEATS VENTILATED DRIVER AND FRONT PASSENGER
  • STEERING WHEEL HEATED
  • LPO INTERIOR PROTECTION PACKAGE includes (VAV) All-weather floor mats LPO and (CAV) Cargo liner LPO
  • STEERING COLUMN POWER RAKE AND TELESCOPING
  • COLD WEATHER PACKAGE includes (KA1) heated driver and front passenger seats (KA6) heated rear outboard seating position seats and (KI3) heated steering wheel
  • AXLE 3.47 RATIO
  • SEATS HEATED REAR OUTBOARD SEATING POSITIONS
  • CRYSTAL WHITE TRICOAT
  • REAR CAMERA MIRROR
  • Turbocharged
  • All Wheel Drive
  • Power Steering
  • ABS
  • 4-Wheel Disc Brakes
  • Aluminum Wheels
  • Tires - Front All-Season
  • Tires - Rear All-Season
  • Automatic Headlights
  • Automatic Highbeams
  • Heated Mirrors
  • Power Mirror(s)
  • Auto-Dimming Rearview Mirror
  • Integrated Turn Signal Mirrors
  • Power Folding Mirrors
  • Intermittent Wipers
  • Variable Speed Intermittent Wipers
  • Rain Sensing Wipers
  • Remote Trunk Release
  • Power Liftgate
  • Hands-Free Liftgate
  • Navigation System
  • MP3 Capability
  • Bluetooth Connection
  • Auxiliary Audio Input
  • Smart Device Integration
  • Bluetooth Connection
  • Smart Device Integration
  • Satellite Radio
  • Requires Subscription
  • WiFi Hotspot
  • Bucket Seats
  • Power Driver Seat
  • Power Passenger Seat
  • Driver Adjustable Lumbar
  • Passenger Adjustable Lumbar
  • Mirror Memory
  • Seat Memory
  • Rear Bench Seat
  • Floor Mats
  • Adjustable Steering Wheel
  • MP3 Capability
  • Bluetooth Connection
  • Auxiliary Audio Input
  • Power Windows
  • Keyless Entry
  • Power Door Locks
  • Immobilizer
  • Keyless Start
  • Remote Engine Start
  • Universal Garage Door Opener
  • Cruise Control
  • Security System
  • MP3 Capability
  • Auxiliary Audio Input
  • Climate Control
  • Multi-Zone A/C
  • A/C
  • Rear Defrost
  • Auto-Dimming Rearview Mirror
  • Driver Vanity Mirror
  • Passenger Vanity Mirror
  • Driver Illuminated Vanity Mirror
  • Passenger Illuminated Visor Mirror
  • Cargo Shade
  • Brake Assist
  • Front Collision Mitigation
  • Front Collision Warning
  • Cross-Traffic Alert
  • Traction Control
  • Stability Control
  • Daytime Running Lights
  • Passenger Air Bag Sensor
  • Driver Air Bag
  • Passenger Air Bag
  • Front Side Air Bag
  • Front Head Air Bag
  • Rear Head Air Bag
  • Telematics
  • Requires Subscription
  • Rear Parking Aid
  • Back-Up Camera
  • Aerial View Display System
  • Lane Departure Warning
  • Lane Keeping Assist
  • Blind Spot Monitor
  • Evasion Assist
  • Front Collision Warning
  • Child Safety Locks
  • Driver Restriction Features
  • Tire Pressure Monitor
  • Telematics
  • Requires Subscription
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(); });