PS PrestaShop Beginner

DF Fitment Finder — Vehicle search and product compatibility

Install, configure, import the vehicle database and publish SEO pages per make and model on your PrestaShop shop.

Updated Module version 2.1.2

DF Fitment Finder adds compatibility search to your PrestaShop shop: customers select their vehicle (or device) and the catalog only shows the products that fit it. Version 2.0.0 also turns every make and model of your database into an indexable SEO page. This documentation covers installation, configuration, the vehicle database, the SEO pages and the customer journey.

What’s new in 2.1.2

  • Product page: in the Does it fit your vehicle? Select it to check. box, the labels and lists of the selector now stay aligned in their columns with themes such as Classic.

What’s new in 2.1.1

  • Garage: the Current vehicle mark now follows the vehicle selected in the shop. It disappears when the visitor clears the vehicle (Clear my vehicle) or chooses another one in the selector, and Set as current is offered again. Saved vehicles are kept.
  • Faceted Search 5.x: tested with ps_facetedsearch 5.1.0 on PrestaShop 8.2.1. The facets stay available while a vehicle is selected.

What’s new in 2.1.0

  • Faceted Search kept while a vehicle is selected: price, availability and feature facets stay available and only count compatible products.
  • Vehicle filter limited to chosen categories, with a separate option for brand and supplier pages.
  • Third badge state for products without fitment data: “to be checked, ask us” with a link (optional).
  • Integration: PHP hook and JavaScript events when a visitor selects or clears a vehicle, cache-friendly mode for full-page caches and CDNs such as Cloudflare.
  • Batched CSV import: large files are imported in steps of about 15 seconds with a progress bar.
  • Fix: on PrestaShop 1.7.8, the vehicle filter now applies to category, brand and supplier pages.

Faceted Search and the vehicle filter

In Display settings, the Faceted Search while a vehicle is selected option has two values:

  • Keep the facets (recommended): the Faceted Search module keeps building the listing and its facets, restricted to the products compatible with the vehicle. The counters next to each facet value only count compatible products. This requires a recent Faceted Search 4.x or 5.x that provides the actionFacetedSearchFilters hook (version 4.0.4 shipped with PrestaShop 9.1.5, or 5.1.0 on PrestaShop 8.2, for example).
  • Replace Faceted Search by the vehicle filter: the module shows the filtered listing itself, without facets. This is also what happens automatically when Faceted Search is disabled or too old; the description under the option tells you which case applies to your shop.

In both cases the visitor can pause the filter with Show all products on the listing.

Limiting the filter to some categories

Tick the categories in Categories filtered by vehicle: the filter applies to them and to their subcategories. Leave everything unticked to filter every category. For example, tick your spare parts categories but not clothing or lubricants. Also filter brand and supplier pages turns the filter on or off for these pages.

Products without fitment data

The Products without fitment data option decides what the product page shows when a product is linked to no vehicle at all:

  • Show nothing (default): no badge.
  • Show “to be checked, ask us” with a link: an amber message, editable per language in “To be checked” message, with a link to the contact page or to the full URL entered in “Ask us” link (a CMS page or a form, for example).

Full-page cache and CDN (Cloudflare)

The selected vehicle and the garage are stored on the server: in the PrestaShop cookie for guests, in the database for logged-in customers. If your pages are cached as a whole (Cloudflare, Varnish, a page cache module), enable Cache-friendly mode in Display settings:

  • pages are served without the visitor’s vehicle and without a personal token: the selector, “My vehicle” and the product badge are filled in by the browser after the page has loaded;
  • a plain cookie dff_v=1 is set while a vehicle is selected (and dff_gf_off=1 while the visitor has paused the category filter).

On your CDN, add a rule that bypasses the cache for requests carrying the dff_v cookie on category, brand and supplier pages when the vehicle filter is enabled, as their product list depends on the vehicle. Never cache the module’s AJAX address (/module/dffitmentfinder/ajax) nor the search and garage pages. The Help tab of the module shows these addresses for your shop.

