Overview

All The Parts brings Parts Europe's catalogue of motorcycle and powersport parts, riding gear and tires into a WordPress + WooCommerce shop. The catalogue's data come from Parts Europe and are kept in step with its own files and its own website; the shop sells from it without importing a single product into WooCommerce.

Prices are in euro, with VAT first and without VAT beneath, as the cart charges them.

Quick Start

1. Install the plugin

Download catalog.alltheparts.eu/plugin.zip, then in WordPress: Plugins → Add New → Upload Plugin → Install → Activate. WooCommerce must be active first (the plugin declares it as a required plugin). Activating it creates the cart's placeholder product.

RequirementMinimum
WordPress6.0
PHP8.0
WooCommerceactive (the cart uses its Store API)

2. The catalogue's page

Create a page with the address category and put the shortcode in it:

[partseurope]

That page is the catalogue's first page, /category/, and every catalogue address is served by it. The plugin also finds a page named catalog, or the first published page that carries [partseurope] (Elementor layouts included).

The catalogue's addresses stand at the site's root and come before WordPress's own: /category/ is no longer WordPress's category archive, /search no longer its search results, and /product/ no longer WooCommerce's product pages.

3. Updates

The plugin looks for a new release on the platform (its plugin-info.json) at most every 6 hours and shows it in Dashboard → Updates like any plugin. Auto-update is on by default; a site can turn it off in the Plugins list. The plugin's row has a "Check for updates" link that asks at once, and "View details" shows every release's notes.

4. The English shop

