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

Pre-Owned 2024 Buick Encore GX Sport Touring

  • VIN: KL4AMDSL7RB015128
  • Stock: P15128

Basic Info

  • Exterior:
    Summit White
  • Drivetrain:
    FWD
  • Interior:
    Whisper Beige seats with Ebony interior accents
  • Transmission:
    1-Speed Continuously Variable Ratio
  • Engine:
    Turbocharged 1.3/
  • Fuel Efficiency:
    29 CITY / 31 HWY
  • Mileage:
    11,286

Key Features

  • Adaptive Cruise Control
  • Android Auto
  • Apple CarPlay
  • Backup Camera
  • Bluetooth
  • Interior Accents
  • Keyless Entry
  • Lane Departure Warning
  • Lane keep assist
  • Parking Sensors / Assist
  • Power Seats
  • Side-Impact Air Bags
  • Sport Touring
  • Sunroof / Moonroof
  • Technology Package
  • 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

  • Bumper, front and rear, Silver-painted insert
  • Door handles, body-color with chrome strips
  • Door pillar trim, blackout
  • Glass, acoustic, laminated windshield
  • Glass, deep-tinted
  • Grille, Sport Touring, high gloss Black
  • Headlamp control, automatic on and off
  • Headlamps, LED
  • IntelliBeam, auto high beam
  • Lamp, LED center high-mounted stop/brake lamp
  • Liftgate, manual
  • Luggage rack, side rails, roof-mounted
  • Mechanical jack with tools
  • Mirrors, outside heated power-adjustable, body-color, manual-folding
  • Moldings, Black bodyside
  • Moldings, rocker, Gloss Black
  • Moldings, upper side window, chrome roofline and gloss Black beltline
  • QuietTuning Buick exclusive process that consists of acoustically enhanced windshield and side glass, along with numerous noise canceling acoustic treatments to reduce, block and absorb noise and vibration to create a quiet interior cabin
  • Shutters, front upper grille, active
  • Tail lamps, LED
  • Tire, compact spare 16 (40.3 cm), located under cargo floor
  • Tires, 225/55R18 all-season, blackwall
  • Wheel, spare, 16 (40.6 cm) steel
  • Wheels, 18 (45.7 cm) Gloss Black aluminum
  • Windshield, solar absorbing
  • Wiper, rear intermittent
  • Wipers, front intermittent with pulse washers

