How to Prevent Duplicate Products From Entering Your Catalog

Duplicate products quietly creep into PrestaShop catalogs through manual re-entry, unvalidated CSV imports, supplier feeds, and ERP syncs. Left unchecked, these extra records split your SEO authority, scramble inventory counts, distort analytics, and trigger marketplace feed rejections, creating an operational mess that takes hours to manually merge and redirect.

Stopping duplicates at the front door is far easier than cleaning them up months later. By enforcing unique SKU and EAN-13 rules, applying fuzzy name matching, and routing every import or feed through a pre-save validation check, you keep your catalog clean, your stock accurate, and every physical item tied to a single authoritative listing.

Why Preventing Duplicate Products Matters in Your PrestaShop Catalog

Duplicate products in PrestaShop usually appear quietly, one record at a time, until the catalog stops making sense.

You prevent duplicate products in PrestaShop by blocking them at entry: enforce unique SKU and EAN/GTIN fields, add duplicate-detection validation to manual product saves, and run every CSV import or supplier feed through a matching check before records are created. Prevention must cover all four entry routes (manual entry, CSV imports, supplier dropship feeds, and Marketplace or ERP sync), not just the back office. Catching a duplicate at creation costs one validation rule; catching it three months later means reconciling stock, orders and history.

The damage compounds in ways that are easy to miss:

  • Split SEO rankings: two product pages compete for the same search terms, so neither ranks as well as one clean page would. Google handles a lot of duplicate content across the web, but that does not make duplicates within your own catalog harmless to your category and product visibility.
  • Wrong stock counts: the same physical item is counted twice, so you oversell one record and sit on dead stock in the other. Order preparation then fails at the packing bench, not in the admin.
  • Muddled analytics: views, add-to-carts and revenue split across two product IDs, which hides your real bestsellers and skews restocking decisions.
  • Failed Marketplace feeds: channels that match on EAN or reference reject or overwrite records when two products claim the same identifier, and the feed error arrives after your product has already gone dark on that channel.
  • Wasted ad spend: campaigns pointing at a duplicate page send paid traffic to a listing with thin or conflicting data, and the conversion is lost.
  • Customer confusion: shoppers compare two near-identical entries with different prices, availability or images, and trust drops.

Clearing up duplicates afterwards is always the harder job. Merging records means reassigning images, combinations, stock, orders and any module data attached to the duplicate, then redirecting the dead URL. Doing that for a few products is annoying; doing it for hundreds after a bad supplier feed is a long slog. Blocking at entry turns that into a routine that runs before anything is written to the database.

What Causes Duplicate Products in a Catalog, and How Does Duplicate Detection Work?

Duplicates rarely appear because someone was careless. They appear because a catalog has several entry points, and each one can create a record the others don't know about. A duplicate product record simply means two or more records exist for the same product, often with slightly different spellings, spacing or attribute order.

In PrestaShop, most duplicates trace back to five sources:

  • Manual re-entry. A merchandiser can't find an existing product through search (perhaps it's saved under a different name), so they create a second one. The Catalog > Products list then holds two entries with different IDs but the same physical item.
  • CSV imports. The native import tool matches rows by Product ID or Reference. Import a supplier file without a reliable reference column and PrestaShop creates new products instead of updating existing ones.
  • Supplier and dropship feeds. Two suppliers stock the same item under different codes, so two feed imports produce two catalog entries that never reconcile.
  • ERP or PIM sync. A connector pushes records on its own schedule. If its matching key doesn't line up with your PrestaShop Reference values, every sync can add fresh copies.
  • Seasonal re-listing and variant confusion. Rebuilding a spring range from scratch, or splitting a combination into standalone products, leaves the original and the copy side by side.

Detection engines try to spot these matches in layers, from strict to loose.

Layer What it compares Typical use
Exact identifier match ReferenceEAN-13 or UPC, compared character for character Catches import and sync duplicates where the code survived intact
Fuzzy name matching Product name similarity, usually scored with Levenshtein distance (how many character edits separate two strings) Catches "Blue Cotton T-Shirt" versus "Blue Cotton T Shirt"
Attribute comparison Brand, category, price, weight, combinations Confirms or rejects a fuzzy name match before it's flagged
Confidence threshold Combined score above a set cut-off Decides whether a pair is auto-merged, queued for review, or ignored

