Description
PolarOne SKU Validation for WooCommerce controls the format of product SKUs, prevents duplicates and automatically replaces characters while products are entered or imported.
By default WooCommerce accepts any characters, spaces and letters from any alphabet in a SKU. This can cause problems in integrations with ERP systems, CRMs, marketplaces and other external services. This plugin lets you define what a valid SKU looks like and cleans everything else.
Live validation on the product edit screen
- Shows the status of the SKU while you type: checking, available or error.
- Prevents saving the product from the edit screen while the SKU is invalid or taken.
- Replaces spaces with an underscore (_) or a hyphen (-), removes them, or allows them.
- Converts letters to UPPERCASE or lowercase, or keeps them as entered.
- Warns about letters that have no replacement rule instead of silently removing them.
- Works with simple, variable, grouped and external products, including variations — every product type that uses the standard WooCommerce product screen.
Database scanner and backups
- Scans products and variations for duplicate and invalid SKUs (in batches, so large catalogs are fine).
- Live search by ID, title or SKU.
- Fixes only the products you select; the new SKU is always calculated on the server.
- Shows the reason for each problem: invalid format, duplicate SKU or letters without a replacement rule.
- Keeps the original SKU as a backup before the first fix and restores it in one click. Products whose SKU cannot be repaired automatically are listed but never touched.
Server-side validation (optional)
When enabled in the settings, SKUs that are changed by a save are validated on the server: CSV import, REST API, ERP/CRM sync and the admin editor all go through the same rules.
- Auto-Fix mode cleans the SKU and makes it unique (a suffix is added when the cleaned value is already used).
- Strict reject mode keeps the previous SKU and writes a warning to the WooCommerce log (WooCommerce > Status > Logs, source
po-sku-validation). - A SKU that cannot be cleaned without losing information (it would become empty, or contains letters without a replacement rule) is not saved; the previous value is kept and a warning is logged.
- Works through the standard WooCommerce save functions; direct database writes by third-party code are not intercepted.
- Existing SKUs are not rewritten by unrelated product saves.
Rules and replacement settings
- Custom replacement pairs for characters and letters.
- 15 language presets that you can edit after loading: Cyrillic (GOST and ISO 9), Ukrainian, Belarusian, Bulgarian, Macedonian, Serbian, Greek, Armenian, Georgian, Kazakh, Hebrew, German, Polish and European accents.
- Interactive toggles for 28 special characters.
- Letter case: keep as entered, UPPERCASE or lowercase.
- Optional custom regular expression.
The plugin loads its scripts only on the product edit screen (when the live check is enabled) and on its own settings page. Nothing is loaded on the public side of your site.
Installation
- Upload the
polarone-sku-validation-for-woocommercefolder to the/wp-content/plugins/directory, or install the plugin from the Plugins screen. - Activate the plugin through the ‘Plugins’ menu in WordPress (WooCommerce must be active).
- Configure the rules in WooCommerce > SKU Validation and save.
FAQ
Does the plugin slow down my store?
It adds no scripts or styles on the public side. The admin scripts load only on the product edit screen (if the live check is on) and on the plugin settings page. When server-side validation is on, a small check runs only when a SKU is changed.
How is this different from the default WooCommerce validation?
WooCommerce only checks that a SKU is unique, and only when the product is saved; any characters are accepted. This plugin checks the SKU as you type, cleans invalid characters and applies the same rules to imports and the REST API.
Is it safe to use the Database Scanner?
Before the first change to a product the original SKU is saved as a backup, and you can restore it in one click. You should still make a full database backup before bulk changes.
Will it process products imported from ERP systems or CSV files?
Yes, if you enable server-side validation in the settings. It is switched off by default so nothing changes before you have configured the rules.
What happens to Cyrillic, Greek or accented letters?
They are converted by the replacement rules, for example “Блокнот-A5” becomes “Bloknot-A5” with the Cyrillic preset. If a letter has no rule, the plugin does not cut it out: the live check shows an error, the scanner marks the SKU as “cannot be fixed automatically”, and server-side validation keeps the previous SKU. Load a language preset or add a custom pair and scan again.
Can I force upper or lower case?
Yes. Choose UPPERCASE or lowercase under “Letter case”. The conversion runs after the replacement rules, and the scanner reports existing SKUs in the other case so you can fix them in bulk.
Can I allow or exclude specific special characters?
Yes. Click any of the 28 special characters to allow or forbid it.
What data is removed when I delete the plugin?
The plugin settings and all SKU backups created by the scanner are deleted on uninstall. SKUs themselves are not changed.
Screenshots
Changelog
1.0.1
- New: letter case option (keep, UPPERCASE, lowercase).
- New: letters without a replacement rule are reported instead of being removed.
- New: the scanner shows the reason for each problem.
- New: donate link in the plugin row on the Plugins screen.
- Fix: loaded language presets are shown right away, before saving.
1.0.0
- Initial release.





