Give every product and every variation a clean, unique code from your own pattern, fill empty codes in bulk with a preview, and find duplicates.
Tested on 3 buildsUpdated Nov 26, 2026Version 1.0.0CS-Cart, Multi-Vendor 4.17.2 – 4.22.x No core file edits
Built for
SKU & Product Code Generator: Patterns, Variation Codes and Duplicate Check: overview1 of 8
What it does
CS-Cart gives a new variation only the parent code with a random suffix (a random string when the parent has no code), and nothing stops two products from sharing a code. SKU & Product Code Generator turns your own pattern into the code, so catalogues with sizes, colours, parts or many vendors stay tidy. It is for fashion and parts shops, B2B catalogues and Multi-Vendor marketplaces that want a unique, vendor-prefixed code on every product.
How it works
Add a default pattern and, if you like, one per category; the most specific one wins. Set short codes for categories, brand values, options and vendors, or keep the automatic ones. Save a product with an empty code, or create variations, and the code appears. For existing products open Generate codes, choose a category, read the old and new codes in the preview, then run it. Every run keeps an undo file for 30 days.
Features
Pattern builder with category, brand, feature value, option, vendor, counter, date, random and product id tokens
A default pattern plus one pattern per category, the most specific wins
Short codes for categories, feature values and vendors, with transliteration of other alphabets
Codes for new products and for new variations of a variation group
Bulk fill of empty codes for a category or the whole catalogue, with a preview of old and new codes
Batches of 500 with a progress bar, a run log and an undo file kept for 30 days
Never overwrites a filled code unless you run Regenerate on purpose
Lock a product code so no bulk run touches it
Race-safe counters: no duplicate numbers from parallel runs
Uniqueness check across the whole store, with duplicate report and links
Multi-Vendor and Multi-Vendor Ultimate: vendor prefixes, vendor patterns or owner patterns, rules and runs kept per vendor, vendors only see their own products
CS-Cart Ultimate: rules and runs stay inside each store
What you get
Package
kv_sku_code_generator-1.0.0.zip, installed through Add-ons → Manage add-ons
Updates & support
12 months included. Download new versions from your account and install them in Add-ons → Manage add-ons or the Upgrade Center.
License
1 production installation. Staging, dev and localhost are free and unlimited. The add-on keeps working after the update period ends. How licensing works
For developers
Uses 3 CS-Cart PHP hooks. No core files are changed.
Compatibility
We list only the builds we install and test on. “Tested” means the full test plan was run on that build; “Supported” means the build is inside the supported range and uses the same hooks.
CS-Cart version and edition compatibility
CS-Cart version
CS-Cart
CS-Cart Ultimate
Multi-Vendor
Multi-Vendor Ultimate
4.22 and later
Testing next
Testing next
Testing next
Testing next
4.21.2
Supported
Supported
Supported
Supported
4.20.x
Supported
Supported
Supported
Supported
4.19.x
Supported
Supported
Supported
Supported
4.18.x
Supported
Supported
Supported
Supported
4.17.2
Supported
Tested
Tested
Supported
Before 4.17.2
Not supported
Not supported
Not supported
Not supported
Last tested build: CS-Cart Ultimate 4.17.2, Nov 26, 2026Tested on: CS-Cart Ultimate 4.17.2, Multi-Vendor 4.17.2
Requirements
Platform
CS-Cart and Multi-Vendor 4.17.2 or later
Requirement
Administrator access to the store's admin panel
Core changes
None. Hooks and template overrides only
1.0.0
Nov 26, 2026
Latest
Added 1
Initial release: patterns with tokens and counters, short codes, automatic codes for new products and variations, bulk generation with preview and undo, locks, duplicate report, vendor prefixes (Multi-Vendor), rules and runs per company (a store on CS-Cart Ultimate, a vendor on Multi-Vendor and Multi-Vendor Ultimate); one counter per rule, or per distinct prefix with the "per prefix" scope. The product code index is created at install (a very large product table gets a notice and a button instead), a new product whose counter meets existing numbers jumps past them, and a failed code is logged and shown as a notice.
Tested on CS-Cart Ultimate 4.17.2, Multi-Vendor 4.17.2. First release.
Does the add-on overwrite codes I already typed?
No. Automatic generation and Fill empty codes only only write into empty codes. Regenerate codes replaces codes, but only when you start it, only after a preview, never for locked products, and with an undo file.
Can two products get the same number?
No. A counter is handed out in one locked database step, so two admins or two parallel bulk runs never get the same number, and every new code is also reserved in a table with a unique key. If a code is taken by an existing product, the next number is used (or a short random suffix for patterns without a counter), so numbers can have gaps. If codes of the same shape already exist (for example SKU-0001 to SKU-0300 from an earlier system), the counter jumps past the highest one. If no free code is found, the product keeps an empty code, you get a warning and the error log has a line.
What happens to the product code limit of 64 characters?
Longer codes are shortened without breaking letters in the middle of a character; the counter stays whole. See Configuration.
Why does a new variation not get my code?
Check that you created a variation pattern (or a product pattern), that Create codes automatically is on and the license is active. A code typed by hand while creating variations is kept; the code CS-Cart proposes (PARENT_1A2B) is replaced when Replace the code CS-Cart proposes is on.
Does it work with products that use options and inventory (not variations)?
The generator makes one code per product. It does not make a code per option combination in 1.0.
Does it make barcodes (GTIN, EAN, UPC)?
No. GS1 numbers and labels are made by Barcode Labels, which can use the code made here as a source.
Is the code translated per language?
No. A CS-Cart product code is one value for all languages.
Does it work with import and export?
Yes. The product code is the normal CS-Cart column, so import and export are untouched. Import a CSV with empty codes, then run Fill empty codes to give them a code.
What does uninstall do?
It keeps your patterns, short codes, counters, locks and run history by default so a reinstall continues the numbering. Tick Delete all data on uninstall in the settings before uninstalling to remove them. Codes on your products are never changed.
Does the add-on change my database tables?
It creates its own kv_skug_* tables. It also adds one plain index, kv_skug_product_code, on the product code column of the products table at install (a very large table gets a notice and a Create index now button instead, because adding an index blocks product writes for a while), so that uniqueness checks stay fast on large catalogues. Nothing else in the core tables is touched, and uninstalling removes the index.
Barcode & Shelf Label PrinterPrint EAN-13, UPC-A, Code 128 and QR labels for your products on A4 sheets or thermal rolls, straight from the product list.
$39
+
Spreadsheet Bulk Product EditorEdit prices, stock, names, categories, features and SEO fields of thousands of products in a fast spreadsheet grid, with preview and undo.
$69
Buy with confidence
What stands behind your license
Tested builds
This product was tested on these builds. Builds we did not test are not listed.
CS-Cart4.17.2Ultimate
Multi-Vendor4.17.2
4.21.2 (Smarty5.4.3Smarty 5.4.3
12 months of updates
Updates and support are included in the price. The product keeps working afterwards; renewing is optional.