This document is a reference for the Leads screen of the ADP Car Market Hub plugin (Car Market Hub → Leads). It covers the lead inbox, contact form configuration, consent and privacy options, notification messages, the Test Drive Booking module, webhooks and email templates.
When to use this document
Use this reference when you want to review contact form submissions, change which fields appear in the form, comply with GDPR consent requirements, configure who receives lead notification emails, integrate with an external CRM via webhooks, or enable the Test Drive Booking feature on single vehicle pages.
Overview
The Leads screen is divided into a Lead Inquiries table and a series of settings cards organized as follows:
- Lead Inquiries — searchable, paginated list of all submissions with bulk actions and CSV export.
- Recipient Email Override + Form Fields (side-by-side row).
- Consent & Privacy + Notification Messages (side-by-side row).
- Test Drive Booking (full-width card).
- Webhooks.
- Email Templates.
All settings cards share the same form, so saving any of them persists the entire page.
Requirements or prerequisites
- Permission to manage the plugin.
- Working WordPress mail. The plugin uses standard WordPress email; if your site cannot send mail, configure SMTP separately.
- For webhooks: an external endpoint that can accept HTTPS POST requests.
- For Test Drive Booking: enable the feature toggle and define at least the time window.
Step by step instructions
Review and manage leads
- Open Car Market Hub → Leads.
- Use the Search field to filter by name, email, message text or vehicle.
- The table lists each submission with Date, Name, Email, Phone, Vehicle, Type, Appointment and Actions columns. The Vehicle value links to the live listing (opens in a new tab); the Type badge shows whether the lead is an Inquiry or a Test Drive.
- Click the View (eye) icon on a row to open the Lead Details modal (Date, Name, Email, Phone, Vehicle, Type, Appointment, Message).
- Click the Delete (trash) icon to remove a single lead, or tick rows and use the bulk action Delete selected + Apply to remove several at once.
- Use Export CSV in the toolbar to download all leads matching the current filter.
- In Recipient Email Override, leave the field empty to use the fallback chain (seller public email → WordPress account email → site admin email), or enter one or more comma-separated addresses.
- In Form Fields, toggle Phone and/or Message off if you do not need them. Name and Email are always required.
- In Consent & Privacy, enable the consent checkbox, set the label text, and optionally provide a Privacy page URL — the words "privacy policy" in the label are then linked to that URL.
- In Notification Messages, customise the success and error messages shown to visitors after submission.
- Click any Save Leads settings button.
Enable Test Drive Booking
- Open the Test Drive Booking card.
- Toggle Enable Test Drive booking on. The live summary bar at the top of the card reflects the active configuration: a status dot (Active / Inactive), the number of selected days, the time range, the slot-duration label (e.g. "30 min slots"), and an "N blocked dates" chip when any dates are blocked.
- In Available Days, select the days of the week appointments can be booked. Leave all unchecked to allow every day.
- Add Blocked Dates in
YYYY-MM-DD format, one per line. - Set Start Time, End Time and Slot Duration (minutes) (5–480, step 5; minimum 5 minutes).
- Save.
- Enter the New lead webhook URL to receive an HTTP POST when a visitor submits the contact form.
- Enter the New import webhook URL to receive an HTTP POST when a vehicle is imported or updated.
- Optionally set a Webhook secret. The plugin signs each request with HMAC-SHA256 and sends the signature in the
X-AS24CI-Signature header for verification. Once a secret is stored, a confirmation note appears and the field's placeholder changes to "Leave empty to keep the current secret" — the stored secret is only overwritten if you type a new value, so leaving the field empty keeps it unchanged. - Save. Leave a URL empty to disable that webhook.
Customise email templates
- Open the Email Templates card.
- Edit the dealer notification subject, the customer confirmation subject and the corresponding HTML email bodies.
- Use placeholders to inject lead and vehicle data:
{name}, {email}, {phone}, {message}, {vehicle_title}, {vehicle_url}. - Leave any field empty to use the built-in default.
- Save.
Configuration reference
Lead Inquiries table
| Element | Behavior |
|---|
| Columns | Date, Name, Email, Phone, Vehicle, Type, Appointment, Actions. |
| Vehicle column | Links to the live listing; opens in a new tab. |
| Type column | Badge: Inquiry or Test Drive. |
| Search | Filters across name, email, message text and vehicle. |
| Per page | Allowed values: 5, 10, 25, 50, 100. Default 25. |
| Per-row actions | View (eye) opens the Lead Details modal; Delete (trash) removes that single lead. |
| Bulk action | Delete selected. |
| Pagination | Numbered pagination with windowing (current ± 2 pages). |
| Export CSV | Includes all leads matching the current search. |
| Lead Details modal | Date, Name, Email, Phone, Vehicle, Type, Appointment, Message. |
Recipient Email Override
| Field | Notes |
|---|
| Recipient email | Empty = fallback chain (seller public email → WP account email → admin email). Multiple comma-separated addresses are validated before saving. |
| Field | Default | Notes |
|---|
| Name | Always on | Required for visitors. |
| Email | Always on | Required for visitors. |
| Phone | On | Toggle off to hide. |
| Message | On | Toggle off to hide. |
Consent & Privacy
| Field | Notes |
|---|
| Consent checkbox | Master toggle. When on, visitors must check the box before submitting. |
| Consent label | Shown next to the checkbox. Empty = built-in default. |
| Privacy page URL | If set, the words "privacy policy" in the label are linked to this URL. |
Notification Messages
| Field | Notes |
|---|
| Success message | Shown to the visitor after a successful submission. |
| Error message | Shown if the submission fails. |
Test Drive Booking
| Field | Notes |
|---|
| Enable Test Drive booking | Master toggle that exposes the booking form on single vehicle pages. |
| Available Days | Multi-select of weekdays. Empty = all days available. |
| Start Time / End Time | 24-hour HH:MM format. |
| Slot Duration (minutes) | 5–480 in steps of 5. |
| Blocked Dates | One YYYY-MM-DD per line for holidays / closures. |
Webhooks
| Field | Notes |
|---|
| New lead webhook URL | Called on new contact form submission. |
| New import webhook URL | Called when a vehicle is imported or updated. |
| Webhook secret | Used to compute the HMAC-SHA256 signature sent in the X-AS24CI-Signature header. Treat as a credential. When a secret is already stored, a confirmation note appears and the field placeholder reads "Leave empty to keep the current secret" — the stored value is only replaced if you enter a new one. |
Email Templates
| Field | Notes |
|---|
| Dealer notification subject | Default placeholder: New inquiry for {vehicle_title}. |
| Customer confirmation subject | Default placeholder: Your inquiry for {vehicle_title}. |
| Dealer notification template | HTML body. Supports placeholders. |
| Customer confirmation template | HTML body. Supports placeholders. |
Supported placeholders: {name}, {email}, {phone}, {message}, {vehicle_title}, {vehicle_url}.
Operational notes
- All settings cards belong to one form. Any Save Leads settings button submits and persists every field on the page.
- Email delivery uses standard WordPress mail. Bounces, deliverability and spam filtering are outside the plugin's control.
- The webhook signature is recomputed for every payload. To verify on the receiving side, calculate
HMAC-SHA256(payload, secret) and compare with the X-AS24CI-Signature header. - Test Drive Booking only displays the booking form when the master toggle is on. Without selected days, all days are considered available.
- Leads are stored in a custom post type, so backups and exports cover them automatically. CSV export respects the active search filter.
- The Lead Details modal is read-only; to add internal notes or workflow status, use a CRM via the webhook integration.
Troubleshooting
- No emails are received. Confirm the WordPress site can send mail (test with another plugin or a site-wide test). Check the recipient override field for typos.
- Visitors cannot submit the form. Check the consent toggle and label — if consent is required, the checkbox must be ticked. Inspect the page console for JavaScript errors and confirm cookies/local storage are not blocked.
- Webhook receiver does not get a request. Verify the URL is reachable from the server, uses HTTPS, and is not blocked by a firewall. Check the Logs screen for delivery errors.
- Webhook signature does not validate. Make sure both sides use the same secret and that the receiver computes HMAC-SHA256 of the raw POST body, not of any pre-parsed JSON.
- Test Drive slots are missing. Ensure End Time is later than Start Time and that the date is not in Blocked Dates. If no days are checked, all days are open by design.
- Email templates show literal placeholders. Confirm the placeholder text matches exactly (including curly braces) and is one of the supported tokens.