Pre-Owned 2021 GMC Sierra 1500 AT4 Hendrick Certified

  • VIN: 1GTP9EED7MZ368187
  • Stock: T29756A
Location: Richmond, VA
carfax icon

Hendrick Certified

Basic Info

  • Exterior:
    DARK SKY METALLIC
  • Drivetrain:
    Four Wheel Drive
  • Interior:
    JET BLACK WITH KALAHARI ACCENTS, PERFORATED LEATHER FRONT SEAT TRIM
  • Transmission:
    Automatic
  • Engine:
    Engine: 5.3L, EcoTec3 V-8, DI, Dynamic Fuel Mgt, V V T
  • Fuel Efficiency:
    14 CITY / 19 HWY
  • Mileage:
    61,589

Key Features

  • AWD
  • Android Auto
  • Apple CarPlay
  • Automatic Climate Control
  • Backup Camera
  • Bluetooth
  • Fog Lights
  • Keyless Entry
  • Leather Seats
  • Power Seats
  • Premium Audio
  • Satellite Radio Ready
  • Side-Impact Air Bags
  • Sunroof / Moonroof
  • Tow Package
  • WiFi Hotspot
  • Wireless Phone Charging

Description

Hendrick Certified, Superb Condition, LOW MILES - 61,589! PRICED TO MOVE $2,200 below J.D. Power Retail! Heated/Cooled Seats, NAV, Tow Hitch, Back-Up Camera, 4x4, Alloy Wheels, Bed Liner, AT4 PREFERRED PACKAGE, UNIVERSAL HOME REMOTE

KEY FEATURES INCLUDE
Heated Driver Seat, Cooled Driver Seat, Back-Up Camera. 4x4, Onboard Communications System, Aluminum Wheels, Privacy Glass, Keyless Entry, Steering Wheel Controls, Alarm.

OPTION PACKAGES
AT4 PREFERRED PACKAGE: includes (UG1) Universal Home Remote, (A48) rear sliding power window, (IOT) 8 diagonal Premium GMC Infotainment with navigation, (UQA) Bose Premium Audio System and (K4C) Wireless Charging, AT4 PREFERRED EQUIPMENT GROUP: includes standard equipment, REAR AXLE, 3.23 RATIO, AUDIO SYSTEM, PREMIUM GMC INFOTAINMENT SYSTEM WITH NAVIGATION AND 8 DIAGONAL COLOR TOUCH-SCREEN, INCLUDES MULTI-TOUCH DISPLAY, AM/FM STEREO: Bluetooth® streaming audio for music and most phones; featuring wireless Android Auto® and Apple CarPlay® capability for compatible phones, advanced voice recognition, in-vehicle apps, personalized profiles for infotainment and vehicle settings. Includes greater memory Note: (PZ8) Hitch Guidance with hitch view is included with trim.), ENGINE, 5.3L ECOTEC3 V8: (355 hp [265 kW] @ 5600 rpm, 383 lb-ft of torque [518 Nm] @ 4100 rpm); featuring available Dynamic Fuel Management that enables the engine to operate in 17 different patterns between 2 and 8 cylinders, depending on demand, to optimize power delivery and efficiency (STD), TRANSMISSION, 10-SPEED AUTOMATIC, ELECTRONICALLY CONTROLLED: with overdrive and tow/haul mode. Includes Cruise Grade Braking and Powertrain Grade Braking (Most vehicles built on or after 6-7-2021 with a V8 engine and (MQB) 10-speed automatic transmission will have (NSS) Not Equipped with Automatic Stop/Start, which removes Automatic Stop/Start and its content.) (STD), UNIVERSAL HOME REMOTE. GMC AT4 with Dark Sky Metallic exterior and Jet Black with Kalahari accents interior features a 8 Cylinder Engine with 355 HP at 5600 RPM*. Serviced here, Non-Smoker vehicle, 168 Point Inspection, Locally Owned and Driven Trade-In

A GREAT VALUE
This Sierra 1500 is priced $2,200 below J.D. Power Retail.

PURCHASE WITH CONFIDENCE
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

BUY FROM AN AWARD WINNING DEALER
Rick Hendrick Chevrolet Buick GMC has an incredible selection of new Chevy, Buick & GMC models. We also have a wide variety of pre-owned vehicles including many low mileage, one-owner vehicles.

