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

Pre-Owned 2026 GMC Terrain AWD Elevation

  • VIN: 3GKALUEG2TL420508
  • Stock: P36067

Basic Info

  • Exterior:
    Sterling Metallic
  • Drivetrain:
    AWD
  • Interior:
    After Dark
  • Transmission:
    8-Speed Automatic
  • Engine:
    Turbocharged Gas I4 1.5L/90
  • Fuel Efficiency:
    24 CITY / 28 HWY
  • Mileage:
    14,198

Key Features

  • AWD
  • Adaptive Cruise Control
  • Android Auto
  • Apple CarPlay
  • Backup Camera
  • Blind Spot Monitor
  • Bluetooth
  • Forward Collision Warning
  • Keyless Entry
  • Lane Departure Warning
  • Lane keep assist
  • Navigation System
  • Parking Sensors / Assist
  • Remote Start
  • Satellite Radio Ready
  • Side-Impact Air Bags
  • WiFi Hotspot

History Report

Description

FUEL EFFICIENT EPA estimate 28 MPG Hwy/24 MPG City! AWD Elevation trim, Sterling Metallic exterior and After Dark interior. CARFAX 1-Owner, Excellent Condition. Serviced here, Non-Smoker vehicle, Originally bought here, Rigorous 168 Point Inspection, 34 Point Inspection.

KEY FEATURES INCLUDE
Navigation, All Wheel Drive, Heated Driver Seat, Back-Up Camera, Satellite Radio. MP3 Player, Keyless Entry, Privacy Glass, Alarm, Heated Mirrors.

OPTION PACKAGES
ENGINE, 1.5L TURBO DOHC 4-CYLINDER, SIDI, VVT (175 hp [131.3 kW] @ 5800 rpm, 203 lb-ft of torque [275.0 Nm] @ 2000 - 4000 rpm). (STD), TRANSMISSION, 8-SPEED AUTOMATIC, ELECTRONICALLY-CONTROLLED WITH OVERDRIVE includes Driver Shift Control (STD). GMC AWD Elevation with Sterling Metallic exterior and After Dark interior features a 4 Cylinder Engine with 175 HP at 5800 RPM*. Serviced here, Non-Smoker vehicle, Originally bought here, Rigorous 168 Point Inspection, 34 Point Inspection

EXPERTS ARE SAYING
Great Gas Mileage: EPA estimate 28 MPG Hwy.

A GREAT VALUE
Reduced from $29,997. This Terrain is priced $3,400 below Kelley Blue Book.

PURCHASE WITH CONFIDENCE
AutoCheck One Owner 10-year/100,000 mile Limited Powertrain Warranty, 12-month/12,000 mile High-Tech Coverage, 24-hour Roadside Assistance, Trip Interruption Services, Vehicle Rental Coverage, 260-Point Vehicle Inspection, CARFAX Vehicle History Report

WHO WE ARE
Rick Hendrick Chevrolet Norfolk is committed in providing our customers with impeccable customer service and the best warranty in the business.

Pricing analysis performed on 11/16/2026. Horsepower calculations based on trim engine configuration. Fuel economy calculations based on original manufacturer data for trim engine configuration. Please confirm the accuracy of the included equipment by calling us prior to purchase.
This Dealership checks the vehicle recall status prior to making any pre-owned vehicle available for sale. Manufacturers and/or NHTSA may announce additional recalls at any time. To inquire about the recall status of this vehicle, visit: https://vinrcl.safercar.gov/vin/

Vehicle Details

Exterior

  • Door handles, body-color
  • Door handles, body-color
  • Glass, deep-tinted, rear
  • Headlamps, LED
  • IntelliBeam, automatic high beam on/off
  • Liftgate, rear manual
  • Mirror caps, high gloss Black
  • Mirrors, outside heated power-adjustable, manual-folding
  • Shutters, front upper and lower grille, active
  • Tail lamps, LED
  • Tire, compact spare, T125/70R17, blackwall
  • Tires, 235/65R17, all-season blackwall
  • Wheel, spare, 17 (43.2 cm) steel
  • Wheels, 17 (43.2 cm) Grazen Metallic, machined aluminum
  • Window, rear side, solar absorbing, privacy tinting