A high confidence threshold produces fewer false positives but misses more real duplicates; the right setting depends on whether you'd rather review extra pairs or ship a duplicate to a customer.

Blocking duplicates at entry beats cleaning up afterwards, because once a second record exists, catalog managers can't recover the lost search visibility on their own.

Method 1: Prevent Duplicate Products in PrestaShop with a Dedicated Plugin

A module gives you a permanent checkpoint at the catalog's front door. Instead of exporting a CSV every week to hunt for repeats, you configure the rules once and let PrestaShop reject a dupe before it is ever saved. The steps below walk through a typical prevention module from installation to your first review queue.

Module names and menu labels differ between suppliers, so treat these steps as the workflow rather than a click map. The order matters more than the exact wording.

Step 1: Install and Enable the Module

Nothing else works until the module is active, because its validation hooks only fire once PrestaShop has registered them.

Go to Modules, then Module Manager and upload the ZIP you received or install it directly from the marketplace listing. Click Install, then Configure to open its settings page.

You should now see the module's own configuration screen in the sidebar or under the Catalog menu, depending on how the developer registered it.

Tip: Install and test on a staging copy of the shop first. A prevention module that blocks saves will interrupt the daily work of anyone entering products on a live store if it is misconfigured.

Step 2: Turn On Unique Identifier Enforcement

Identifiers are the cheapest duplicate test you have, because a repeated reference number, EAN or MPN is almost never legitimate.

Inside the module settings, open the validation section, then set each rule:

  • Unique reference/SKU: block any save where the reference already exists in the ps_product table.
  • Unique EAN-13: reject a second product carrying the same barcode, which is the classic symptom of a supplier feed loaded twice.
  • Unique MPN: useful when you resell branded goods, since two listings for the same manufacturer part number are duplicates by definition.
  • Required fields: force a reference and EAN to be present, so the uniqueness check has something to test against.

You should now see that saving a product with a reference already in use triggers an error instead of a silent success.

Step 3: Set Fuzzy-Match Rules and a Confidence Threshold

Identifier checks miss the most common real-world dupe: the same product entered twice with slightly different names and no shared code.

Open the similarity settings and choose which fields the module compares (product name, combination attributes, supplier reference), then drag the confidence slider. A lower threshold catches more near-matches but produces more false positives to clear.

  • Compare name plus attributes together, so "Blue, size 42" is not flagged against "Red, size 42".
  • Keep the confidence threshold high at first, then loosen it once you see how noisy your feed is.
  • Enable accent and case normalisation so "Café" and "cafe" are treated as the same string.

You should now see a live preview or sample score showing how strongly two test products match under your current settings.

Step 4: Apply the Rules to Imports and Feeds

Manual entry is the slowest source of duplicates, so the real value is catching imported rows before they are written to the catalog.

Still in the settings, enable validation for each entry route you use:

  • CSV import: run the duplicate check on each row as it is processed, not on the file as a whole.
  • Supplier or dropship feed: validate on sync, and decide whether a match updates the existing product or is rejected outright.
  • Marketplace or ERP connector: enable the same check so records pushed in from an external system are held to the same standard as your own data.

You should now see duplicate rows reported in the import log rather than appearing silently in your catalog afterwards.

Step 5: Review Flagged Items Before They Enter the Catalog

A prevention module is only as good as its review queue, since some flagged rows are genuine near-matches you want to keep.

Open the module's flagged products or pending matches view. For each entry, you can approve it as a new product, merge it into the existing record, or discard it. Ignore the queue for a week, and it becomes unmanageable.

You should now see a clean, empty queue after each session, and a catalog where every approved product has been seen by a human at least once.

Tip: Assign the review queue to one named person and give it a fixed daily slot. Shared ownership is how duplicates slip back in.

If you would rather not add a module, or you want to test the concept first, the manual and code approach covers the same rules using PrestaShop's own features.

Method 2: Manual and Code Techniques to Stop Duplicate SKUs Entering PrestaShop