Pricing analysis performed on 10/26/2026. Horsepower calculations based on 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

  • Wheel, 17" x 8" (43.2 cm x 20.3 cm) full-size, steel spare
  • Wheelhouse liners, rear
  • Tire carrier lock keyed cylinder lock that utilizes same key as ignition and door
  • Bumper, front, body-color lower (Front bumper color will be high gloss black.)
  • Bumper, rear body-color with corner steps
  • CornerStep, rear bumper
  • Grille (Body-color surround with high gloss Black mesh and Black chrome inserts. With (PCP) AT4 CarbonPro Edition the grille will have a unique grille surround with Black Chrome finish.)
  • Fog lamps, LED
  • Taillamps, LED signature taillight with LED stop and reverse light
  • Mirror caps, high gloss Black (Deleted with (DQS) outside power adjustable vertical trailering mirrors and mirror caps will be chrome.)
  • Glass, deep-tinted
  • Lamps, cargo area, cab mounted integrated with center high mount stop lamp, with switch in bank on left side of steering wheel
  • LED Cargo Area Lighting located in cargo bed activated with switch on center switch bank or key fob
  • Tailgate, GMC MultiPro Tailgate with six functional load/access features
  • Tailgate, gate function manual with EZ Lift includes power lock and release, includes hitch area light
  • Tailgate and bed rail protection caps, top
  • Door handles, body-color

Interior

  • Seat adjuster, driver 10-way power including lumbar
  • Seat adjuster, passenger 10-way power including lumbar
  • Seat, Up-level Rear with Storage Package, 60/40 folding bench for Crew Cab models, includes full-length bench seat, seatback storage on left and right side, center fold out armrest with 2 cupholders, full cab width under-seat storage, (includes child seat top tether anchor)
  • Center Console, floor-mounted with cup holders, cell phone storage, power cord management, hanging file folder capability
  • Floor covering, color-keyed carpeting
  • Steering column, manual Tilt-Wheel and telescoping
  • Steering wheel, leather-wrapped
  • Steering wheel, heated
  • Instrument cluster, 6-gauge cluster featuring speedometer, fuel level, engine temperature, tachometer, voltage and oil pressure
  • Driver Information Center, 4.2" diagonal color display includes driver personalization
  • In-vehicle Trailering App, System includes checklist, trailer maintenance reminders, trailer security alerts, trailer mileage, tow/haul reminder and trailer electrical diagnostics
  • Compass, located in instrument cluster
  • Exterior Temperature Display, located in radio display
  • Brake lining wear indicator
  • Remote vehicle starter system
  • Theft-deterrent system, unauthorized entry
  • Steering column, lock control, electrical
  • Power outlet, instrument panel, 120-volt (400 watts shared with (KC9) bed mounted power outlet)
  • USB ports, dual, charge-only (2nd row)
  • Power outlet, bed mounted, 120-volt (400 watts shared with (KI4) instrument panel mounted power outlet)
  • Air conditioning, dual-zone automatic climate control
  • Air vents, rear
  • Assist handles front A-pillar mounted for driver and passenger, rear B-pillar mounted
  • GMC Connected Access capable (Subject to terms. See onstar.com or dealer for details.)

Entertainment

  • Audio system feature, 6-speaker system
  • Steering wheel audio controls
  • 4G LTE Wi-Fi Hotspot capable (Terms and limitations apply. See onstar.com or dealer for details.)

Mechanical

  • Engine, 5.3L EcoTec3 V8 (355 hp [265 kW] @ 5600 rpm, 383 lb-ft of torque [518 Nm] @ 4100 rpm); featuring available Dynamic Fuel Management that enables the engine to operate in 17 different patterns between 2 and 8 cylinders, depending on demand, to optimize power delivery and efficiency (Not available on TK10743 model.)
  • Rear axle, 3.23 ratio
  • Pickup bed
  • GVWR, 7000 lbs. (3175 kg) (Requires Crew Cab model with (L84) 5.3L EcoTec3 V8 engine or (L87) 6.2L EcoTec3 V8 engine.)
  • Air filter, heavy-duty
  • Automatic Stop/Start (Standard on vehicles built before 6-7-2021. Most vehicles built on or after 6-7-2021 that are equipped with a V8 engine and (MQB) 10-speed automatic transmission will have (NSS) Not Equipped with Automatic Stop/Start, which removes Automatic Stop/Start and its content. See dealer for details)
  • Hill Descent Control
  • Auto-locking rear differential
  • Transfer case, two-speed, electronic Autotrac with push button control (4WD models only)
  • Suspension, Off-Road with 2" factory installed lift and monotube shocks
  • Four wheel drive
  • Cooling, external engine oil cooler (Not available with (LM2) Duramax 3.0L Turbo-Diesel I6 engine.)
  • Cooling, auxiliary external transmission oil cooler (Not available with (LM2) Duramax 3.0L Turbo-Diesel I6 engine.)
  • Alternator, 170 amps (Included and only available with (L84) 5.3L EcoTec3 V8 engine or (L87) 6.2L EcoTec3 V8 engine. Not available with (LM2) Duramax 3.0L Turbo-Diesel I6 engine.)
  • Battery, heavy-duty 730 cold-cranking amps/80 Amp-hr, maintenance-free with rundown protection and retained accessory power (Included and only available with (L84) 5.3L EcoTec3 V8 engine, (L3B) 2.7L Turbo engine and (L87) 6.2L EcoTec3 V8 engine.)
  • Frame, fully-boxed, hydroformed front section
  • Trailer brake controller, integrated
  • Recovery hooks, Red
  • Skid Plates
  • Cargo tie downs (12), fixed, rated at 500 lbs per corner
  • Steering, Electric Power Steering (EPS) assist, rack-and-pinion
  • Brakes, 4-wheel antilock, 4-wheel disc with DURALIFE rotors
  • Capless Fuel Fill
  • Exhaust, dual with premium tips (With (PCP) AT4 CarbonPro Edition the exhaust tips will be black.)
  • Exhaust, aluminized stainless-steel muffler and tailpipe