The English shop is the same shop under /en/. It stays out of search engines, is named by no page and is offered by no language switch until the site setting pe_en_ready is on (it is off by default; set it through WordPress's settings REST endpoint or with wp option update pe_en_ready 1).

Playbook: what to try

A tour of what the catalogue does best, and of the cases worth testing on purpose. Every address is on the shop's own site (/category/ means https://your-shop/category/); a label in quotes is the Bulgarian interface's own.

The best of it

WhatTryWhat you should see
A listing at a clickOpen /category/, rest the pointer on a category for a moment, then click it. Choose a few filter values one after another.The choice is marked at the press, the products arrive first and the filter column after. The page never reloads, and every step has its own address to share or bookmark.
Filters that stayIn /category/parts-and-accessories choose a brand, then a vehicle make.No group leaves the column: one with nothing to offer stays in its place, inactive, and a value a choice leaves empty stays where it was, at 0. Brands are pills with their logo and count.
A search that reads its wordsIn the header's search type hf 204, then бмв, then бмв масло athena. Ctrl+K (Cmd+K) opens the search from anywhere.The article HF204 opens at once; the make typed in Cyrillic finds BMW; the oil filters open with ATHENA and BMW already chosen as their filters.
Your motorcycleOn the home page choose make, model and year in the motorcycle finder.That motorcycle's parts by category, as pictures with what each holds for it. Cards that fit it say "Пасва на твоя мотор". The motorcycle is remembered in the browser: up to four, at the top of every motorcycle box ("Твоите мотори:") and in the header's "Моят мотор".
Vehicle search/vehicle-search: make, engine size, model and year in any order, or HSN and TSN, or the VIN tab. Type r1, then mt07.Each field lists what the others leave, with its count. r1 finds the YZF-R1 first, mt07 finds the MT-07. A motorcycle chosen there opens its parts and is remembered.
Tire search/tire-search: by size, by the size printed on the tire, or for your motorcycle.Every field narrows the others, each with its count. For a motorcycle, "Комплекти гуми" offers a front and a rear tire approved for it as a set, with the price of the two.
Chain kits/chain-kits: choose a motorcycle.Its stock final drive, then the kits, chains and sprockets that go with it. A whole set - front sprocket, rear sprocket and chain - goes into the cart at one press.
Printed catalogues/catalogs: open a catalogue and turn its pages with the arrow keys.The printed page with the articles printed on it beside it, as the shop's cards; the next page is ready before it is asked for; "download this page". An article's page opens its catalogue at that page.
An article's pageOpen a helmet or a jacket from a listing.A colour, then that colour's sizes, without leaving the page; the full-screen picture viewer; the price with and without VAT; the stock or the next delivery date; the descriptions, documents, and related and replacing articles.
FavouritesPress the heart on a few cards, then open /favourites/.The articles in the order they were marked, and the header counting them. The list lives in the browser: no account needed.
Brands/brands/: type a few letters, in Latin or in Cyrillic.The house brands first, then every brand A-Z with a letter bar; the logos narrow as you type.
The menuOpen the catalogue menu in the header.Parts Europe's top categories in its order, each opening its sub-categories as pictures with their counts, then the search tools, the promotions, the brands and the catalogues.
EnglishOnce the shop opens its English version (one setting), put /en before any address.The same shop in English, every link staying in English; an order placed there gets its e-mails in English.
SpeedOpen a category or an article twice, without a cart and not logged in.The second time the page comes from the page cache, in milliseconds.

Tricky cases worth testing

TryWhat you should see
Choose several filters, open an article, then go Back, and Back again.Each step returns at once to the listing it left, at the same scroll.
Choose a motorcycle, then open the helmets or the riding gear.The motorcycle box stays in its place, inactive (gear does not depend on the motorcycle); the vehicle make filter is still there. Nothing jumps.
Choose a motorcycle inside a category that has nothing for it.The page opens that motorcycle's parts, not an empty listing.
Save two or more motorcycles, then open any motorcycle box."Твоите мотори:" first, one press each; the motorcycle the page is for is marked as chosen.
Open an article sold out in both warehouses, and one with a next delivery date."Изчерпан" with the cart button off; "Очаква се на <date>" with the cart button on, and the date carried into the order and its e-mails.
Open a listing's address with a filter in a new private window.The page reloads once by itself and shows the filtered listing; a filter chosen on the listing changes it without a reload.
Place an order with courier delivery, then open it in the admin.The line shows the article's picture and links to its page; the courier accepts the order, so its waybill can be made.
Put an article into the cart and let it sell out before the checkout.The cart names the line, and the checkout refuses the order until it is removed.
Open an address that names nothing, such as /product/anything/000000.The shop's own "page not found", with the search field and the way to the catalogue - answered to search engines as not found.
Search for something that does not exist.An empty listing with ways onward, and a "did you mean" in the page's language.
On a phone, open the filters.A panel over the page that ends in a button with the number of products the filters leave; the page under it holds still. Zoom works.
Open a listing or an article with scripts turned off (or as a search engine reads it).The page is readable: the names, brands, numbers, prices with VAT and stock.
Share an article's address in a messenger.The preview shows that article's own picture.
Make a coupon limited to one category or brand, and use it on a mixed cart.Only the matching lines are discounted; a cart with no matching line refuses the code with a message.
Open the home page and a listing on a slow connection, with an empty browser cache.Nothing moves while the page and its font arrive: the text keeps its lines, the boxes their size.
Mark a favourite in one tab while the favourites page is open in another.The other tab's list follows.

The catalogue's addresses

Parts Europe's own addresses, at the site's root. In English the same addresses stand under /en (/en/category/..., /en/product/...), and every link of an English page stays in English.

AddressWhat it is
/category/The catalogue's first page: every product.
/category/<path>A category, by its path in Parts Europe's tree, e.g. /category/helmets-and-apparel/helmets/full-face. Its filters, sort, view and page are in the query.
/search?s=<words>A search. Words that name an article's number open that article; words that name the catalogue's own values (a make, a model, a category, a brand, a tire size) open that listing with them chosen.
/product/<name>/<number>An article's page.
/brands/The brand index.
/brands/<brand>A brand's listing; a category chosen there is a filter (?cat=).
/product-stream/<promotion>A Parts Europe promotion: its banner and its categories as tiles.
/product-stream/<promotion>?c=<tile>One tile's listing.
/tire-searchThe tires listing with the tire search above it (by size, by the size printed on the tire, for a motorcycle, ATV/UTV tires); the chosen tab is in the address.
/chain-kitsThe chain kit page; ?vehicle=<id> is the motorcycle it is for.
/vehicle-searchThe vehicle search: make, engine size, model and year, HSN and TSN, or VIN.
/catalogsParts Europe's printed catalogues.
/catalogs/<catalogue>/<edition>[/<page>]One printed catalogue, at its first product page or at a page.
the favourites pageAny page of the site that carries [partseurope_favourites].

A listing's query

A listing reads its own words from the query - brands, vehicle, vehicle-producer, segments, available, specialSale, newArrivals, priceMin, priceMax, the tire, chain, helmet and apparel fields, Parts Europe's attribute filters (f_<attribute>), sort, view, pageLimit and page - and ignores anything else, such as a campaign's utm_*.

An address that names nothing

No such article, category, brand, promotion, catalogue or page: the shop's own "page not found" page (the theme's 404 template), answered with status 404 and noindex.

Stores

Any page can be a store of one or more branches of Parts Europe's tree:

[partseurope cat="tires-and-tubes" title="Tires"]

The store lists only its branches at the page's own address, with its own search at <store>/search, and the page's own text stands under the store's heading. A store of exactly one category is that category's address: search engines are given the store's address as the category's canonical, and the sitemap lists it. An article always has one address, /product/....

Listings and filters

Every listing - the catalogue, a category, a search, a store, a brand, a promotion's tile - is drawn by the catalogue into the page itself. It is readable before any script runs and kept by the page cache, and a choice changes it in place: the page never reloads, and every step has its own address to share or bookmark.