Integration: vehicle selection events

Each time a visitor selects, changes or clears a vehicle, the module triggers:

  • in PHP, the hook actionDfFitmentVehicleChange with the parameters action (select or clear), vehicle_ids, label, selection and id_customer;
  • in the browser, the DOM event dffitmentfinder:vehiclechange and the PrestaShop event dffVehicleChange.
document.addEventListener('dffitmentfinder:vehiclechange', function (e) {
  // e.detail = { action: 'select' | 'clear', label: '…', landingUrl: '…' }
});

Large CSV files

After the preview, the import runs in steps of about 15 seconds, one request each, with a progress bar: a large file no longer hits the timeout of a proxy such as Cloudflare (100 seconds). Keep the page open until the report is shown. The duration depends on your server; on our test server, about 100 lines per second.

What’s new in 2.0.0

  • SEO pages per make and per model (option): translated URLs such as /en/compatibility/peugeot/208, meta title, meta description, H1 and introduction in every language, canonical, hreflang, sitemap, 301 redirects.
  • Redesigned back office: dashboard with a getting-started checklist, makes & models management, CSV import with a preview and an error report.
  • Product page: “compatible / not compatible” badge with a compact selector to check another vehicle, filterable compatibility chart linked to the SEO pages.
  • PrestaShop 1.7.8 to 9, 8 languages, security and reliability fixes.

Installation and update

  1. Go to Modules > Module Manager and click Upload a module.
  2. Drop the dffitmentfinder-2.1.2.zip file. On a shop running version 1.x, PrestaShop runs the update automatically.
  3. Click Configure to open the dashboard.

The update keeps all your data: vehicles, product links, customer garages and settings. It adds the SEO page tables, a faster index on the product links and the new settings, and removes the phantom “make / model” vehicle that version 1.x could create when a CSV file started with a BOM.

Compatible with PrestaShop 1.7.8 to 9.x, PHP 7.1 to 8.5, Classic and Hummingbird themes and their child themes, single store and multistore. No core override, no dependency.

Dashboard

The configuration page opens on a dashboard: number of makes, models, vehicles, products with a fitment, compatibility links and saved garage vehicles. The Getting started checklist guides you through the four steps (add vehicles, link products, show the selector, publish the SEO pages), and the Points to check block warns you about vehicles without any product or friendly URLs being disabled.

Dashboard: key figures, getting-started steps and status of the SEO pages per make and model
Dashboard: key figures, getting-started steps and status of the SEO pages per make and model

Display settings

The Display settings tab controls the selector and the product page:

  • Labels of the four levels, per language: Make / Model / Year / Variant for car parts, Brand / Series / Reference for cartridges.
  • Year and variant levels: switch them off for catalogs without model years or engines. Customers can always search from the make and model alone.
  • Icon: car, motorcycle, truck, garage, printer, phone, wrench, chip, your own PNG, JPG or SVG image (scripts and external content are refused), or no icon.
  • Desktop layout: horizontal or vertical. On mobile the selector always stacks.
  • Display the selector on: seven theme hooks, your own display hooks, and the widget {widget name='dffitmentfinder'} anywhere in your templates.
  • Filter category pages by the selected vehicle: category, brand and supplier pages only show compatible products while a vehicle is selected.
  • Compatibility chart and “Does it fit?” badge on product pages.
  • Hide out-of-stock products from the fitment lists (products that can be ordered when out of stock stay visible) and products per page (0 = same as the category pages).
Display settings: labels, year and variant levels, icon, selector positions
Display settings: labels, year and variant levels, icon, selector positions

The vehicle database

Manual entry

Go to Catalog > Fitment Finder and click Add a vehicle. Make and model are required; years (1900 to 2100) and variant are optional, and a duplicate vehicle is refused. Click Save and stay: the Compatible products panel appears. Type at least two characters of a product name or reference, pick it with the mouse or the arrow keys, and add an optional note such as “front axle only”. The list offers bulk enable, disable and delete.

Vehicle form: search and attach compatible products with a note
Vehicle form: search and attach compatible products with a note