The no-module route works best when your product data already lives in a spreadsheet or an ERP export, and every entry passes through the same import script. You build the block once and reuse it on every catalogue refresh. It takes more setup than a module, but it gives you full control over the exact rules that reject a row.

Step 1: Clean Existing Records Before You Lock Anything Down

A constraint cannot be applied to a table that already contains clashes, so clear the duplicates first. Pull a report of repeated reference values and repeated EAN-13 values, then decide the surviving record for each group.

  • Export the ps_product and ps_product_attribute tables, or run a grouped query on the reference column to surface any value that appears more than once.
  • Merge the duplicates by keeping the oldest product ID, because that one usually already has URL rewrites, images and order history tied to it.
  • Retire or delete the surplus rows, then reindex your search index and regenerate thumbnails so the catalogue reflects the merge.

You should now see a catalogue where each reference and each EAN appears exactly once.

Warning: Take a full database backup plus the /img/p/ folder before you delete or merge anything, and run the whole operation on a staging copy first.

Step 2: Apply a Unique Constraint to the Reference Columns

A database-level unique index is the last line of defence, because it rejects a duplicate even when a script, an import or a manual save slips through. This step stops the row at the storage layer.

Open your database tool (phpMyAdmin or the MySQL client), select the shop database and run:

ALTER TABLE ps_product ADD UNIQUE (reference);

Repeat the same statement for ps_product_attribute if you generate combinations, and add a unique index on the EAN13 column of each table. Use your table prefix if it differs from ps_.

You should now see PrestaShop reject any insert or save that repeats an existing reference or EAN.

Warning: If the ALTER fails, a duplicate still exists in the table. Run the grouped query from Step 1 again until it returns no rows.

Step 3: Harden the PrestaShop Back-Office Settings

The admin side controls what is allowed at the point of manual entry, so tune it before your team starts adding products by hand. Navigate to Shop Parameters and then Product Settings.

  1. Enable Force update of the product status only if you want the save action to surface conflicts loudly rather than silently overwrite.
  2. Switch on Enable EAN-13 barcode in the same screen so the field is validated at entry rather than accepted blindly.
  3. For combination handling, keep Generate combinations set to a deliberate action, not automatic, so a stray attribute value cannot spawn a second row.

You should now see the back-office form require a reference and EAN for every new product.

Step 4: Write a Pre-Insert Validation Check for Imports

CSV imports and supplier feeds are the biggest source of repeated rows, so validate each record against the live catalogue before writing it. This blocks the duplicate at the door instead of cleaning it up later.

In your import script, build a lookup set of every existing reference and ean13 value, then reject any incoming row whose key already exists:

SELECT reference, ean13 FROM ps_product;
SELECT reference, ean13 FROM ps_product_attribute;

Load both result sets into a dictionary, then loop your import rows and compare each key before insert. Log rejected rows to a quarantine file so a buyer can review them instead of losing the data.

You should now see every import run report a list of blocked rows rather than silently creating a second copy.

Step 5: Wire the Check into Your Feeds and ERP Sync

Dropship feeds refresh on their own schedule, so the validator from Step 4 needs to run on every sync, not just on manual imports. This keeps the guard active when nobody is watching.

  • Point your feed parser at the same lookup set and run it before any INSERT or UPDATE.
  • On an ERP sync, match on reference first and fall back to EAN13 only when the reference is missing.
  • Write a weekly query that counts duplicate references so you spot drift early.

You should now see every feed and sync run pass through a validation gate before it touches the catalogue.

Tip: If you would rather skip the script maintenance entirely, a PrestaShop module can handle the validation for you, so weigh both routes against your team's technical capacity.

Troubleshooting: Duplicates Still Appearing After Prevention Is Set Up?

Validation rules only block what passes through them. If a duplicate still lands in your catalog after you have set up SKU checks, the leak is almost always a bypassed entry point or a data mismatch the rule could not see. Work through the causes below in order, because the first two account for most cases.

