Tested Updated Bestseller Perfect rating Documented

SKU Generator for WooCommerce

(1 customer review)

From: $29.99 / year

Add full Stock Keeping Unit (SKU) support to WooCommerce.

$29.99 Single site1 year of updates and support30-day money-back guaranteeBuy
$79.99 Unlimited sites1 year of updates and support30-day money-back guaranteeBuy
$149.99Unlimited sitesLifetime updates and support30-day money-back guaranteeBuy


SKU Generator for WooCommerce plugin adds full SKU support to WooCommerce:

  • Set SKU by custom format (prefix, suffix, number length, category, tag) automatically for new products.
  • Regenerate SKUs for all existing products – tested in WooCommerce shop with large number of products.
  • Optionally regenerate only for products with no SKU.
  • Add product searching by SKU on frontend.
  • Add SKU to customer emails.
  • Allow duplicate SKUs.

SKU Format Options

This section lets you set format for SKUs.

SKU Generator for WooCommerce - SKU Format Options

Number generation
Possible values: from product ID, sequential or pseudorandom.
Default: From product ID
Sequential number generation counter
Ignored if “Number Generation” is not “Sequential”.
Default: 1
Default: None
Minimum number length
Default: 0
Default: None
Variable products variations
Possible values: SKU same as parent’s product, generate different SKU for each variation or SKU same as parent’s product + variation letter suffix.
Default: SKU same as parent's product
Replaced values: {category_prefix}, {category_suffix}, {category_slug}, {category_name}, {tag_prefix}, {tag_suffix}, {tag_slug}, {tag_name}, {prefix}, {suffix}, {variation_suffix}, {sku_number}. Please note that in order to use any of {category_...} or {tag_...} replaced values, corresponding section must be enabled.
Variable Products Variations field has three options:

  1. SKU exactly the same as parent product’s.
  2. SKU is different for each variation: for example, parent SKU – 0001, variations – 0002, 0003, 0004 etc.
  3. SKU same as parent product’s + variation letter suffix: for example parent SKU – 0001, variations – 0001a, 0001b, 0001c etc.

More Options

SKU Generator for WooCommerce - More Options

Automatically generate SKU for new products
If enabled – all new products will automatically get SKU according to set format values. To change SKUs of existing products, use Regenerator tool.
Default: yes
Delay SKU generation till product is published
Check this if you are using category/tag prefix/suffix for products SKU or individual SKUs for variations.
Default: yes
Generate SKUs only for products with empty SKU
Default: no
Allow duplicate SKUs
Default: no
Search by SKU
Add product searching by SKU on frontend.
Default: no
Search by SKU: Algorithm
Change this if you are experiencing issues with search by SKU on frontend. Possible values: posts_search; pre_get_posts.
Default: posts_search
Add SKU to customer emails
Default: no

Categories Options

SKU Generator for WooCommerce - Categories Options

Default: no
Sequential numbering on per category basis
Default: no
Category X Prefix
Default: None
Category X Suffix
Default: None
Category X Counter
Default: 1

Tags Options

SKU Generator for WooCommerce - Tags Options

Default: no
Tag X Prefix
Default: None
Tag X Suffix
Default: None

SKU Regenerator Tool

SKU Generator for WooCommerce - SKU Regenerator Tool

Tips & Tricks

To style SKU on frontend, try adding some custom CSS (e.g. to “Appearance > Customize > Additional CSS”):

div.product_meta span { display: block !important; }
div.product_meta span.sku_wrapper { color: green !important; }
div.product_meta span.sku { color: red !important; }

For developers – to get SKU by product ID in PHP:

if ( ! function_exists( 'get_product_sku_by_id' ) ) {
     * Gets product SKU by product ID in WooCommerce.
    function get_product_sku_by_id( $product_id ) {
        $product = wc_get_product( $product_id );
        return $product->get_sku();

Free vs Pro

Free Version Pro Version
Number generation: From product ID yes yes
Number generation: Sequential no yes
Number generation: Pseudorandom no yes
SKU prefix yes yes
Minimum number length yes yes
SKU suffix yes yes
Variable products variations: SKU same as parent’s product yes yes
Variable products variations: Generate different SKU for each variation no yes
Variable products variations: SKU same as parent’s product + variation letter suffix no yes
SKU template yes yes
Automatically generate SKU for new products yes yes
Delay SKU generation till product is published yes yes
Generate SKUs only for products with empty SKU yes yes
Allow duplicate SKUs yes yes
Search by SKU on frontend yes yes
Add SKU to customer emails yes yes
Categories: Sequential numbering on per category basis no yes
Categories: SKU prefix per category no yes
Categories: SKU suffix per category yes yes
Tags: SKU prefix per tag no yes
Tags: SKU suffix per tag yes yes
“SKU Regenerator” tool yes yes

1 review for SKU Generator for WooCommerce

  1. blank


    Great plugin! Best of all SKU plugins I have tried and support is very responsive.

Add a review

Your email address will not be published. Required fields are marked *

38 thoughts on "SKU Generator for WooCommerce"

  1. Because we can know when this product is available through the article number, and then determine whether to remove the product

  2. According to today’s date, parent SKU Generator for woocommerce
    Let’s say today is December 12, 2019
    The format is, 2019-1212

  3. Hi,
    i recently bought your plugin. i am using this format {category_prefix}-{tag_prefix}-{variation_suffix} but i want to use the category tab’s counter with that format too. what to add in the format then?
    also it would help if we can set the prefix or suffix for variation.
    Thank you

  4. Is it possible to use sequential numbers, but start at a specific number (ie. 20002596).

    If there is not an option to do this, is there a way to set it into the database (options table) or via a hook on the first time?

    1. Ok, I have figured it out.

  5. Hello

    I just purchased this plugin for a shop. The problem I have now, if I edit a Product and add a new variation, it doesn’t generate a new SKU for that new variation. Is there any possibility to generate a new SKU for each variation without a SKU?

    Special in my shop is that I have a lot of products imported from an old shop and it’s important that these SKU’s (also the previously entered SKU’s from each variations did not change) Hope there is some sort of a solution that on create or update it generates new SKU’s for each variation without an SKU. Would also be great if the Generator can set them as well, cause I have a lot of variations now without an SKU.

    I’m using the sequential number generation.

  6. Hi there,

    I am using the Pro version and noticed that the counters for certain categories are changing numbers. It started at “1” but now some are at “9” or “150” or some other number, but we do not have that many products in those categories. I manually fixed everything, but I was wondering if there was an explanation for this. Perhaps it was because I imported products from a spreadsheet in large quantities and some had multiple categories? Let me know what other details you need to help me figure this out. Thanks!

    Delay Till Published
    Category Prefix

  7. Hi,

    I have been bought “SKU Generator for WooCommerce” a few days ago.
    I would like to setup SKU ID Generate by Category and Sub Category (Category have Hierarchy) and variation production with size also.
    But this plug in cannot setup both requirement.

    Please help me on this issue ASAP.


  8. Hi,
    I am using the free version. I have setup the category suffix but it is not showing up.

    1. Hi,

      Please confirm that you have 1) enabled plugin’s “Categories” section in “WooCommerce > Settings > SKU > Categories”, 2) set category suffixes there and 3) added {category_suffix} to the “Template” option (in “WooCommerce > Settings > SKU > General > Template”).

  9. Hi I have the pro version, the things I want to do is to set my category name as a prifix not a prifix to the category name.
    I.e. category name DOG = SKU DOG***************
    I have about 500 categories.

    1. Hi Bjorn,

      Actually that’s exactly what can be done in “WooCommerce > Settings > SKU > Categories” (i.e. if you set each prefix to category name). However I do understand that setting 500 categories manually would take too much time, so I’m already working on adding feature to use category name (or slug) instead of setting category prefix manually. Update should be ready in 24 hours or less. Will get back to you here when it’s done..

    2. sounds awesome, thanks 😉

    3. Hi Bjorn,

      As promised, we’ve just released new plugin v1.2.5. After you update, you can use {category_slug}, {category_name}, {tag_slug} or {tag_name} replaced values in the “Template” field (in “WooCommerce > Settings > SKU > General > Template”). Please note that “Categories” section in plugin must be enabled.

      Please let me know if something is not working as expected or if you have any questions.

      P.S. If you like the plugin, please consider leaving us a rating, I would really appreciate it.

    4. Thanks for the great support, it work perfect 🙂

    5. Hi Bjorn,

      Happy to help 🙂 Please let me know if you need anything else.

  10. Is it possible to get the product’s category as the prefix in the SKU?

    1. Hi Bjorn,

      Yes, that’s possible, unfortunately in Pro version only. However in free version you can add category as suffix though. You need to go to plugin’s “Categories” settings section (in “WooCommerce > Settings > SKU > Categories”), enable the section there and set “Suffix” for each category. As you will see there is “Prefix” option also, but it’s grayed out in free version (and active in Pro version).

      Hope that helps and please let me know if you have any more questions.

  11. Hi Support ,

    I has checked you have mention on SKU Generator for WooCommerce plugin description “Add product searching by SKU on frontend” . So i was installed the free available version of the SKU Generator for WooCommerce plugin and also checked the checked box option for Search by SKU in the plugin setting but its not working with default wp search . Could you please let me know on which version (free or pro ) this sku serach on frontend feature available and its work with default wp search or any other ?

    Thanks !

    1. Hi,

      This is fixed in plugin version 1.2.2 (released today).

  12. Hi,
    I use the pro version recently with a letter suffix for variation.
    But some time it’s work and many time not.
    The variant sku are the same as the product without the letter suffix on a majority of product..
    I don’t have other plugin activated for sku.

    Wath wrong ?
    Thanks for help

    1. Hi,

      Are you using SKU tool to add SKUs for existing products, or are you adding SKU automatically, when adding new product? If it’s the latter – you should enable “Delay SKU generation till product is published” checkbox in plugin settings, so SKU won’t be added too early, when variations are not yet created.

      Hope that helps.

      Best regards,

    2. Hi,
      I try your tips (Delay SKU Generation) but the problem remains.
      Some product don’t have SKU on te variant with letter prefix.
      All The products are created with the same process.

      Your plugin seem not compliant with variant usage.

      Olivier M.

  13. I use Toolset to manage custom fields etc on my site and need to use a couple of these custom fields to generate the SKU for products. Is your plugin compatible with this functionality.
    Many thanks

  14. Hi Tom,

    A client is using this plugin on their store and in our testing it appears to prevent a search query such as “?s=search&post_type=product” from working properly (where search = the search term”. Our goal is to use the Shop archive layout to display the store search results and it comes back with: “No products were found matching your selection.” Without the plugin activated the search works as expected.

    Testing: SKU Generator for WooCommerce Pro v1.2.1 on WooCommerce 3.3.5 with WordPress 4.9.5

    Could you have a look and see if it is something that could be patched.


    1. Hi Justin,

      I will have to re-check that, but for a start – if it’s enabled, could you please try disabling “Search by SKU” checkbox in plugin’s settings (in “WooCommerce > Settings > SKU > General”), and let me know if that fixes the issue?

      Best regards,

    2. Hi Tom,

      Thanks for your quick reply! I’ve disabled the “Search by SKU” setting and that does it. Search is working normally with the plugin enabled, thanks!

      Best Regards,

  15. is this plugin is maintained and will be future updates in case of woocommerce future compatibility issue exist? i would like to give support by purchasing this pro version

    1. Hi Mohamad,

      Yes, the plugin is supported. If you notice any issues on future WooCommerce updates – please let us know and we’ll try to fix it as soon as possible.

      Hope that helps. Please let me know if you have any more questions.

      Best regards,

  16. Hello,

    I am testing this plugin ( free version at this time ). I noticed that when I set a prefix/suffix for a category, this takes the first category. In my case, most of the products are part of different categories. Is there any possibility that the prefix/suffix used for generate the SKU takes the Primary Category?

    Is this a PRO option? If is, I will buy the plugin for sure.


    1. Hi Diego,

      Thanks for the idea. Unfortunately at the moment even Pro version will always take first category. Hopefully this will be easily fixable – please five me 1-2 days to release new plugin version with this option added.

      Best regards,

    2. Hi Tom,
      Thank you for the reply.
      I found a way to the plugin take my primary category first that is add numbers at the begining of the category ( also did thid with the tags ) doing this, my primary category always appear first, but this is not a real solution.
      If you can add the possibility to choose which category show first/Second and so on, also in case of the Tags, I think the plugin will be more helpful.
      I am using right now with this “customization “ and it works really well.

  17. Hello, I purchased the plugin and I’d like tu use the category prefix.
    I’ve set a prefix for every category and using a sequential number generation.
    I have this template: {category_prefix}00{sku_number}
    But instead of “AB0012345”, I have “0012345”, the category prefix doesn’t show up.
    Can you please explain what to do?
    Thank you very much!

    1. Hi Kharlo,

      Does this problem occur when you add new product or when you are using “SKU Regenerator” tool?

      Best regards,

    2. Hello Tom,
      It occurs when I add a new product. I don’t want to regenerate SKUs because I need to keep the existing ones.

    3. Excuse me Tom,
      I don’t understand what is the problem. It’s not a secondary function not working here, it’s the reason why I have purchased the payed version of the plugin. I’m still waiting for support.
      If you can’t support me, can you please tell me how the refund policy works?
      Thank you very much, best regards

    4. Hi Kharlo,

      We’ve released new version 1.2.1 today, which should solve the issue with new products not getting category prefix.

      Now in plugin’s “General” settings (in “WooCommerce > Settings > SKU > General”) in “More Options” section, we’ve added “Delay SKU generation till product is published” checkbox. When it is enabled, SKU is not created until you publish the product, so you have time to set category, so prefix is generated correctly.

      Best regards,

    5. This still doesn’t work for me. Kharlo, any luck?

Leave a Reply

Your email address will not be published. Required fields are marked *


1.5.0 - 2021-01-20

  • NEW: add support for Yoast primary categories.
  • NEW: add product attributes as option for variation suffix (thanks to Joseph VanTine).
  • FIX: issues when using Search by SKU "pre_get_posts" algorithm.
  • FIX: minor display bug on settings page, also clarify settings page wording a little.
  • UPDATE: updated .pot file for translations.

1.4.3 - 2020-09-17

  • UPDATE: bump tested versions

1.4.2 - 2020-08-25

  • UPDATE: updated .pot file for translations.
  • UPDATE: updated updater.

1.4.1 - 2020-07-24

  • FIX: issue with variations always being assigned same SKU as parent product, when inserting new product.
  • UPDATE: display our settings in WC status report. - 2020-06-16

  • FIX: Possible plugin conflict.

1.4.0 - 2020-06-08

  • NEW: add "Generate SKUs for Variations" option to variations bulk action dropdown.
  • NEW: add new settings to customize variation suffix -- now has option to be "letters" OR "numbers". (Previously it was always "letters".)
  • NEW: allow forcing uppercase letters in SKU templates.
  • FIX: proper handling of variation suffix when set to "letters" and product has more than 26 variations.
  • FIX: show correct "old SKU" for variations in bulk regenerator tool preview.
  • UPDATE: reorder columns in previews (show Old SKU on the left, New SKU on the right).
  • UPDATE: updated .pot file for translations.

1.3.3 - 2019-12-17

  • UPDATE: bump tested versions

1.3.2 - 2019-11-15

  • UPDATE: bump tested versions

1.3.1 - 2019-09-14

  • UPDATE: bump tested upto versions

1.3.0 - 2018-10-21

  • NEW: implement software licensing system; allows for one-click updates of the Premium version
  • UPDATE: updated .pot file for translations

1.2.5 - 2018-09-20

  • Dev - General - {category_slug}, {category_name}, {tag_slug} and {tag_name} replaced values added.
  • Dev - General - Template - Admin settings field now accepts "raw" input.
  • Dev - Tool - Minor restyling.

1.2.4 - 2018-09-10

  • Dev - "Contributors" and "Author URI" updated.

1.2.3 - 2018-08-25

  • Fix - version_updated() function fixed.

1.2.2 - 2018-08-23

  • Fix - "Search by SKU" option fixed (and "Search by SKU: Algorithm" option added to "General > More Options > Search by SKU").
  • Dev - "Sequential numbering on per category basis" option added.
  • Dev - "WC tested up to" added to plugin header.
  • Dev - General - More Options - Automatically generate SKU for new products - "Delay SKU generation till product is published" option default set to "yes".
  • Dev - Code refactoring.
  • Dev - Admin settings restyled.
  • Dev - Plugin URI updated.

1.2.1 - 2017-12-06

  • Dev - General - WooCommerce v3.2.0 compatibility - select type in admin settings fixed.
  • Dev - General - "Delay SKU generation till product is published" option added.
  • Dev - General - Admin settings minor restyling.
  • Dev - Saving settings array as main class property.

1.2.0 - 2017-04-18

  • Dev - WooCommerce v3.0.0 compatibility - get_child() replaced with wc_get_product().
  • Dev - "Template" option added.
  • Dev - "Pseudorandom - Hash (max 10 digits)" option added to "Number Generation".
  • Dev - "Generate SKUs Only for Products with Empty SKU" option added.
  • Dev - "Categories Options" section added.
  • Dev - "Tags Options" section added.
  • Dev - "Search by SKU" option added.
  • Dev - "Add SKU to Customer Emails" option added.
  • Dev - "Automatically Generate SKU for New Products" option added.
  • Dev - "Reset Section Settings" option added.
  • Dev - WP_Query optimized to return ids only.
  • Tweak - Plugin link updated from coder.fm to wpcodefactory.com.
  • Tweak - general section cleanup.
  • Tweak - Default values added to all get_option() calls.
  • Tweak - Filter rewritten.

1.1.3 - 2016-12-21

  • Fix - load_plugin_textdomain() moved from init hook to constructor.
  • Fix - Generating SKU on "duplicate product" action.
  • Dev - Language (POT) file updated.

1.1.2 - 2016-08-21

  • Dev - "Allow duplicate SKUs" option added.
  • Dev - Version system added.
  • Tweak - Plugin renamed.
  • Tweak - Contributors changed.
  • Tweak - Option filter added.

1.1.1 - 2016-06-13

  • Dev - get_available_variations replaced with get_all_variations.
  • Dev - SKU Regenerator tool - No auto preview after generation.

1.1.0 - 2016-06-10

  • Dev - Sequential SKU number format option added.
  • Dev - Language (POT) file added.
  • Dev - Multisite support added.
  • Dev - Description added to "SKU Format Options".

1.0.0 - 2015-08-06

  • Initial Release.

Free version

This plugin is a premium version of free "SKU Generator for WooCommerce" plugin.

Installation and Updates

  • Buy the plugin 🙂
  • Download plugin's zip to your computer (you will receive an email with download link, or you can always download the plugin from your account).
  • Go to "Admin Dashboard > Plugins > Add New > Upload Plugin" and browse for downloaded zip file.
  • If plugin is successfully installed - you should see it added to the Plugins list.
  • To keep WPFactory items up to date, please install WPFactory Helper plugin and enter your site key.


We want to ensure that you are 100% happy with your purchase, so if you feel the product(s) you purchased are not the best fit for your requirements and you attempted to resolve issues with product's author, we are offering 30 day money back guarantee refund policy.