CSV import with preview

The Import / export tab analyses your file before writing anything: number of lines, new and existing vehicles, product links found and lines with warnings, plus a preview of the first lines with the status of each one (unknown reference, invalid year, missing make or model).

make;model;year_from;year_to;variant;references;note;active
Peugeot;208;2019;2023;1.2 PureTech 100;BRK-208-F|OIL-PT12;Front axle;1
Peugeot;208;2012;2019;;BRK-208-F;;1
  • Separator “;” “,” or tab and encoding UTF-8 or Windows-1252 (Excel) are detected automatically; with a header row, columns can be in any order.
  • references: product or combination references separated by “|”.
  • Years, variant, references, note and active are optional. Existing vehicles are reused: importing the same file twice creates no duplicate.
  • Option Replace the product links of the vehicles in the file: links of these vehicles that are not in the file are removed.
CSV import: preview before writing, with reference and year checks
CSV import: preview before writing, with reference and year checks

After the import, the report shows the vehicles created and updated, the links created and removed, and the lines to check. The full error list can be downloaded as a CSV file.

CSV import report: vehicles created, product links and lines to check
CSV import report: vehicles created, product links and lines to check

CSV export

The export downloads the whole database in the same format, including notes and the active status, so you can edit it in a spreadsheet and import it again. References are never truncated, and cells starting with = + – @ are protected against spreadsheet formulas (the protection is removed again on import).

Makes and models

The Makes & models tab groups your vehicles by make, then by model, with the years, the number of vehicles and products, the URL of the page and its status (indexable, noindex, no active vehicle, unpublished). From the menu of each line you can view the page, open the vehicles, publish or unpublish the page, force noindex, or rename the make or the model on every vehicle at once: the old URLs keep redirecting (301).

List of makes: vehicles, compatible products, URL and indexing status of each page
List of makes: vehicles, compatible products, URL and indexing status of each page
Models of a make with years, product counts and actions: publish, noindex, rename
Models of a make with years, product counts and actions: publish, noindex, rename

SEO pages per make and model

The SEO pages are an option, disabled by default. Once enabled in the SEO pages tab, the module publishes one index page of the makes, one page per make and one page per make + model, created automatically from your vehicle database.

Addresses

Each language has its own URL prefix (compatibilite, compatibility, compatibilidad, kompatibilitaet, compatibilita, kompatybilnosc, compatibiliteit, compatibilidade by default), followed by the slugs of the make and the model: /en/compatibility/peugeot/208, /it/compatibilita/peugeot/208. A changed prefix or slug keeps answering with a 301 redirect to the new address. Friendly URLs must be enabled in Shop Parameters > Traffic & SEO to get clean addresses.

Enabling the SEO pages and translated URL prefix in every language
Enabling the SEO pages and translated URL prefix in every language

Default texts with variables

The meta title, meta description, H1 and introduction of every page come from default texts, per language and per level (model pages, make pages, index page). They accept the variables {brand}, {model}, {count} (number of compatible products), {years} and {shop}. A Google preview and character counters update as you type.

Default texts with {brand}, {model}, {count} variables and Google snippet preview
Default texts with {brand}, {model}, {count} variables and Google snippet preview

Editing a page

Click SEO & texts on a make or a model to override, per language, the URL slug, meta title, meta description, H1 and introduction (simple HTML allowed). Empty fields keep using the default texts, shown in grey. The page can also be unpublished (it then answers 404) or forced to noindex.

Editing a model page: URL, meta title, meta description, H1 and introduction per language with Google preview
Editing a model page: URL, meta title, meta description, H1 and introduction per language with Google preview

Write a specific introduction for your most important makes and models: unique content serves these pages better than templates alone.

What the pages show

The index page lists the makes with their number of compatible products. A make page shows its models, then all the compatible products. A model page offers filters by year or variant and the product list, with the sorting, pagination and product miniatures of your theme (Classic, Hummingbird and their child themes). A “This is my vehicle” button selects the vehicle for the visitor.