Interior

  • Air conditioning, single-zone electronic
  • Air filter, pollutant
  • Antenna, roof-mounted
  • Assist handle, front passenger
  • Assist handles, rear outboard
  • Audio system feature, 6-speaker system, enhanced performance
  • Audio system, 11 diagonal HD color touchscreen, AM/FM stereo. Additional features for compatible phones include: Bluetooth audio streaming for 2 active devices, voice command pass-through to phone, wireless Apple CarPlay and wireless Android Auto capable
  • AUX heater, electric, heating/defroster
  • Buick Connected Access capable (Subject to terms. See onstar.com or dealer for details.)
  • Cargo security cover, rear, stowable under rear cargo load floor
  • Cloth with Leatherette seat trim
  • Compass display
  • Console, floor, with armrest
  • Cruise control, electronic with set and resume speed
  • Defogger, rear-window, electric
  • Display, ECO drive assistance
  • Door locks, power with lockout protection
  • Driver Information Center 8 diagonal fully digital color display, reconfigurable
  • Floor mats, color-keyed and carpeted front (Deleted when LPO floor mats are ordered.)
  • Floor mats, color-keyed and carpeted rear (Deleted when LPO floor mats are ordered.)
  • Glovebox, single compartment
  • Headrests, 2-way adjustable, up/down, driver and front passenger
  • HVAC duct, rear, underneath front seat
  • Key system, 2 keys
  • Keyless Open includes extended range Remote Keyless Entry
  • Knee bolster, driver and front passenger
  • Lighting, interior, dimming instrument panel cluster
  • Lighting, interior, overhead courtesy dual reading lamp
  • Lighting, interior, roof, rear courtesy
  • Lighting, rear cargo compartment lamp
  • Map pocket, driver seatback
  • Map pocket, front passenger seatback (Deleted when (Y55) Comfort Package is ordered.)
  • Mirror, inside rearview manual day/night with tilt
  • Noise control system, active noise cancellation
  • Remote panic alarm
  • Seat adjuster, driver 6-way manual
  • Seat adjuster, front passenger 4-way manual
  • Seat, rear 40/60 split-bench, folding (60 percent on passenger side)
  • Seats, front bucket
  • Shift knob, satin silver and chrome
  • SiriusXM enjoy a Platinum Plan trial subscription (IMPORTANT: The SiriusXM trial package is not provided on vehicles that are ordered for Fleet Daily Rental (FDR) use. Trial subscription is subject to the SiriusXM Customer Agreement and privacy policy, visit www.siriusxm.com which includes full terms and how to cancel. All fees, content, features, and availability are subject to change.)
  • Speedometer, miles/kilometers, miles odometer
  • Steering column, tilt and telescopic, adjustable
  • Steering wheel controls mounted audio, cruise control, Driver Information Center, Forward Collision Alert gap adjust and phone interface controls
  • Steering wheel, wrapped (Flat-bottom.)
  • Theft-deterrent system, electrical, unauthorized entry
  • USB charging ports, 2 (1 USB Type-A, 1 USB Type-C), charging only located on the rear of the center console
  • USB ports, 2 (1 USB Type-A, 1 USB Type-C) located in the front of the center console
  • Vehicle health management provides advanced warning of vehicle issues
  • Visors, driver and front passenger illuminated vanity mirrors, covered, sliding
  • Wi-Fi Hotspot capable (Terms and limitations apply. See onstar.com or dealer for details.)
  • Window, power with driver Express-Up/Down
  • Window, power with front passenger Express-Down
  • Windows, power, rear with Express-Down
  • Wireless Apple CarPlay/Wireless Android Auto

Mechanical

  • Axle, 5.45 final drive ratio
  • Brake, electronic parking
  • Brakes, 4-wheel antilock, 4-wheel disc
  • Brakes, front and rear, electric
  • Capless fuel fill
  • Driver shift control
  • Engine air filtration monitor
  • Engine control, stop/start system
  • Engine control, stop/start system disable switch, non-latching
  • Engine, ECOTEC 1.3L Turbo (GM-estimated 155 hp [115 kW] @ 5,600 rpm / 174 lb-ft torque [236 Nm] @ 1,600 rpm FWD/AWD models)
  • Front-Wheel Drive
  • Fuel system, electronic, returnless
  • GVWR, 4233 lbs. (1920 kg)
  • Keyless start, push button
  • Steering, power, variable effort, electric
  • Suspension, Ride and Handling
  • Trailering provisions includes 4-wire electrical harness and 4-pin sealed connector
  • Transmission, Continuously Variable (CVT)

