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
- On install, migrations add
csc_unique_product_codes_templateto categories table - On product create/update, hooks validate and generate codes
- Generator creates unique codes from main template, category template, and storefront settings
- In «always on mismatch» mode, code is validated on every save
- 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
- Store Builder
- Store Builder Ultimate
- Multi-Vendor
- Multi-Vendor Plus
- Multi-Vendor Ultimate
- Owners
- Vendors
- English
- Русский
- 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
Here you can share your opinion and evaluate our work.
Your feedback helps us become better and offer you even better service.