Interior

  • 15 diagonal Premium GMC Infotainment System high contrast display with Google Built-In compatibility including navigation capability, color touch-screen, multi-touch display, connected apps, personalized for each driver's settings, Natural Voice Recognition and Phone Integration for Wireless Apple CarPlay/Wireless Android Auto for compatible phones
  • 5G vehicle connectivity (Terms and limitations apply. See onstar.com or dealer for details.)
  • Adaptive Cruise Control
  • Air conditioning, single-zone
  • Air filter, pollutant
  • Air vents, 2nd row
  • Armrest, rear center, fold-down with 2 cupholders
  • Audio system feature, 6-speaker system
  • Carpeted load floor
  • Driver Information Center 11 diagonal multi-color digital high-contrast display
  • Google Built-In provides navigation capability, connected apps, personalized profiles for each driver's settings and Natural Voice Recognition
  • Headrest, rear center
  • Infotainment, High
  • Keyless Open and Start
  • Map pocket, driver seatback
  • Map pocket, front passenger seatback
  • Mirror, inside rearview, manual tilt, day/night
  • Power outlet, cargo area auxiliary, 12-volt
  • Remote panic alarm
  • Remote start
  • Seat adjuster, driver 6-way manual
  • Seat adjuster, front passenger 4-way manual
  • Seat trim, Premium Cloth
  • Seats, front bucket
  • Seats, heated driver and front passenger
  • SiriusXM with 360L Trial Subscription. SiriusXM with 360L transforms your customers' ride with our most extensive and personalized radio experience on the road. (IMPORTANT: The SiriusXM trial subscription 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 siriusxm.com which includes full terms and how to cancel. All fees, content, features, and availability are subject to change. Some features require GM connected vehicle services.)
  • Speedometer, miles/kilometers
  • Steering wheel, heated
  • Steering wheel, sport-style
  • USB ports, 2 type-C, located on back of center console, charge-only
  • USB ports, 2, one type A and one type-C, data/charge, located in the front area of the center 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, express up/down driver and express down all passengers
  • Wireless Apple CarPlay/Wireless Android Auto

Mechanical

  • All-wheel drive
  • Alternator, 130 amps
  • Automatic Stop/Start
  • Axle, 3.47 final drive ratio (AWD models only.)
  • Battery, 70AH, 12V, 760 cold-cranking amps
  • Brake lining wear indicator
  • Brake rotor, FNC
  • Brakes, 16 front sliding caliper disc, 16 rear sliding caliper disc
  • Capless Fuel Fill
  • Drive Mode Selector
  • Exhaust, single-outlet stainless-steel, turned-down, hidden
  • Fuel, gasoline, E15
  • GVWR, 4850 lbs. (2200 kg)
  • Mechanical Jack with tools
  • Transmission, 8-speed automatic, electronically-controlled with overdrive includes Driver Shift Control

Safety

  • Airbags, Dual-stage frontal airbags for driver and front passenger; Seat-mounted side-impact airbags for driver and front outboard passenger; Head-curtain airbags for front and rear outboard seating positions; Includes front outboard Passenger Sensing System for frontal passenger airbag (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.)
  • Blind Zone Steering Assist
  • Buckle to Drive prevents vehicle from being shifted out of Park until driver seat belt is fastened; times out after 20 seconds and encourages seat belt use
  • Display, automatic occupant sensing
  • Enhanced Automatic Emergency Braking
  • Following Distance Indicator
  • Forward Collision Alert
  • Front Pedestrian and Bicyclist Braking
  • HD Rear Vision Camera
  • Hill Descent Control
  • Intersection Automatic Emergency Braking
  • Lane Keep Assist with Lane Departure Warning, enhanced
  • Occupant Presence Detection, front and rear
  • OnStar Basics (OnStar Fleet Basics for Fleet) Drive confidently with core OnStar services including remote commands, built-in voice assistance, real-time traffic and navigation, and Automatic Crash Response to help if you're in need. (Requires (UE1) OnStar. OnStar Basics includes remote commands, Navigation, Voice Assistance, and Automatic Crash Response, for eligible vehicles with compatible software. OnStar Basics is standard for 8 years; OnStar plan, working electrical system, cell reception and GPS signal required. OnStar links to emergency services. Service coverage varies with conditions and location. Service availability, features and functionality vary by device and software version. See onstar.com for details and limitations.)
  • OnStar Services capable (See onstar.com for details and limitations. Services vary by model. Service plan required.)
  • 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.)
  • Rear Cross Traffic Braking
  • Rear Park Assist
  • Rear Seat Reminder
  • Reverse Automatic Braking
  • Safety Alert Seat
  • Seat belt restraint pretensioner, rear
  • Side Bicyclist Alert
  • 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