Safety

  • 3 Years of OnStar Remote Access. The OnStar Remote Access Plan gives you simplified remote control of your properly equipped vehicle and unlocks a variety of great features in your myBuick mobile app. See dealer for details (OnStar Remote Access Plan does not include emergency or security services. Fleet customers will get Fleet Remote Access through OnStar Vehicle Insights. See onstar.com for details and limitations. Available on select Apple and Android devices. Service availability, features and functionality vary by vehicle, device, and the plan you are enrolled in. Terms apply. Device data connection required.)
  • Airbag, Passenger Sensing System, sensor indicator inflatable restraint, front passenger/child presence detector (Always use seat belts and 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, frontal and knee for driver and front passenger, seat-mounted side-impact and head-curtain for front and rear seating positions (Always use seat belts and 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.)
  • Automatic Emergency Braking
  • Brake lining wear indicator
  • Buckle to Drive prevents vehicle from being shifted out of Park until driver seat belt is fastened, programmable
  • Daytime Running Lamps, Signature LED
  • Door locks, rear child security
  • Following Distance Indicator
  • Forward Collision Alert
  • Front Pedestrian Braking
  • HD Rear Vision Camera
  • Horn, dual note tone
  • Lane Change Alert with Side Blind Zone Alert
  • Lane Keep Assist with Lane Departure Warning
  • LATCH system (Lower Anchors and Tethers for CHildren) for child restraint seats, second row, 2 lower anchors for outboard seating positions only, 3 top tether anchors for all 3 seating positions
  • OnStar and Buick connected services capable (Terms and limitations apply. See onstar.com or dealer for details.)
  • Rear Cross Traffic Alert
  • Rear Seat Reminder
  • Seat belt, 3-point, driver with load limiter and pretensioners, height adjustable
  • Seat belt, 3-point, front passenger with load limiter and pretensioners, height adjustable
  • Seat belts, 3-point, rear, all seating positions with pretensioners
  • StabiliTrak, stability control system
  • 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 Fill Alert (Does not monitor spare tire.)
  • Tire Pressure Display by tire (Does not monitor spare tire.)
  • Tire Pressure Monitoring System, manual learn (Does not monitor spare tire.)

Details

  • ADAPTIVE CRUISE CONTROL
  • WHISPER BEIGE SEATS WITH EBONY INTERIOR ACCENTS LEATHERETTE SEAT TRIM
  • WHEELS 19 (48.3 CM) GLOSS BLACK ALUMINUM
  • WIRELESS CHARGING
  • EXPERIENCE BUICK PACKAGE includes (C3U) power moonroof and (RVB) 19 Gloss Black aluminum wheels
  • SEATS HEATED DRIVER AND FRONT PASSENGER
  • REMOTE VEHICLE STARTER SYSTEM includes Remote Keyless Entry
  • COMFORT PACKAGE includes (A2X) driver 8-way power seat adjuster (AL9) 2-way power driver lumbar control (KA1) heated driver and front passenger seats (UVD) heated steering wheel (D7P) front passenger flat-folding seatback (DA5) rear center armrest and (BTV) remote vehicle starter system
  • NOT EQUIPPED WITH REAR PARK ASSIST see dealer for details. (Beginning with start of production certain vehicles will be forced to include (060) Not Equipped with Rear Park Assist which removes Rear Park Assist. Does not include later dealer retrofit. See the window label for the features on a specific vehicle.)
  • ARMREST REAR CENTER
  • AUDIO SYSTEM 11 DIAGONAL HD COLOR TOUCHSCREEN AM/FM STEREO. Additional features for compatible phones include: Bluetooth audio streaming for 2 active devices voice command pass-through to phone wireless Apple CarPlay and wireless Android Auto capable (STD)
  • ADVANCED TECHNOLOGY PACKAGE includes (KSG) Adaptive Cruise Control (UD7) Rear Park Assist (UV2) HD Surround Vision and (K4C) Wireless Charging (Beginning with start of production certain vehicles will be forced to include (060) Not Equipped with Rear Park Assist which removes Rear Park Assist. Does not include later dealer retrofit. See dealer for details or the window label for the features on a specific vehicle.)
  • SEAT ADJUSTER 2-WAY POWER DRIVER LUMBAR CONTROL
  • SEAT ADJUSTER DRIVER 8-WAY POWER
  • TRANSMISSION CONTINUOUSLY VARIABLE (CVT) (STD)
  • ENGINE ECOTEC 1.3L TURBO (GM-estimated 155 hp [115 kW] @ 5 600 rpm / 174 lb-ft torque [236 Nm] @ 1 600 rpm FWD/AWD models) (STD)
  • REAR PARK ASSIST Beginning with start of production certain vehicles will be forced to include (060) Not Equipped with Rear Park Assist which removes Rear Park Assist. Does not include later dealer retrofit. See dealer for details or the window label for the features on a specific vehicle.)
  • SEATBACK FRONT PASSENGER FLAT-FOLDING
  • MOONROOF POWER PANORAMIC TILT-SLIDING
  • SUMMIT WHITE
  • HD SURROUND VISION
  • SEATS FRONT BUCKET (STD)
  • AXLE 5.45 FINAL DRIVE RATIO
  • SPORT TOURING PREFERRED EQUIPMENT GROUP includes standard equipment
  • TIRES 245/45R19 ALL-SEASON BLACKWALL
  • LIFTGATE POWER
  • STEERING WHEEL HEATED
  • 4-wheel antilock disc brakes
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(); });