Ready to get started?Download WordPress

Plugin Directory

WooCommerce Product SKU Generator

Automatically generate WooCommerce product SKUs from the product slug and variation attributes.

Generate a descriptive SKU for products (when the product is published or updated) that uses the product slug. If the product is a variable product, this plugin can append attributes for each variation to the SKU to differentiate between them.

Requires: WooCommerce 2.1+

IMPORTANT: The SKU field will be disabled for simple products and parent products when you install this plugin so that it can't be edited. Your own SKUs previously assigned to products will be overridden if you update a product, and they will change if you change your product slug. Be sure you want to complete automate SKUs if you leave this enabled all of the time.

You can also selectively enable and disable the plugin if you don't want to override existing SKUs when saving products. You can view product documentation for help.


  • automatically generate SKUs when a product is published or updated using the product slug
  • optionally generates SKUs for product variations using the parent slug + variation attributes
  • use the bulk product update action to easily generate SKUs for products created before installing this plugin.

SKUs for all product types

The WooCommerce Product SKU generator allows you to determine whether all products, including product variations, should have generated SKUs, or if only simple products (and the parent product for a variable product) should have automatically assigned SKUs.

Regardless of which option is selected, product SKUs will be generated any time a product is published or updated. For example, a product with a slug 'awesome-tee-shirt' will have an SKU of 'awesome-tee-shirt' (even if this is a parent product of a variable product). The SKU can change if the product slug changes.

Variable Products

You can enable SKU creation for variable products under WooCommerce > Settings > Products as well. Should you choose to create unique SKUs for each product variation, the attributes for that variation will be appended to the product slug.

For a variable product whose parent is 'awesome-tee-shirt', the SKU will first use the parent slug, then append the attributes for each variation. For example, if the shirt has a small variation in white, the SKU for that variation will be 'awesome-tee-shirt-small-white'.

If you disable this option, you will be able to manually create your own variation SKUs, as these will not be overridden by saving or updating a product. The parent SKU will be automatically set no matter which option is enabled.

Bulk Updating

You can bulk add SKUs to products that you've created prior to installing this plugin. If you select the products you want to update, then bulk edit them, all you have to do is hit "Update". When the products are saved, SKUs will be generated for all products.

This action will also automatically generate the SKUs for product variations if you have them enabled.

More Details

Requires: 3.8 or higher
Compatible up to: 3.9.1
Last Updated: 2014-7-23
Downloads: 1,139


5 stars
5 out of 5 stars


2 of 3 support threads in the last two months have been resolved.

Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.