Wishlist

Introduction

When wishlist functionality is enabled, visitors can save vehicles to a favourites list that persists between sessions (stored in the browser's localStorage). A floating wishlist button gives access to a slide-out drawer of saved vehicles, from which the visitor can send an inquiry, remove vehicles, or open a vehicle's detail page.

Enabling the Wishlist

<div
  data-carpose-component="vehicle-search-form"
  data-api-key="your-api-key"
  data-wishlist="true"
></div>

Behavior

  • Adds a WishlistButton to each vehicle card and a WishlistFloatingButton to the UI

  • Wishlist state persists across sessions via localStorage

  • Visitors can send inquiries for multiple saved vehicles at once

  • Success messages are shown when adding or removing vehicles

Notes

  • The wishlist is stored per-browser; no account is required

  • See also Vehicle Comparison, which can be enabled alongside the wishlist

  • For the full list of search-form options, see the Vehicle Search Form

Last updated