Safety

  • StabiliTrak, stability control system with Proactive Roll Avoidance and traction control, includes electronic trailer sway control and hill start assist
  • Airbags, Dual-stage frontal airbags for driver and front outboard 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 outboard 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.)
  • Hitch Guidance
  • 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
  • Rear Seat Reminder

Tech Specs

  • Vehicle Name: GMC Sierra 1500
  • Body Style: Crew Cab Pickup
  • Body Code: E63
  • Drivetrain: Four Wheel Drive
  • Passenger Capacity: 5
  • Gross Axle Wt Rating - Front: 3800
  • Gross Axle Wt Rating - Rear: 3800
  • Curb Weight - Front: 2839
  • Curb Weight - Rear: 1976
  • EPA Greenhouse Gas Score:
  • Fuel Economy Est-Combined: 18
  • EPA Fuel Economy Est - City: 16
  • EPA Fuel Economy Est - Hwy: 21
  • Tons/yr of CO2 Emissions @ 15K mi/year: 9.9
  • Gross Vehicle Weight Rating Cap: 7000
  • Gross Combined Wt Rating: 15000
  • Dead Weight Hitch - Max Trailer Wt.: 5000
  • Dead Weight Hitch - Max Tongue Wt.: 500
  • Wt Distributing Hitch - Max Trailer Wt.: 9200
  • Wt Distributing Hitch - Max Tongue Wt.: 920
  • Fifth Wheel Hitch - Max Trailer Wt.: 7500
  • Fifth Wheel Hitch - Max Tongue Wt.: 1875
  • Maximum Trailering Capacity: 9200
  • Engine Type: Gas V8
  • Fuel System: Direct Injection
  • Engine Order Code: L84
  • Displacement: 5.3L/325
  • SAE Net Horsepower @ RPM: 355 @ 5600
  • SAE Net Torque @ RPM: 383 @ 4100
  • Trans Order Code: MQB
  • Trans Type: 10
  • Trans Description Cont.: Automatic
  • Trans Description Cont. Again:
  • First Gear Ratio (:1): 4.69
  • Second Gear Ratio (:1): 2.98
  • Third Gear Ratio (:1): 2.15
  • Fourth Gear Ratio (:1): 1.8
  • Fifth Gear Ratio (:1): 1.52
  • Sixth Gear Ratio (:1): 1.28
  • Seventh Gear Ratio (:1): 1.00
  • Eighth Gear Ratio (:1): 0.85
  • Ninth Gear Ratio (:1): 0.69
  • Tenth Gear Ratio (:1): 0.63
  • Reverse Ratio (:1): 4.86
  • Clutch Size:
  • Trans Power Take Off:
  • Trans PTO Access:
  • Transfer Case Model: Magna
  • Transfer Case Gear Ratio (:1), High: 1.0
  • Transfer Case Gear Ratio (:1), Low: 2.69
  • Transfer Case Power Take Off:
  • Cold Cranking Amps @ 0° F (Primary): 730
  • Cold Cranking Amps @ 0° F (2nd):
  • Maximum Alternator Capacity (amps): 170
  • Maximum Alternator Watts: - TBD -
  • Total Cooling System Capacity: - TBD -
  • Engine Oil Cooler: Yes
  • Frame Type: Hydroformed
  • Suspension Type - Front: Independent
  • Suspension Type - Rear: Solid Axle
  • Spring Capacity - Front: 3800
  • Spring Capacity - Rear: 3850
  • Axle Type - Front: - TBD -
  • Axle Type - Rear: - TBD -
  • Axle Capacity - Front: 3800
  • Axle Capacity - Rear: 3800
  • Axle Ratio (:1) - Front: 3.23
  • Axle Ratio (:1) - Rear: 3.23
  • Shock Absorber Diameter - Front: 50
  • Shock Absorber Diameter - Rear: 51
  • Stabilizer Bar Diameter - Front: 1.30
  • Stabilizer Bar Diameter - Rear:
  • Front Tire Order Code: XCK
  • Rear Tire Order Code: XCK
  • Spare Tire Order Code: XCQ
  • Front Tire Size: 265/65R18SL
  • Rear Tire Size: 265/65R18SL
  • Spare Tire Size: 265/70R17SL
  • Front Tire Capacity: - TBD -
  • Rear Tire Capacity: - TBD -
  • Spare Tire Capacity: - TBD -
  • Revolutions/Mile @ 45 mph - Front: - TBD -
  • Revolutions/Mile @ 45 mph - Rear: - TBD -
  • Revolutions/Mile @ 45 mph - Spare: - TBD -
  • Front Wheel Size: 18 x 8.5
  • Rear Wheel Size: 18 x 8.5
  • Spare Wheel Size: 17 x - TBD -
  • Front Wheel Material: Aluminum
  • Rear Wheel Material: Aluminum
  • Spare Wheel Material: Steel
  • Steering Type: Electric Rack & Pinion
  • Steering Ratio (:1), On Center: - TBD -
  • Steering Ratio (:1), At Lock: - TBD -
  • Turning Diameter - Curb to Curb: 46.3
  • Turning Diameter - Wall to Wall: - TBD -
  • Brake Type: Pwr
  • Brake ABS System: 4-Wheel
  • Brake ABS System (Second Line):
  • Disc - Front (Yes or ): Yes
  • Disc - Rear (Yes or ): Yes
  • Front Brake Rotor Diam x Thickness: 13.5 x 1.18
  • Rear Brake Rotor Diam x Thickness: 13.6 x 0.79
  • Drum - Rear (Yes or ):
  • Rear Drum Diam x Width:
  • Fuel Tank Capacity, Approx: 24
  • Aux Fuel Tank Capacity, Approx:
  • Fuel Tank Location: - TBD -
  • Aux Fuel Tank Location:
  • Front Head Room: 43.03
  • Front Leg Room: 44.53
  • Front Shoulder Room: 66.02
  • Front Hip Room: 61.18
  • Second Head Room: 40.12
  • Second Leg Room: 43.4
  • Second Shoulder Room: 65.16
  • Second Hip Room: 60.24
  • Wheelbase: 147.53
  • Length, Overall: 231.72
  • Width, Max w/o mirrors: 81.24
  • Height, Overall: 78.35
  • Overhang, Front: - TBD -
  • Overhang, Rear w/o bumper: - TBD -
  • Front Bumper to Back of Cab: - TBD -
  • Cab to Axle: - TBD -
  • Cab to End of Frame: - TBD -
  • Ground to Top of Load Floor: - TBD -
  • Ground to Top of Frame: - TBD -
  • Frame Width, Rear: - TBD -
  • Ground Clearance, Front: 10.88
  • Ground Clearance, Rear: 10.88
  • Cargo Box Length @ Floor: 69.92
  • Cargo Box Width @ Top, Rear: - TBD -
  • Cargo Box Width @ Floor: 71.4
  • Cargo Box Width @ Wheelhousings: 50.63
  • Cargo Box (Area) Height: 22.4
  • Tailgate Width: - TBD -
  • Cargo Volume: 62.9
  • Ext'd Cab Cargo Volume: - TBD -
  • Model Group: Sierra
  • Vehicle Segment: Large Pick-up
  • Vehicle Type: Crew Cab
  • Body Cab Style: Crew Cab
  • Bed Style: regular
  • Engine Displacement Units: 5.3
  • Engine Camshaft: OHV
  • Engine Block Type: aluminum
  • Engine Cylinder Count: 8
  • Engine Valve Count: 2
  • Country of Origin: United States GMC Truck

