Sale!

SKU Generator for WooCommerce

Rated 5.00 out of 5 based on 1 customer rating
(1 customer review)

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

Clear
Author: WP Wham SKU: N/A Category: Tags: , Version: 1.2.5; Last updated: 4 days ago; Requires WordPress version: 4.4; Tested up to: 4.9

Description

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

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

Prices & Licenses

Single siteUnlimited sites
1 year$19.99$49.99 $29.99
Lifetime$49.99 $39.99$99.99 $59.99

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 our support staff, we are offering 30 day money back guarantee refund policy.

1 review for SKU Generator for WooCommerce

  1. Rated 5 out of 5

    Bennett

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

Add a review

29 thoughts on "SKU Generator for WooCommerce"

  1. kharlo November 27, 2017 at 8:20 am #

    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!

    Reply

    • Tom Anbinder November 27, 2017 at 5:43 pm #

      Hi Kharlo,

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

      Best regards,
      Tom

      Reply

      • kharlo November 27, 2017 at 8:42 pm #

        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

        Reply

      • kharlo December 1, 2017 at 11:22 am #

        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

        Reply

        • Tom Anbinder December 6, 2017 at 6:06 pm #

          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

          Reply

          • studiosight December 15, 2017 at 4:12 pm #

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

  2. Diego December 26, 2017 at 12:35 pm #

    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

    Reply

    • Tom Anbinder December 30, 2017 at 12:47 am #

      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

      Reply

      • Diego December 30, 2017 at 8:33 am #

        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

        Reply

  3. mohamad April 7, 2018 at 8:24 am #

    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

    Reply

    • Tom Anbinder April 7, 2018 at 4:25 pm #

      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

      Reply

  4. Justin April 12, 2018 at 4:44 pm #

    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

    Reply

    • Tom Anbinder April 13, 2018 at 12:49 pm #

      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

      Reply

      • Justin April 13, 2018 at 1:20 pm #

        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

        Reply

  5. Chris April 16, 2018 at 8:03 am #

    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

    Reply

  6. logicash June 27, 2018 at 8:26 am #

    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

    Reply

    • Tom Anbinder June 28, 2018 at 3:23 pm #

      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

      Reply

      • Olivier MATHIEU July 28, 2018 at 1:14 pm #

        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

        Reply

  7. lokesh kumar August 2, 2018 at 6:44 am #

    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 !

    Reply

    • Tom Anbinder August 23, 2018 at 12:08 am #

      Hi,

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

      Reply

  8. Bjorn Olander September 18, 2018 at 10:59 pm #

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

    Reply

    • WP Wham September 19, 2018 at 1:12 pm #

      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.

      Reply

  9. Bjorn Olander September 19, 2018 at 1:46 pm #

    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.

    Reply

    • WP Wham September 19, 2018 at 9:47 pm #

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

      Reply

      • Bjorn Olander September 20, 2018 at 11:45 am #

        sounds awesome, thanks 😉

        Reply

        • WP Wham September 20, 2018 at 12:30 pm #

          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.

          Reply

          • Bjorn Olander September 20, 2018 at 1:38 pm #

            Thanks for the great support, it work perfect 🙂

          • WP Wham September 23, 2018 at 2:28 pm #

            Hi Bjorn,

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

  10. neharika September 24, 2018 at 11:01 am #

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

    Reply

Leave a Reply

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.

Installation

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

Updates

To keep WPCodeFactory items up to date, please install WPCodeFactory Helper plugin and enter your site key.