The filter column

The column is Parts Europe's, in Parts Europe's order:

GroupWhat it holds
Find parts for your bikeThe motorcycle box: make, model, year - only what the listing has parts for, each with its count. Shown only where a motorcycle can be chosen: not on riding gear, nor on a listing whose articles fit no bike (unless a bike is already chosen). See Your motorcycle.
Size, EU size, US size, size groupRight under the motorcycle box and open, at the shop's request. On a category Parts Europe's size groups for it; on a listing without one category (a brand, a search, a promotion's brands) the same groups from the listing's own articles, clothing and shoe sizes only. The sizes run from small to large (XS, S, M, L, XL, 2XL..., shoes 39 to 48), a range after the size it starts with.
BrandsParts Europe's brands as pills with their logo and count. Not on a brand's own page.
Vehicle BrandThe makes of the motorcycles the parts fit, as Parts Europe writes them. On every listing, riding gear too.
CategoriesParts Europe's tree, one level at a time (see below).
SegmentsThe vehicle worlds: street, offroad, ATV, snow, watercraft, Harley and the others, in Parts Europe's order.
AvailabilityAll, in stock, and the shop's own split: in stock in the warehouse (1 to 3 days), available to order (14 to 20 days), out of stock.
Special Sale and ClearanceOn special sale or clearance, clearance, special sale. Not on a promotion's page, where every article is in it.
The category's own filtersParts Europe's filters for the category (mounting position first), its names and values in Bulgarian; the first four open.
More filters ("Още филтри")The shop's own, after Parts Europe's: the price with VAT (bars and a from-to range that applies itself when a field is left or Enter is pressed), and in the final transmission branch the chain's pitch and ring type.

Groups that stay where they are

Categories in the column

The column lists the children of the category the shopper stands in, each with its count; a row is one step forward. The way back is a trail of chips over the list: "Всички категории", then each category above - any chip is one click back to its level. On a leaf, the list is its siblings with the leaf marked. A category with sub-categories also shows them as pictures with their counts above the results.

Views, sort and page size

ControlChoices
View"По продукти" (the default): one card per product, its colours and sizes behind it. "По артикули": every article - a table on a computer, a block per article on a phone.
SortDefault (Parts Europe's own order), part number, price, newest, oldest, vendor part number, brand - each both ways where it has two - name, availability. A search is ordered by relevance.
Per page12, 24 (the default), 36 or 48.

A listing's address

A listing is an address on the shop's own site, shaped as Parts Europe's; its filters ride in the query. The first page and the default view are never written down.

AddressWhat it opens
/category/The whole catalogue
/category/<Parts Europe path>A category, e.g. /category/helmets-and-apparel/helmets/full-face
/search?s=<words>A search (see Search)
/brands/<brand>A brand's listing
/product-stream/<promotion>?c=<tile>One tile of a promotion
/tire-searchThe tires listing with the tire search above it
ParameterMeaning
brandsBrand codes, comma-separated
vehicleMotorcycle ids, comma-separated (a motorcycle's parts)
vehicle-producerVehicle makes, separated by |
segmentsSegment ids, comma-separated
availableavailable, eu, us_only or none
specialSaletrue (either), clearance or overstock (special sale)
priceMin, priceMaxThe price with VAT, in euro
f_<attribute>One of Parts Europe's category filters; values separated by |
chainPitch, chainRingChain pitch and ring type, comma-separated
catCategories as a filter (on a search, a brand's page, or several at once)
view=listThe view by article
sortpartNumberAsc, partNumberDesc, priceAsc, priceDesc, newest, oldest, vendorNumberAsc, vendorNumberDesc, brandAsc, brandDesc, name_asc, availability_desc
pageLimit, pagePage size (12, 36, 48) and page number

Anything else in a query - a campaign's utm_*, a click id - is not a filter: it is neither counted nor carried into the page's links. Search engines are asked not to fetch filtered, sorted or re-viewed addresses; the listings themselves and their numbered pages stay open to them.

Moving around

Your motorcycle

The motorcycle box

Make, then model, then year - only the motorcycles the page has parts for, each with how many, the ones with the most matching parts first; names typed in either script are found ("ямаха" finds YAMAHA). The box sits on top of every listing's column, on the home page as its finder, on the chain kit page and in the tire search's "for your motorcycle" tab. On riding gear it stays in its place, inactive: gear does not depend on the motorcycle.

The saved motorcycles

A motorcycle chosen in a box is remembered in the browser - never from a link someone else sent. Every motorcycle box starts with them ("Твоите мотори:"), one press each, up to four, the one the page is for marked; the header's "Моят мотор" lists them; the home page has a row of parts for them ("Части за твоя мотор"), one pill per motorcycle. A card or an article that fits the current motorcycle says so: "Пасва на твоя мотор".

The vehicle search page

/vehicle-search - linked from every motorcycle box ("Разширено търсене") and from the menu. Three tabs:

TabHow
FiltersMake, engine size, model or sales name, year - optional and in any order, each listing what the others leave, with its count.
HSN and TSNThe codes of a German registration document (2.1 and 2.2).
VINThe 17 characters on the frame or in the registration document; matched against Parts Europe's VIN patterns. A wrong or unknown VIN says so and offers the make, model and year instead.

A keyword field above the table lists matching motorcycles as one types (r1 finds the YZF-R1 first, mt07 finds the MT-07). A row of the table opens to the motorcycle's record (engine, power, displacement, final drive, chain, sprockets); choosing one opens its parts and remembers it.

Tires and chains

The tire search

It heads every tires listing - from the menu, a tile, the trail or /tire-search - with four tabs that switch in place; the tab chosen stays in the address.

TabWhat it does
Bike tires by sizeWidth, aspect ratio, construction, rim diameter, load and speed index, brand - each with its count, each narrowing the others.
Size from the tireEvery size the catalogue holds, searchable, as printed on the tire (120/70 R17, 90/90-21) or typed as one code (1207017).
Tires for your motorcycleThe motorcycle box; then the tires that fit it, front and rear. "Комплекти гуми" offers the tire pairs approved for that motorcycle: a front and a rear tire as a set, with the price of the two.
ATV / UTVATV and UTV tires by outer diameter, width, aspect ratio and rim (25 x 8-12 is 25 / 8 / 12, in inches), and brand.

Chain kits

/chain-kits works as Parts Europe's chain kit wizard. The motorcycle comes first (only the motorcycles there are final-drive parts for). With one chosen, the page shows its stock final drive - front and rear sprockets, chain size and links - and what goes with it:

Another motorcycle swaps the page in place.

The article page

/product/<name>/<part number> - drawn by the catalogue as part of the page.

PartWhat it shows
PicturesIn the order Parts Europe's own page shows them, then the printed catalogue's pages, then the videos; thumbnails beside the picture; a full-screen viewer; "© Parts Europe" on the pictures.
Colour and sizeA colour, then that colour's sizes, swapped in place without leaving the page; a product whose colourways share a base colour offers each by its own colour or name.
PriceWith VAT first, without VAT beneath ("без ДДС: ...").
StockThe warehouse and how soon (see Prices and stock), "Последни бройки" for the last pieces, the next delivery date when it is in neither warehouse.
The cart"Добави в количката", then one next step (the checkout first, or the cart). Sold out in both warehouses: the button says "Изчерпан" and does nothing. On a phone a buy bar with the price and the button stays at the screen's bottom while the page's own button is out of sight.
Favourite and shareThe heart; copy the link, copy the part number, WhatsApp, e-mail.
SpecificationsThe attribute table, in Bulgarian.
DescriptionsThe descriptions Parts Europe gives, as sentences.
Printed catalogueThe catalogue pages the article is printed on, each opening the catalogue at that page.
DocumentsManuals, instructions and other files, from the catalogue's own store.
RowsRelated parts, alternatives, replacements, similar products.
FitmentsThe motorcycles it fits: "does it fit my bike?" by make, model and year, a finder, then make, model and versions, each a link to every part for that motorcycle; a CSV download.
Safety and contactsThe manufacturer's safety and contact details, folded.
Recently viewedThe articles opened before, in this browser.

A page the cache keeps asks for the price and the stock again on arrival and shows them as they are now.

The header's search field, or Ctrl+K (Cmd+K) anywhere, or "/" outside a field, opens the search with suggestions as one types. Every row says what it is and how many products the listing it opens shows:

Words that name the catalogue's own values open that listing with them already chosen: бмв масло athena opens the oil filters with ATHENA and BMW as their filters; 120/70 17 opens the tires of that size. A make typed in Cyrillic finds the Latin one (бмв is BMW); a model typed without its make (S 1000 RR) reads as that motorcycle and lists its years, and a motorcycle chosen there becomes the shopper's. A 17-character VIN finds its motorcycle. A search that finds nothing shows the rider off the road, a "did you mean", the filters to drop with what each would leave, and the ways onward: all products and the vehicle search.

Printed catalogues, brands and promotions

Printed catalogues

/catalogs lists every catalogue Parts Europe publishes, each as its cover with its pages and markets. A keyword, the markets as chips and a brand narrow the list in place, and the address keeps the choice. A catalogue opens at /catalogs/<catalogue>/<edition>/<page>: the printed page, the articles printed on it beside it as the shop's cards ("Артикули на тази страница"), a page field, previous and next - the arrow keys turn the page too, in place, the next page ready before it is asked for - and "Изтегли страницата". Only the catalogue's product pages are shown.

Brands

/brands/ shows the house brands first, then every brand A-Z as a tile with its logo and article count, a letter bar that jumps, and a finder that narrows the tiles as one types, in either script. /brands/<brand> is that brand's listing, with its categories and filters; an article links its brand's page.

Promotions

/product-stream/<promotion> is a promotion's page: its banner, then its categories as picture tiles with their counts; a tile opens the promotion's listing of that category.

Favourites

A heart on every article card, table row and article page marks the article. The marked articles are kept in the shopper's browser - no account needed - and listed on the shop's favourites page (the [partseurope_favourites] shortcode), the latest first, with the header counting them. An article no longer offered is left out of the list, which says how many went. Marked in one tab, the list in another follows. The page is each visitor's own: kept out of search engines and the sitemap.

Prices and stock

Prices

In euro only. The price with VAT (20%) leads on the card, in the rows, on the article page and in the price filter; the price without VAT stands beneath it. Prices are written as the cart writes them: "130,69 €" in Bulgarian, "€130.69" in English. The cart always takes the catalogue's price, read on the server; a price sent by the browser is never trusted.

Stock

One rule for the card, the article page and the availability filter, from Parts Europe's two warehouses:

The articleShown asThe cart
In stock in the European warehouse"В наличност (N)"Yes
In stock only in the external warehouse"Очаква се зареждане"Yes
In neither, with a next delivery date ahead"Очаква се на <date>"Yes: the date goes into the cart line, the order and its e-mails
In neither, no date"Изчерпан"No: the button is off and the shop refuses the add

Shortcodes

The plugin registers six shortcodes. Where the catalogue answers, it draws the box itself on the server; where it does not, the older catalogue widget draws it in the browser. Some attributes are read only by that widget.

[partseurope] - the catalogue, or a store

AttributeDefaultWhat it does
cat(none)Parts Europe category paths, comma-separated: the page becomes a store of those branches.
title(none)The store's name.
langthe page's languageRead by the widget only; a page drawn by the catalogue is in the page's language.

[partseurope_carousel] - a row of articles

With source="discount" or source="new" the row is drawn by the catalogue: articles with a picture and in stock, as the catalogue's own cards, reading limit (4 to 24, default 12) and title; the row is kept ten minutes. Every other source is drawn by the widget, which reads:

AttributeDefaultWhat it does
sourcemanualmanual (the articles in skus, in that order), category, brand, discount, new, fitment (the parts for vehicle_id), popular, trending, bestsellers
title(none)The row's heading.
skus(none)Article numbers, comma-separated, for manual.
cat(none)A Parts Europe category path the row draws from, e.g. helmets-and-apparel/helmets.
category(none)An older category code, read when cat is empty.
brand(none)A brand code.
new_days30How new an article is for new.
vehicle_id(none)The motorcycle for fitment.
limit8How many articles (1 to 24).
sortpopularThe order of a category or brand row.
link_all, link_all_textauto, (none)The link to the whole listing and its words.
show_sizesautoThe sizes on the cards.
show_category_badge, show_discount_badge, quickviewtrueThe category badge, the discount badge, the quick view.
langthe page's languageThe row's language.

[partseurope_vehicle_finder] - make, model, year

Drawn by the catalogue: the listing's own motorcycle box with only the motorcycles the catalogue holds parts for, each with its count, and the shopper's saved motorcycles first. A choice opens that motorcycle's parts and is remembered. The catalogue reads title (a heading over the box; none when it is not given). The widget, where it draws instead, reads title (default "Търсене по мотор"), lang and cat (a category path the result opens in).

[partseurope_search] - a search box

A search box with suggestions, drawn by the widget; a search or a suggestion goes to the catalogue's search or the article's page.

AttributeDefaultWhat it does
title(none)A heading above the box.
placeholderthe language's ownThe text in the empty field.
sizelgsm, md or lg.
langthe page's languageThe box's language.

[partseurope_mega_menu] - the catalogue menu

No attributes. Parts Europe's top categories in its order, each opening its sub-categories as tiles with Parts Europe's pictures, then the search tools (tire search, chain kits), the promotions with their banners, and the brands and catalogues. Drawn on the server and refreshed hourly; when the catalogue is away, the last menu it gave. It takes the width of the place it is put in, and works in several copies on one page (a header dropdown and a phone's side panel). The same menu is given as data to a theme that draws it in its own header.

[partseurope_favourites] - the favourites page

No attributes. Put it on one page: it lists the articles the shopper marked with the heart on a card, a row or an article's page, the latest first. The list lives in the shopper's browser - no account needed - so the page is each visitor's own: it is noindex and left out of the sitemap.

Cart and checkout

No WooCommerce product is made per article. The cart holds one hidden placeholder product (article number PE-PLACEHOLDER), and each line carries its article's number; the plugin turns every line into its article wherever WooCommerce shows it.

The placeholder product is created on activation, put back by itself if it goes missing, and cannot be deleted while the plugin is active.

Cart event

After an add, the page sends pe:cart-updated on document with the cart's count and total, and asks WooCommerce to refresh its cart fragments:

document.addEventListener('pe:cart-updated', (e) => {
  console.log(e.detail.count, e.detail.total);
});

Coupons

Promo codes are WooCommerce coupons (Marketing → Coupons) that can be limited to part of the catalogue, even though every cart line rides on the one placeholder product. On the coupon's "Usage restriction" tab the plugin adds a PartsEurope scope panel, its labels in the admin's language:

Empty means no restriction. Several fields at once must all match (Brand + Category = that brand's articles in that category); within one field any value matches.

The scope works with "Percentage discount" and "Fixed product discount", which WooCommerce applies line by line. A "Fixed cart discount" ignores it and discounts the whole order; the panel warns when that combination is chosen.

Discounts without a code

A discount the shopper does not have to type: Marketing → Discounts, next to Coupons, labels in the admin's language. Each discount has a name, a percent, a scope and its dates:

The articles in scope show the lower price everywhere the shop shows a price - the listings, the article page, search and suggestions, the cart - with the percent and the last day it holds ("until 30.11"). Without the two own-risk ticks a discount follows the law on announcing a reduction: the price struck through is the lowest price the shop charged for the article in the 30 days before the discount began, so an article that already had that price or a lower one in those days (an earlier discount, a discount deleted and made again, a PE sale) shows its lower price with nothing struck and no percent, one that was cheaper than its full price shows a smaller percent, and nothing is struck once a reduction is older than 30 days. The screen states these cases and what the law says next to each tick; the decision to set them aside is the shop's. The list says what each discount does right now: how many articles it lowers, how many show the red −%, how many show none by the law and how many stopped at the purchase price, and the message after a save says the same for the discount just saved.

The storefront theme

All The Parts Storefront is the WordPress theme made for the catalogue: WordPress is the shell and the till, the catalogue plugin brings the catalogue, its menu and its search. Everything is drawn on the server; a few small scripts handle what moves. It needs the catalogue plugin.

Speed and the page cache

The plugin has a page cache for visitors without a login or a cart: a page they see is kept as a file, and Apache hands it out from .htaccess rules without starting WordPress. It is off until an administrator switches it on (POST /wp-json/pe/v1/page-cache with {"action": "on"}; off and purge the same way; GET reports its state).

KeptA GET with no query, from a visitor with no login, cart or session cookie: a 200 HTML page that set no cookie, on the site's own scheme.
Never keptThe cart, the checkout, the account, a search, a preview, a feed, an error page, an address with a query, a page a part of which the catalogue could not give, and a page in the dark theme (a visitor who chose dark is always answered by WordPress).
AgeAt most one hour: a listing's filter counts and its cards' prices and stock are never older. An hourly sweep deletes older pages.
Thrown awayWhole, when a page, a post, a template, a menu, a widget, a WooCommerce setting, a plugin or the theme changes, and when an administrator writes anything through the REST API.
HeadersA kept page answers with X-PE-Cache: HIT and Cache-Control: no-cache, must-revalidate.

With the cache on, the site's styles, scripts, pictures and fonts carry a week's browser cache. Deactivating the plugin removes its rules and its kept pages.

Pictures and fonts

Search engines

API Reference

The catalogue answers at https://catalog.alltheparts.eu/catalog-api/. Every address below is a GET that answers JSON (the fitments list answers CSV), needs no key, changes nothing, and may be called from any web page (CORS open to every origin). Prices are in euro. Text comes in Bulgarian or English: lang=bg or lang=en, otherwise the request's Accept-Language.

While the catalogue is closed for maintenance a call answers 503 with {"maintenance": true}; for a short while after a restart the filter counts and the endpoints built on them answer 503 with "facets warming up" - ask again a few seconds later.

Listings

AddressWhat it answers
/productsA page of articles, or of products with group=product (one card per product, its colours and sizes behind it). The parameters below.
/facetsThe filter column for the same parameters as /products: every filter group and value with the count the listing would show, in Parts Europe's order.
/categoriesParts Europe's category tree: path, name (name_en always), parent, level, order. flat, lang.
/filtersThe whole catalogue's brands, categories and other filter values with their counts. lang.
/searchArticles whose number or words match: q (2 characters or more), limit (up to 500).
/suggestBrands, categories and articles for what is being typed: q, lang.
/did-you-meanA close spelling when a search finds nothing: q, lang.

Parameters of /products (and /facets)

ParameterExampleMeaning
cathelmets-and-apparel/helmetsCategory path(s) from /categories, comma-separated; a category includes everything under it.
brands0204,0837Brand codes, comma-separated.
brandSlugshow-chromeA brand by its page's name (/brands-index): all its codes.
vehicle108853Vehicle ids, comma-separated: only what fits them.
f_<filter>f_tire_width=180|190One of Parts Europe's filters, its name as /facets gives it; several values joined by | mean any of them, several filters mean all of them.
availableavailableavailable (in stock in either warehouse), eu, us_only, none.
specialSaleclearanceParts Europe's Special Sale and Clearance: true (either), clearance, overstock.
segments4,6Parts Europe's segments by id: 1 ATV, 2 Harley, 3 Helmet & Apparel, 4 Offroad, 5 Snow, 6 Street, 7 Vintage Harley, 8 Watercraft, 9 Scooter, 10 Indian, 11 Bicycle.
priceMin / priceMax10 / 500Price range in euro.
hasDiscount, hasImage, hasFitmentstrueOnly discounted articles, only with a picture, only with vehicles.
newArrivals30Only articles added in the last N days.
stream, streamTileA promotion (/streams) and one of its tiles.
searchbrake padWords, a brand or an article number; ordered by relevance.
skusHF204,06410329These articles; preserve_order=true keeps the order given.
groupproductOne card per product instead of one per article.
sortpriceAscpe (the default without a search: Parts Europe's own order), priceAsc, priceDesc, partNumberAsc, partNumberDesc, vendorNumberAsc, vendorNumberDesc, brandAsc, brandDesc, newest, oldest, name_asc, availability_desc, popular, trending, bestsellers.
page, limit2, 48The page (from 1) and its size (1 to 100, 24 by default).

Articles

AddressWhat it answers
/products/:partNumberOne article: names, brand, prices with their history, stock in both warehouses and the next delivery date, pictures, documents, attributes, the vehicles it fits. lang; fitments=none leaves the vehicles out.
/products/:partNumber/siblingsThe other articles of the same product: its sizes, lengths, colours.
/products/:partNumber/fitments-treeThe vehicles it fits, by make, model and year, with the position.
/products/:partNumber/fitments.csvThe same as a CSV file.

Vehicles

AddressWhat it answers
/vehiclesMake, then model, then year: producer, model, year, lang. A year whose vehicles take different parts comes back as versions to choose from.
/vehicle/:idOne vehicle: its name and its stock final drive.
/vehicle-searchParts Europe's Vehicle Search: producer, size, modelSales, year, hsn, tsn in any order, keywords q, page (25 vehicles a page); each filter answers what the others leave.
/fitsWhich of these articles fit the vehicle: vehicle (ids), pns (article numbers).
/tire-sizesThe tire size steps - width, then aspect, then rim - each with its count: width, aspect.
/tire-pairsFront and rear tires approved for a vehicle as a set: vehicle.

Brands, promotions, printed catalogues

AddressWhat it answers
/brands-indexParts Europe's brand index: the house brands, then every brand with its logo and page name.
/brands/:slugOne brand: name, logo, brand codes, how many articles.
/streams, /streams/:slugParts Europe's promotions; one promotion's banner and category tiles (lang).
/catalogsEvery printed catalogue: cover, pages, markets, brands.
/catalogs/:cat/:ed, /catalogs/:cat/:ed/:pageOne catalogue edition; one page with the articles printed on it (lang).
Pictures and filesArticle pictures, brand logos, menu pictures and catalogue pages, from the catalogue's own store, at the addresses the answers above give.

For the shop's sitemap

AddressWhat it answers
/sitemapThe catalogue's own addresses a shop lists: its pages, every category and brand with something on sale, the promotions and catalogues.
/sitemap/products?page=NThe articles on sale, 1,000 a page, each with its address and picture.

The storefront's pages

/render/listing, /render/product, /render/finder, /render/carousel, /render/kit-chains, /render/favourites and /render/suggest answer the HTML the plugin puts into the shop's pages, with the addresses of its stylesheet and script (/storefront/:file). They follow the plugin's releases and are not meant to be called by anything else.

Analytics

An article's page tells the page's window.dataLayer what happened, in GA4's e-commerce form, for Google Tag Manager to pass on:

EventWhenData
view_itemAn article's page openedecommerce.items[0]: item_id (article number), item_name, item_brand, item_category, price; ecommerce.value, currency: "EUR"
add_to_cartThe article put into the cart from its page
dataLayer.push({ event: 'add_to_cart', ecommerce: { value: 55.19, currency: 'EUR',
  items: [{ item_id: 'HF204', item_name: '...', item_brand: '...', item_category: '...', price: 55.19, currency: 'EUR' }] } });

With Google Tag Manager on the site: a GA4 configuration tag with the shop's measurement id, and a GA4 event tag for each event above (a Custom Event trigger on its name); GA4's e-commerce reports read the ecommerce object.

The catalogue also counts, for its own sorts (popular, trending, bestsellers), the pages seen, searches, filter choices and cart adds. The storefront sends them to https://catalog.alltheparts.eu/analytics/event without a cookie and without personal data: a visit is a daily-changing hash, not a person.

Data Freshness

The shop is answered from the catalogue's own copy of Parts Europe's data, kept current through the day. Times are UTC and are the current settings.

Parts Europe's daily files

Parts Europe writes its files once a day in the early morning. From 03:00 each reader looks every hour until it has today's file.

FileWhat it does
Price filePrices, stock and which articles are on sale; an article it does not name goes off sale. A file much shorter than the last whole one is applied in part: its rows update their articles and nothing it leaves out goes off sale, until the next day's file confirms the change.
Discontinued listsArticles Parts Europe has discontinued but still has on the shelf carry "Последни бройки"; the ones simply gone go off sale. A discontinued article with no stock and no delivery date is not sold.
Product safety (GPSR)The product safety information an EU webshop has to have, read every morning.

Through the day

WhatHow often
Changes from Parts Europe's API (prices, stock, new articles)Monday to Friday every two hours from 05:00 to 13:00, at weekends at 07:00 and 13:00; a full pass every Saturday at 19:00
A new article can be found by its numberWithin ten minutes
Its pictures, copied into the catalogue's own store, in sizes for each screenWithin the hour
Parts Europe's category pages: where each article stands, in Parts Europe's order; articles Parts Europe's site lists stay on sale, ones it marks "Discontinued" go off itContinuously, each page read again within a week
The motorcycles an article fits, as Parts Europe's website lists them; tire pairs for chosen motorcyclesContinuously
The listings' order and filter countsRebuilt every hour and after each update from Parts Europe
A page the shop keeps in its page cacheAt most one hour old

An update of the catalogue itself does not take it away: a standby copy answers while it restarts. If the shop cannot reach the catalogue at all, its pages fall back to the catalogue widget and are not kept by the cache; the shop tries again after ten seconds.

FAQ

Does it create WooCommerce products?

No. One hidden placeholder product carries every cart line; the article's number, name, picture, price and weight are read from the catalogue on the server at every calculation, so a price sent by a browser is never trusted and the shop's product list stays empty of catalogue articles.

How do I link to a category, an article or a brand?

By its address, as on Parts Europe's site: /category/helmets-and-apparel/helmets, /product/<name>/<number>, /brands/<brand>, /search?s=...; filters ride in the query (?brands=0204&vehicle=108853). Every address can be shared and bookmarked. The old #/ links and pe_ parameters were removed in 1.12.0.

Which theme does it need?

The catalogue's pages are drawn in the look of the All The Parts Storefront theme - its design system and colours, light and dark - and are built and tested with it.

Is there an English shop?

Yes, under /en: every address of the shop in English, its links staying in English, an order's e-mails in the order's language. One setting opens it; until then its pages stay out of search engines and the Bulgarian pages offer no switch.

Where do the pictures come from?

From the catalogue's own store, as Parts Europe's terms require - never from Parts Europe's storage - in smaller sizes for phones and listings, with "© Parts Europe" on the article's picture.

What if Parts Europe is down?

The shop keeps answering from the catalogue's own copy; the updates catch up when Parts Europe is back.

How fast are the pages?

For a visitor without a login or a cart, a page already seen is kept as a file and handed out by the web server without starting WordPress: in milliseconds. Never kept: the cart, the checkout, the account, a search or an error page. A listing changes in place when a filter, the sort or a page is chosen, without reloading.

Does it work on a phone?

Yes: the filters open as a panel with a button that shows how many products they leave, every control a finger hits is at least 44 px, the listing by article turns into blocks, and the page can be zoomed.

Can search engines read the catalogue?

Yes: every listing and article is in the page itself before any script runs, with its own title, description, canonical address and breadcrumb, an article with its Product data; the catalogue's addresses are in the site's sitemap (Yoast SEO's index when Yoast is active, WordPress's own otherwise). Filtered and sorted addresses are kept out of the crawl.

Versions and Updates

The plugin (All The Parts Catalog) updates like any WordPress plugin: it checks the update feed every 6 hours, the update appears under Dashboard → Updates and can be set to update by itself. "View details" shows the release notes of every version, taken from the plugin's own readme. Every release is kept, and the platform offers one; a shop can be moved back to an earlier release through support.

The changelog (/changelog) lists every change, newest first: a plugin release under its version, a change of the catalogue itself under "API".

The theme (All The Parts Storefront) shows its version under Appearance → Themes.