Details

  • Driver Air Bag
  • Passenger Air Bag
  • Front Side Air Bag
  • Front Head Air Bag
  • Rear Head Air Bag
  • Climate Control
  • Multi-Zone A/C
  • A/C
  • Security System
  • AM/FM Stereo
  • ABS
  • 4-Wheel Disc Brakes
  • Cruise Control
  • Rear Defrost
  • Locking/Limited Slip Differential
  • Four Wheel Drive
  • 8 Cylinder Engine
  • Floor Mats
  • Gasoline Fuel
  • Daytime Running Lights
  • Keyless Entry
  • Power Door Locks
  • Heated Mirrors
  • Power Mirror(s)
  • Power Driver Seat
  • Power Passenger Seat
  • Pass-Through Rear Seat
  • Bucket Seats
  • Power Steering
  • Adjustable Steering Wheel
  • Traction Control
  • Aluminum Wheels
  • Power Windows
  • A/T
  • Satellite Radio
  • MP3 Capability
  • Fog Lamps
  • Heated Front Seat(s)
  • Privacy Glass
  • Steering Wheel Audio Controls
  • Power Outlet
  • Auto-Dimming Rearview Mirror
  • Mirror Memory
  • Driver Adjustable Lumbar
  • Passenger Adjustable Lumbar
  • Seat Memory
  • Leather Steering Wheel
  • Tow Hitch
  • Tow Hooks
  • Tire Pressure Monitor
  • Bluetooth Connection
  • Telematics
  • Remote Engine Start
  • Back-Up Camera
  • Stability Control
  • Keyless Start
  • Auxiliary Audio Input
  • Cooled Front Seat(s)
  • Power Folding Mirrors
  • Passenger Air Bag Sensor
  • Heated Steering Wheel
  • WiFi Hotspot
  • 10-Speed A/T
  • Smart Device Integration
  • Driver Restriction Features
  • Requires Subscription
  • Integrated Tailgate Step