SEO index page of the makes with the number of compatible products
SEO index page of the makes with the number of compatible products
SEO landing page of a make: models, introduction and compatible products
SEO landing page of a make: models, introduction and compatible products
SEO landing page of a model: year or variant filters and the theme product list
SEO landing page of a model: year or variant filters and the theme product list
Model landing page on mobile
Model landing page on mobile

Indexing rules

  • Canonical on every page (with the page number), hreflang to every language plus x-default, breadcrumb.
  • noindex: automatic for pages without products (option), forced per page, global option, and on sorted or filtered variants (year or variant filter).
  • Structured data BreadcrumbList and ItemList, provided by the theme or by the module for themes without them.
  • Sitemap: the indexable pages are added to the Google sitemap module (gsitemap) when it regenerates; without it, the module offers its own XML sitemap with hreflang alternates, to submit in Search Console.
  • Internal links: index → makes → models, compatibility chart of product pages, “See its page” link of the remembered vehicle, link from the search results.
  • Performance: product counts are cached and recomputed after any change of the fitment data or after a configurable delay.

The search results page of the selector keeps its URL parameters (make, model, year, id_vehicle): your existing links from menus and CMS pages keep working. It is set to noindex, the indexable pages being the SEO pages.

The customer journey

Selecting the vehicle

The customer picks the make, then the model, then optionally the year and the variant. Each list is filled from the previous one without reloading the page, announced to screen readers. Show parts opens the compatible products, Save to my garage remembers the vehicle. The selected vehicle stays remembered, prefilled in the selector and shown with a link to its page, until the customer changes or clears it.

On the product page

The badge answers immediately: compatible in green, not compatible in red with a link to the parts that fit, or an invitation to select a vehicle. Check another vehicle opens a compact selector right in the badge.

Product page: "compatible" badge for the visitor's saved vehicle
Product page: “compatible” badge for the visitor’s saved vehicle
Product page: "not compatible" badge and checking another vehicle
Product page: “not compatible” badge and checking another vehicle

Below, the compatibility chart lists every compatible vehicle grouped by make, with a filter field on long lists, the customer’s vehicle highlighted and links to the make and model pages.

Compatible vehicles chart on the product page, with links to the make and model pages
Compatible vehicles chart on the product page, with links to the make and model pages

My garage

The My garage page, also linked from the customer account (Classic and Hummingbird), lists the saved vehicles: compatible products, set as current, remove. Guest garages are attached to the customer account at login and at account creation.

"My garage": the customer's saved vehicles and current vehicle
“My garage”: the customer’s saved vehicles and current vehicle

Frequently asked questions

Can I create indexable pages per make and model?

Yes, since version 2.0.0, with the SEO pages option: one page per make and per make + model, with a translated URL, meta tags, H1 and introduction in every language, canonical, hreflang, structured data and sitemap. Rankings depend on many factors: the module provides clean, indexable pages, it cannot guarantee positions.

Yes. The search page keeps its make, model, year and id_vehicle parameters, and the old p parameter of the pagination.

Can I use the module without vehicles?

Yes. Switch off the year and variant levels, rename the labels, and the module becomes a Brand / Series selector for cartridges, phone cases, appliance parts or any catalog where compatibility drives the purchase.

What happens to a fitment when I delete a product?

It is removed automatically, and the counts of the SEO pages are refreshed.

Is the module compatible with multistore?

Yes. Products are filtered per shop, and the SEO texts, slugs and counts are saved per shop and per language.

Yes. Since version 2.1.0, with a recent Faceted Search 4.x or 5.x, the facets stay available while a vehicle is selected and only count compatible products. With an older version, the module shows the filtered listing itself, without facets. You can also limit the filter to some categories.

Does the module work behind Cloudflare or a full-page cache?

Yes, with the cache-friendly mode: pages contain no visitor data and the browser loads the vehicle afterwards. Add a cache bypass rule for the dff_v cookie on filtered listings, and never cache the module’s AJAX address.

Was this page helpful?

Still stuck? Contact support