Sale! Bestseller Perfect rating

SKU Generator for WooCommerce

(1 customer review)

From: $19.99 / year

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

Clear

Description

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
Prefix
Default: None
Minimum number length
Default: 0
Suffix
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
Template
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.
Default:
{category_prefix}{tag_prefix}{prefix}{sku_number}{suffix}{tag_suffix}{category_suffix}{variation_suffix}
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

Enable/Disable
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

Enable/Disable
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. Bennett

    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 *

36 thoughts on "SKU Generator for WooCommerce"

  1. 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

  2. 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.

  3. 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.

  4. 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!

    Settings:
    Sequential
    Delay Till Published
    Category Prefix

  5. 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.

    thanks

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

    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”).

  7. 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.

  8. 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.

  9. 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).

  10. 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,
      Tom

    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.

      Regards.
      Olivier M.
      LOGICASH

  11. 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

  12. 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.

    Thanks!
    Justin

    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,
      Tom

    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,
      Justin

  13. 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,
      Tom

  14. 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.

    Best

    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,
      Tom

    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.
      Best!
      Diego

  15. 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,
      Tom

    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.
      Thanks

    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,
      Tom

    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 *

Changelog

1.2.5 - 20/09/2018

  • 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 - 10/09/2018

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

1.2.3 - 25/08/2018

  • Fix - version_updated() function fixed.

1.2.2 - 23/08/2018

  • 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 - 06/12/2017

  • 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 - 18/04/2017

  • 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 - 21/12/2016

  • 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 - 21/08/2016

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

1.1.1 - 13/06/2016

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

1.1.0 - 10/06/2016

  • 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 - 06/08/2015

  • Initial Release.

Free version

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

Prices & Licenses

Single siteUnlimited sites
1 year[buy] $19.99 / year[buy] $49.99 $29.99 / year
Lifetime[buy] $49.99 $39.99[buy] $99.99 $59.99

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.

Refunds

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.