Why Rick Hendrick Buick GMC Richmond

We have been your hometown Buick, GMC dealership for more than 50 years! We promise to provide you with outstanding service, value, satisfaction and an unsurpassed inventory of automobiles. We practice a no-pressure, high integrity approach to sales that makes your car buying experience a stress-free process. We’re proud to be in Richmond and are ready to help you drive away in your new car. So take a look at our inventory or shoot us a call to schedule your next service appointment.

Hendrick Vehicle Disclaimer:
$899 Dealer Processing Fee included in advertised price.

All prices exclude all taxes, tag, title, registration fees, government fees and electronic filing fee. 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:


Well-qualified customers who purchase a new, used, or certified pre-owned vehicle, 4 model years or newer with less than 60K miles between September 1, 2026 and November 2, 2026, and finance through a participating dealer and lender have the option to defer monthly payments for 120 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 November 2, 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. 

*Offer includes all dealer discounts and OEM incentives. Offer does not include tax, tag, title, fees, and other dealer installed options. Discount varies by model and stock number. Example stock #T29262. See dealer for details. Take retail delivery by 11/2/26. **Monthly payment is $16.67 for every $1,000 you finance. Average example down payment is 10.3%. Must finance through GM Financial. Some customers may not qualify. Not available with lease and some other offers. Take new retail delivery by 11/2/26. ***Deferred monthly payments for 92 days. Must finance with GM Financial. Some customers may not qualify. Down payment required at signing, if applicable. Finance charges accrue from date of financing. Not available with lease and some other offers. Take new retail delivery by 11/2/26.

*Offer includes all dealer discounts and OEM incentives. Offer does not include tax, tag, title, fees, and other dealer installed options. Discount varies by model and stock number. Example stock #DT29389. See dealer for details. Take retail delivery by 11/2/26. **Monthly payment is $17.48 for every $1,000 you finance. Average example down payment is 17.6%. Must finance through GM Financial. Some customers may not qualify. Not available with lease and some other offers. Take new retail delivery by 11/2/26. ***Deferred monthly payments for 92 days. Excludes residents of PA. Must finance with GM Financial. Some customers may not qualify. Down payment required at signing, if applicable. Finance charges accrue from date of financing. Not available with lease and some other offers. Take new retail delivery by 11/2/26.

*Offer includes all dealer discounts and OEM incentives. Offer does not include tax, tag, title, fees, and other dealer installed options. Discount varies by model and stock number. Example stock #T29262. See dealer for details. Take retail delivery by 11/2/26. **Monthly payment is $16.67 for every $1,000 you finance. Average example down payment is 10.3%. Must finance through GM Financial. Some customers may not qualify. Not available with lease and some other offers. Take new retail delivery by 11/2/26. ***Deferred monthly payments for 92 days. Must finance with GM Financial. Some customers may not qualify. Down payment required at signing, if applicable. Finance charges accrue from date of financing. Not available with lease and some other offers. Take new retail delivery by 11/2/26.

Connect With Us

Menu

Get Directions

12050 W Broad St, Richmond, VA, 23233
Rick Hendrick Buick GMC Richmond 37.6588, -77.6309.
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(); });