# Auto Dealer for WooCommerce

> A WooCommerce plugin that adds a Car product type, makes, models, and a vehicle specification sheet your theme already knows how to style.

Version 1.0.0. Plugin by [ivke.dev](https://ivke.dev). This file is the markdown form of the sales page. It is not the plugin source.

The page includes a sample car listing. That listing is sample data, not a car for sale, and not the price of the plugin.

## Offer

The catalog price is $29, one-time. It is read from the catalog, not typed into the page.

One-time payment. Card payment happens on Polar. This page does not store the card.

After payment, an order confirmation goes to the email entered at checkout. The plugin download and the receipt are in that message.

Unhappy with it? A full refund. The charge is reversed. There is no restocking fee and no partial refund for being unhappy.

The order includes:

- Car product type, make, and model
- Built-in specification sheet
- Store-wide and per-car visibility and order
- List and grouped layouts
- Tab, summary, shortcode, block, and Elementor widget
- Columns on the WooCommerce CSV importer and exporter

## Who it is for

- **Freelance developer.** You already ship WooCommerce. You need vehicle fields, a native admin, and markup a theme can style — not a skin you have to undo on the next project.
- **Small agency.** The next dealer should not mean a new data model. Import with the WooCommerce CSV you already know. Place the sheet with a block, a shortcode, or Elementor if the client edits the page.
- **Dealer or seller.** Add a car the way you add a product. Mileage, owners, equipment, fuel, and the next inspection are fields — not a description you have to keep formatting by hand.

## Requirements

- WordPress 6.6+
- WooCommerce 9.4+
- PHP 7.4+
- Classic product editor

WordPress 6.6 or newer, PHP 7.4 or newer, and WooCommerce 9.4 or newer. Tested with WooCommerce up to 11.2. Compatible with High-Performance Order Storage and with Cart and Checkout blocks.

Not affiliated with Automattic or WooCommerce.

## What it replaces

A freelancer can write vehicle fields, a make and model relationship, and a spec table. The next dealer site should not start there.

Without the plugin:

- Specs pasted into the description, where they drift and cannot be queried
- Make and model as unrelated attributes, or a taxonomy you maintain
- A product page that still reads like a shop, not a listing
- The same custom work again, on the next dealer

With the plugin:

- A Car product type and the listing sheet: mileage, equipment, fuel, inspection
- Make uses WooCommerce Brands. A model cannot be assigned without its make
- The sheet uses WooCommerce attribute markup, so the theme styles it
- CSV columns, a block, a shortcode, and an Elementor widget if you already use it

## Included

### The data

- **Car product type.** Its own type, on the classic product data screen. A car cannot be published while a required specification is empty. A draft can.
- **Make.** Uses WooCommerce Brands when that taxonomy exists, so you do not keep two brand lists. If Brands is missing, the plugin registers a make taxonomy of its own.
- **Model.** A taxonomy related to a make. A model cannot be assigned on its own — the vehicle panel asks for the make first.
- **Specification sheet.** Six groups, in listing-form order: vehicle data, features, condition, equipment, drive, and environment. Equipment is thirteen checkbox groups, from airbags and driver assistance to climate, seats, and entertainment.
- **Custom fields.** Add text, long text, number, select, or yes/no. The key is taken from the label and does not change if you rename it, so cars already saved keep their values.

### On the product page

- **Two layouts.** A simple list, or grouped under those six headings. The store default is the list. A product, a block, or a widget can switch to grouped.
- **Show, hide, reorder.** For the whole shop, or for one car. Lower numbers appear first. The starting order is the order the fields are defined in.
- **Where it sits.** A product tab, the summary under the price, or both. The same markup is available as a shortcode, a block, and an Elementor widget if Elementor is already on the site.
- **Your theme styles it.** Output uses WooCommerce’s attribute table. There is no storefront skin to override, and no second design system in the admin.

### In the shop

- **CSV.** Vehicle columns are added to the native WooCommerce product importer and exporter, including make and model.
- **Query.** wc_get_products() accepts wad_{spec} and matches the stored value exactly. Useful for a related-cars block. Not a range filter.
- **REST.** The product payload includes car_specs, for a headless front or an import from another system.
- **Extension points.** Filters add specification groups and fields. Car is the type that ships. Motorcycle, truck, and machinery are anticipated, not included.

### Placement

- **Product tab.** The default. A vehicle details tab, in the same place as additional information.
- **Summary.** Under the price, when the facts should be visible before the description.
- **Both.** Tab and summary, if the page should not make a buyer hunt.
- **Block and shortcode.** The Car specifications block, or [auto_dealer_car_specs]. Layout and product ID.
- **Elementor.** A widget with the same job, loaded only when Elementor is present. Not a requirement.

## Not included

- **Not a theme.** It does not design the shop. A dealership look is the theme’s job — which is the reason the markup stays familiar.
- **Not a DMS.** No CRM, no finance quotes, no lead inbox. It makes the car a proper WooCommerce product, and stops there.
- **Units are fixed.** Mileage is kilometres, power is kW and PS, weight is kilograms, displacement is cm³. There is no unit switch. The sheet follows a European listing form, including HU/AU and NEDC/WLTP.
- **Classic product editor.** Vehicle fields live on the product data screen. The new WooCommerce product block editor is declared incompatible, and the admin says so.
- **Car, in this version.** Other vehicle types are an extension point. They are not a second product you are quietly paying for.

## Developers

```php
$cars = wc_get_products(
    array(
        'type'        => 'car',
        'wad_mileage' => '84200',
    )
);

auto_dealer_the_car_specs( $product, 'grouped' );
```

- **Stored as product meta.** Scalar specs are written through WooCommerce as _wad_{key}. Not a custom table, and not attribute taxonomies. High-Performance Order Storage stays compatible.
- **Exact query, not a range.** wad_mileage matches the value that was saved. Build a range in your own query if the archive needs one.
- **Filters, not a fork.** auto_dealer_spec_definitions and auto_dealer_spec_groups are how extra fields and a later vehicle type should be added.

## FAQ

### What has to be installed?

WordPress 6.6 or newer, PHP 7.4 or newer, and WooCommerce 9.4 or newer. Tested with WooCommerce up to 11.2. Compatible with High-Performance Order Storage and with Cart and Checkout blocks.

### Will it change how the shop looks?

No. Specifications render in WooCommerce’s attribute table, so the active theme styles them. There is no storefront stylesheet to fight.

### Can I hide fields I don’t use?

Yes. WooCommerce → Settings → Auto Dealer, and again on an individual car. You can also set the order. Lower numbers appear first.

### Can I add a field that isn’t in the list?

Yes. Custom specifications are text, long text, number, select, or yes/no. A developer can also add fields with the auto_dealer_spec_definitions filter.

### Can I import stock I already have?

Yes, through the WooCommerce product CSV importer. The plugin adds columns for make, model, and the other specifications.

### Which editor do I use for a car?

The classic product editor. The new product editor is not supported. Required specifications — including brand, model, body type, mileage, first registration, power, and fuel — must be filled before a car can be published. Drafts are exempt.

### What if I am unhappy with it?

You get a full refund. Ask, and we reverse the charge. There is no restocking fee and no partial refund for being unhappy.
