Vehicle Slider

The Vehicle Slider displays a carousel of inventory vehicles, ordered randomly or by newest first.

Introduction

The vehicle-slider component renders an interactive carousel of vehicles from your inventory. It is ideal for showcasing featured vehicles on landing pages or highlighting specific stock.

Basic Usage

<div
  data-carpose-component="vehicle-slider"
  data-api-key="your-api-key"
></div>

Attributes

Attribute
Required
Description

data-carpose-component

Yes

Must be vehicle-slider

data-api-key

Yes

Your Carposé API key

data-limit

No

Number of vehicles to display (default 10)

data-order

No

Order of vehicles, random or newest (default random)

data-store-id

No

Restrict to a single store

data-vehicle-type

No

Filter by vehicle type

Behavior

  • Fetches vehicles from your inventory based on the configuration

  • Carousel with touch/swipe support and navigation arrows

  • Responsive and lazy-loads images

Notes

  • Hidden if no vehicles match the criteria

  • See also Vehicle Similarity Slider for "you may also like" carousels

Last updated