Details

  • TIRES 235/65R17 ALL-SEASON BLACKWALL (STD)
  • AXLE 3.47 FINAL DRIVE RATIO
  • WHEELS 17 (43.2 CM) GRAZEN METALLIC MACHINED ALUMINUM (STD)
  • TRANSMISSION 8-SPEED AUTOMATIC ELECTRONICALLY-CONTROLLED WITH OVERDRIVE includes Driver Shift Control (STD)
  • SEATS FRONT BUCKET (STD)
  • ENGINE 1.5L TURBO DOHC 4-CYLINDER SIDI VVT (175 hp [131.3 kW] @ 5800 rpm 203 lb-ft of torque [275.0 Nm] @ 2000 - 4000 rpm). (STD)
  • AFTER DARK PREMIUM CLOTH SEAT TRIM
  • ELEVATION PREFERRED EQUIPMENT GROUP includes standard equipment
  • LICENSE PLATE FRONT MOUNTING PACKAGE (will be forced on orders with ship-to states that require a front license plate)
  • STERLING METALLIC
  • Power Windows
  • Heated Front Seat(s)
  • Driver Vanity Mirror
  • Passenger Vanity Mirror
  • Driver Illuminated Vanity Mirror
  • Passenger Illuminated Visor Mirror
  • Remote Engine Start
  • Heated Steering Wheel
  • Turbocharged
  • All Wheel Drive
  • 4-Wheel Disc Brakes
  • Aluminum Wheels
  • Tires - Front All-Season
  • Tires - Rear All-Season
  • Temporary Spare Tire
  • Automatic Highbeams
  • Privacy Glass
  • Privacy Glass
  • Heated Mirrors
  • Power Mirror(s)
  • Navigation System
  • MP3 Capability
  • Bluetooth Connection
  • Auxiliary Audio Input
  • Smart Device Integration
  • MP3 Capability
  • Bluetooth Connection
  • Auxiliary Audio Input
  • Navigation System
  • Satellite Radio
  • Requires Subscription
  • WiFi Hotspot
  • Bluetooth Connection
  • Smart Device Integration
  • Bucket Seats
  • Cloth Seats
  • Heated Front Seat(s)
  • Floor Mats
  • Floor Mats
  • Heated Steering Wheel
  • Power Windows
  • Keyless Entry
  • Power Door Locks
  • Keyless Start
  • Security System
  • Remote Engine Start
  • Cruise Control
  • Adaptive Cruise Control
  • MP3 Capability
  • Auxiliary Audio Input
  • MP3 Capability
  • Auxiliary Audio Input
  • A/C
  • Driver Vanity Mirror
  • Passenger Vanity Mirror
  • Driver Illuminated Vanity Mirror
  • Passenger Illuminated Visor Mirror
  • Brake Assist
  • Front Collision Mitigation
  • Front Collision Warning
  • Front Collision Mitigation
  • Front Collision Warning
  • Cross-Traffic Alert
  • Rear Collision Mitigation
  • Driver Air Bag
  • Passenger Air Bag
  • Front Side Air Bag
  • Front Head Air Bag
  • Rear Head Air Bag
  • Passenger Air Bag Sensor
  • Passenger Air Bag Sensor
  • Telematics
  • Requires Subscription
  • Telematics
  • Navigation from Telematics
  • Requires Subscription
  • Rear Parking Aid
  • Back-Up Camera
  • Blind Spot Monitor
  • Evasion Assist
  • Lane Departure Warning
  • Lane Keeping Assist
  • Front Collision Warning
  • Driver Restriction Features
  • Passenger Air Bag Sensor
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(); });