Over 200 add-ons available under a single subscription for $40 per month!

Unique Product Codes

Allows you to set product code format and check for empty codes and duplicates.
Please enter a valid addres(es) of the shop where you are going to use the add-on.
By subscription 3 105 
Latest module version Updated:
Have questions about the module? Write to us: HelpDesk

The Unique Product Codes add-on automates generation and validation of unique product codes using configurable templates. It ensures code uniqueness, validates codes against templates, and provides flexible generation rules. The add-on eliminates empty and duplicate codes, auto-generates codes on product create/update, and supports categories and multivendor.

Features

  • Automatic code generation by template on product create/update
  • Duplicate code detection with admin notifications
  • Empty code search and processing via dedicated admin page
  • Flexible templates with special symbols (%, #, EAN-13)
  • Category templates with parent category inheritance
  • Three generation modes: on create only, always on mismatch, never
  • Lock product code field editing
  • Code validation by template on product edit
  • Multivendor support with per-storefront settings
  • Auto-generation for variations and product import
  • EAN13 and EAN13(xx) standardized templates

How it works

  1. On install, migrations add csc_unique_product_codes_template to categories table
  2. On product create/update, hooks validate and generate codes
  3. Generator creates unique codes from main template, category template, and storefront settings
  4. In «always on mismatch» mode, code is validated on every save
  5. On duplicate detection, a new unique code is auto-generated

Admin location

Module settings: Modules → Manage add-ons → Unique Product Codes

Code pages: Products → Duplicate codes, Products → Empty codes

Category settings: Categories → Edit category — «MS: Unique Product Codes» field

Product:
  • Store Builder
  • Store Builder Ultimate
  • Multi-Vendor
  • Multi-Vendor Plus
  • Multi-Vendor Ultimate
Recipient:
  • Owners
  • Vendors
Development
:
  • Backend
Localization:
  • English
  • Русский
Compatible versions:
  • 4.18.X
  • 4.17.X
  • 4.16.X
  • 4.15.X
  • 4.14.X
  • 4.13.X
  • 4.12.X

Installation

Install the add-on via Modules → Manage add-ons. Activate «Unique Product Codes».

Configuration

Go to Modules → Manage add-ons → Unique Product Codes.

Product code template: enter a template (e.g. PROD-###, EAN13, h%R8D-#). Symbols: % — fixed, # — product ID, digits/letters — random.

Generate when: on create and mismatch / always on mismatch / never.

Use templates from categories — per-category templates.

Inherit from parent — use parent category template when category has none.

Usage

Code is auto-generated on product create. Products → Duplicate codes and Products → Empty codes allow bulk processing.

Category templates

Enable «Use templates from categories», then in Categories → Edit set template in «MS: Unique Product Codes» field.

v2.0.2

19.03.2026

Changed:

  • [*] Module template updated

v2.0.1

29.01.2026

Changed:

  • [*] Updated setting labels: more concise wording
  • [*] Improved module description: clear template explanation
  • [*] Added detailed tooltip for «Inherit from parent» setting
  • [*] Updated module documentation (DESCRIPTION.md, INSTRUCTION.md)

v2.0.0

29.01.2026

New features and improvements:

  • [+] Code generation on product create
  • [+] Multivendor support with per-storefront settings
  • [+] Improved product import handling with temporary codes
  • [+] Auto code generation on product clone

Changed:

  • [*] Replaced short tags <? with <?php
  • [*] Module refactoring
  • [*] Completely redesigned module settings
  • [*] Improved category templates and inheritance
  • [*] Updated module documentation

v1.1.1

15.05.2023

Changed:

  • [*] Licensing

Legend:

[+] Added | [-] Removed | [*] Changed | [!] Bug fix

Reviews

Here you can share your opinion and evaluate our work.

Your feedback helps us become better and offer you even better service.

Similar add-ons