Symptom Likely cause Exact fix
New supplier products appear without passing any check The dropship feed writes straight to the product tables, or its own cron job runs outside the import screen Route the feed through the same import step your other sources use, or attach the duplicate check to the feed's scheduled task rather than the manual import form
Duplicate EANs flagged on combinations that are legitimately different A shared barcode sits across combinations, or two variants inherit the same reference Check the combination-level reference and EAN fields one by one; set unique values per combination or leave the field empty rather than copying the parent
An edited product reverts to older values overnight The ERP sync treats your shop as a copy of its own record and overwrites manual changes Decide which system is the master for each field, then have the sync update only that subset instead of the whole product record
Identical-looking SKUs slip past the check Case, leading zeros or trailing whitespace differ between the two records Normalise references before comparison (trim spaces, fix case) so the check compares the cleaned value, not the raw string
Clean imports are flagged as duplicates that do not exist Old duplicates still in the catalog are being matched against each new record Resolve the existing duplicates first, then re-run the import so detection works against a clean reference set

Supplier feeds that skip the import screen

Dropship feeds are the most common leak because they often run on their own schedule. A feed that writes through a custom script or direct database connection never touches the validation layer you built. Bring the feed into the same pipeline as your CSV uploads, or hook your duplicate check into whatever job processes it. Once every source passes the same gate, one rule protects them all.

EAN and reference clashes on combinations

A product with several combinations can hold a reference or EAN at both parent and combination level. If the parent reference is copied down to each variant, the second variant looks like a duplicate of the first under a strict check. Decide deliberately where uniqueness lives. For most catalogues, the parent keeps the base reference and each combination gets its own unique suffix or barcode.

ERP and Marketplace sync overwriting records

Two-way sync is where duplicates creep back in silently. An ERP module or marketplace connector that pushes a full product record will recreate the version it believes is correct, including any duplicate it has stored on its side. Restrict the sync to the fields the ERP genuinely owns, such as stock and price and let PrestaShop own titles, descriptions and references. That single decision removes most recurring clashes.

SKU matching that misses case and whitespace

Two records that look identical on screen are often different strings underneath. A trailing space, a lower-case letter or a stripped leading zero all defeat an exact-match check. Normalise every reference on import: trim whitespace, apply consistent casing, and preserve leading zeros. Then compare the cleaned value, not the raw entry.

Existing duplicates skewing new detection

If your catalogue already holds duplicates, every new import is judged against a polluted reference set. Clean the existing pairs first, either with a bulk deletion pass or by merging records during a CSV re-import. A focused sweep of your most valuable products delivers more value than a rushed pass over everything, and the check then works against clean data.

If you have confirmed each of these leaks is closed and pairs still appear, the issue is in how the rule reads the field rather than in the rule itself. Re-check which field your validation actually compares, and make sure it matches the identifier your suppliers and ERP use.

Take Away

Once your unique identifier rules, fuzzy-match threshold and import validation are all in place, every new product passes a checkpoint before it reaches the catalog. The result is one clean entry per physical item, with stock, SEO value and feed data all pointing at the same record.

Open your duplicate-detection module's settings today, enable the unique reference and EAN rules from Step 2, and run your next supplier import through the review queue before approving a single row.

Frequently Asked Questions

How do I stop duplicate products entering PrestaShop during a CSV import?+–
Set the import matching reference to a unique field such as the reference or EAN-13, and enable the option to ignore products that already exist. Run the import in test mode first so PrestaShop reports conflicts before anything is written to the catalog.
What is the difference between a duplicate SKU and a duplicate EAN in a catalog?+
A duplicate SKU is two records sharing the same internal product reference, usually created by manual entry or an ERP sync. A duplicate EAN is two records claiming the same manufacturer barcode, which more often points to the same physical product listed twice.
Can PrestaShop detect duplicate products automatically?+
PrestaShop does not carry out fuzzy duplicate detection out of the box. Its native import and product forms can enforce uniqueness on a reference field, but near-duplicate names and combined attributes need a module or a custom rule set to catch them.
How does fuzzy matching detect near-duplicate product names?+
Fuzzy matching compares product names, references or descriptions and scores their similarity, so records like "Blue Cotton Shirt Large" and "Large Blue Cotton Shirt" are grouped as likely matches. You then review and confirm before any record is merged or removed.
Should duplicate products be merged or deleted in PrestaShop?+
Merge when both records hold useful data, such as one carrying stock and the other carrying images or descriptions, then delete the empty record. Delete outright only when the duplicate has no orders, no stock and no associations attached to it.