SKU & Product Code Generator: Patterns, Variation Codes and Duplicate Check
Edition: CS-Cart & Multi-Vendor · Latest version: 1.0.0 · Compatible with: CS-Cart & Multi-Vendor 4.17.2 – 4.22.x, PHP 7.4 – 8.3 · Changelog: view
Give every product and every variation a clean, unique code from your own pattern. New products and new variations get their code when they are saved, empty codes in an existing catalogue are filled in bulk after a preview, and a report lists every code that two products share.
CS-Cart gives a new variation the parent code with a random suffix (a random string when the parent has no code), and nothing stops two products from using the same code. That breaks product feeds, marketplace uploads, barcode labels and warehouse picking. This add-on makes the code from a pattern you write once, for example {CAT}-{SEQ:4} gives SHO-0042.

Key features
Section titled “Key features”- Pattern builder with tokens for category, brand, feature value, option values, vendor, counter, date, random characters and product id.
- A default pattern plus one pattern per category; the most specific pattern wins.
- Short codes for categories, feature values and vendors, with transliteration of names in 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, run in batches of 500 with a progress bar.
- A run log and an undo file for every bulk run, kept for 30 days.
- Never overwrites a filled code unless you run Regenerate on purpose; a lock flag protects single products.
- Race-safe counters: two admins or two parallel runs never get the same number.
- Uniqueness check across the whole store and a duplicate report with links.
- Multi-Vendor: vendor prefixes, vendor patterns or the owner’s patterns, vendors work on their own products only.
- CS-Cart Ultimate: patterns and runs stay inside each store. On Multi-Vendor Ultimate they are kept per vendor, not per storefront.
What it does not do
Section titled “What it does not do”- It does not make GTIN, EAN or UPC numbers. Use Barcode Labels for GS1 numbers and labels; the code made here is available there as a source (“Product code”).
- It does not make warehouse bin codes.
- It does not change the product code of products that already have one, except in a Regenerate run you start yourself.
Compatibility
Section titled “Compatibility”- CS-Cart, CS-Cart Ultimate, Multi-Vendor and Multi-Vendor Ultimate 4.17.2 to 4.22.x (tested on 4.17.2 and 4.21.2 as listed in the changelog).
- PHP 7.4 to 8.3, depending on your CS-Cart version.
- Works with the core Product variations add-on. It needs no other add-on.