Easy Woocommerce Auto Sku Generator

plugin banner

A very simple plug-in of auto-generating SKU for those who are too lazy to fill in the article (SKU) of the product when it is created.

Author:Dan Zakirov (profile at wordpress.org)
WordPress version required:4.8
WordPress version tested:6.4.3
Plugin version:1.2.0
Added to WordPress repository:21-05-2019
Last updated:09-02-2024
Rating, %:98
Rated by:236
Plugin URI:https://wordpress.org/plugins/easy-woocommerc...
Total downloads:138 392
Active installs:10 000+
plugin download
Click to start download

A very simple plug-in of auto-generating SKU for those who are too lazy to fill in the article (SKU) of the product when it is created. Just activate the plugin and when creating a product the SKU will automatically generate.

In the last update of the plugin, a new function was added – Generation of SKU into separate categories.

The new version of the plugin adds the function of mass generating SKU of all products at the same time. We will improve this option. In the future, not only mass generation will be available, but also generation for certain parameters (generation by attributes, by tags, by categories).

Settings plugin

Woocommerce → Settings → Products → SKU Settings

Features:

  1. Automatic generation of SKU when creating products.
  2. If an SKU is already registered, generation will not occur again.
  3. Automatic generation of SKU for variable products upon saving.
  4. Ability to set the number of characters in the SKU.
  5. Option to add a prefix before the SKU.
  6. Choose SKU format (Numbers only, Letters only, Alphanumeric, Product Template-based).
  7. Option to use the product ID in the SKU.
  8. Disable/Enable SKU generation for variable products.
  9. Special option “Use Previous Product” – generates a product considering the last published product. For instance, if the last published product has SKU 005234 and this option is enabled, the next item will have SKU 005235 (+1 from the previous published product).
  10. Added and ready-to-use function: “Bulk generate SKU for all products.”
  11. Added and ready-to-use new function: “Bulk generate SKU by Category.”
  12. Option to allow duplicate SKUs in the online store.
  13. Added “SKU suffix” option.
  14. Added “Additional number” option.
  15. Added “Format for Additional number” option.
  16. Added “SKU suffix” option.
  17. Added 2 formats for generating last numbers.
  18. Added a setting for additional options in generating variant products.
  19. Added a setting for the separator in variant products when generating SKUs.

Required Plugins

The “Easy Auto SKU Generator for WooCommerce” plugin is fully dependent on the WooCommerce plugin and utilizes its API for SKU generation. This integration enables seamless SKU creation and management within your WooCommerce-powered online store.

How the plugin works

The essence of our plugin unfolds through its dual functionality, operating in two distinctive modes. Firstly, it facilitates seamless SKU generation during the creation and editing of products. Secondly, it offers a robust feature for bulk SKU generation, streamlining your workflow. This plugin harnesses the potential of the custom field “_sku” and dynamically populates this field based on the plugin’s settings.

Each of these settings will be elaborated upon in the subsequent sections, providing you with a comprehensive understanding of how the plugin operates and optimizes your SKU management process.

At our core, we’re here to simplify your plugin experience. Often, right after you install the plugin, you might want to dive into using it for creating or editing products. In this scenario, if you haven’t made changes to the settings yet, the plugin will automatically generate SKUs based on random values.

However, if you’re aiming for more precise SKU generation, we recommend saving your chosen settings right after installing the plugin. This action not only lets you establish a consistent character count but also solidifies your SKU structure.

Plugin Option: Characters

Introducing the transformative capabilities of the “Characters” configuration – your inaugural step towards SKU customization. This foundational setting empowers you to define the exact quantity of characters that will grace your SKUs. As a pivotal determinant, “Characters” enables you to strike the ideal balance between concise representation and informative tagging.

In certain instances, the character count might expand, particularly in light of the plugin’s supplementary options that can introduce elements like product IDs or customized prefixes and suffixes. It’s noteworthy that the “Characters” parameter stands at the core of generating a diverse array of SKU combinations, instilling each product with its own unique identity.

Plugin Option: Prefix SKU

With this capability, you have the freedom to insert a unique prefix that will be showcased at the outset of your SKU. It’s like adding a personal touch to your product codes!

Imagine your SKU transforming into a distinct code, effortlessly carrying your brand’s identity. For instance, you could enter something like “BN_” and watch it seamlessly blend with the generated SKU. Let’s say your product code was “893267” – together, they create a powerful combination like “BN_893267.”

This personalized touch not only adds a professional flair to your products but also makes managing and categorizing items a breeze.

Plugin Option: Select SKU format

Introducing the “Select SKU Format” option – your gateway to product code personalization. With four distinct choices at your fingertips, you’re invited to infuse character into your SKUs. Choose between letters, numbers, a seamless fusion of both, or even embrace your product’s unique essence through its slug, as illustrated by the example “your-product.”

Imagine the possibilities: from the elegant simplicity of “KSZHGD” or “893267” to the captivating complexity of “7SZ4G2.” And here’s the twist – when you opt for the product slug format, the previously mentioned “Characters” setting takes a back seat.

Plugin Option: Add product ID

Introducing the “Add product ID” option – a game-changer in SKU personalization. When you choose to activate this feature, a product’s unique ID seamlessly joins forces with its SKU, creating a dynamic duo of identification.

Here’s the twist: if you opt for this integration, the previously set “Characters” count takes a backseat. The product’s inherent ID length shapes the SKU’s character count, ensuring a harmonious blend of precision and practicality.

Imagine the efficiency of SKU “893267” paired with its corresponding product ID. This option not only streamlines your inventory management but also offers a new level of traceability for each item.

Plugin Option: Take previous product

Embark on an innovative journey with the “Take previous product” option – an experimental feature tailored to cater to the unique needs of a select user base. This function takes into account the SKU of the last published product, seamlessly guiding the generation of the SKU for the next product in line.

Please note: As an experimental feature, “Take previous product” is specifically designed for individual use cases. It is important to highlight that this option applies solely during the creation or editing of individual products. It is not applicable to the bulk generation of SKUs.

Plugin Option: Duplicate SKUs

Unveil a new level of operational efficiency with the “Duplicate SKUs” feature – an astute solution crafted to streamline your processes and prevent inadvertent errors. This capability provides you the flexibility to assign identical SKUs, offering a practical approach to instances where the same SKU is applicable across multiple products.

By activating this feature, you open the door to a smoother operational landscape. Imagine a scenario where the same SKU effortlessly serves diverse products, saving you valuable time while minimizing the risk of oversights.

Embrace the power of “Duplicate SKUs” – a tool designed to harmonize practicality and productivity. Consider implementing this option, particularly when your inventory encompasses a multitude of items, and you’re planning a bulk SKU generation.

Plugin Option: SKU suffix

Introducing the “SKU suffix” option – your personal touch to wrap up your SKU creation journey. This feature grants you the creative freedom to append a distinct suffix to the end of each SKU, infusing your products with an extra layer of identity.

Visualize this: your SKU blossoming into a unique code, like the elegant “BN_893267_SUF_.” This extra touch brings an unmistakable mark to your products, making them stand out in the digital landscape.

It’s important to note that currently, the “SKU suffix” option is available exclusively during bulk SKU generation. However, we’re excited to share that its capabilities will soon extend to individual product creation and editing, offering even more versatility in your SKU customization journey.

Plugin Option: Additional number

Embark on a journey of SKU personalization, guided by the dynamic “Additional number” feature. This ingenious tool, currently operational during bulk SKU generation, introduces a numeric sequence at the end of your SKU codes, incrementing by +1 with each step.

Imagine this transformation: your SKU evolving into a sequence-rich identifier, such as “BN_893267-001” progressing to “BN_893267-002.” This visual narrative imparts a distinctive identity to each product in your inventory.

However, the possibilities don’t end there. By incorporating a leading zero (0), you unlock two distinct formatting pathways:

  • For example: 008 → 009 → 0010 → 0011
  • Alternatively: 008 → 009 → 010 → 011

As you navigate the potential of the “Additional number” feature, remember its seamless compatibility with “SKU Suffix.” Merging an evolving numeric sequence with a signature suffix creates a potent formula for SKU codes that seamlessly embody your brand identity.

While “Additional number” currently thrives within the mass SKU generator, we’re excited to share that its reach will soon extend to individual product creation and editing. This impending expansion allows you to infuse your SKUs with character and progression, regardless of scale.

Plugin Option: Enable variant settings

The “Enable Variant Settings” option opens up a world of additional possibilities for SKU customization. With this feature activated, you gain access to two more options:

  • “Variable Product:” This empowers you to control the creation of variant SKUs. You can choose whether or not to generate SKUs for your variable products.
  • “Variation Separator:” You have the freedom to define a separator character, such as “/”, “”, “|”, “-“, “–“, “.”, “&”, “#”, “$”, “@”, or even a special prefix like “var”. This separator enhances the organization and structure of your SKU variations.

Currently, variant products are generated sequentially based on the main SKU, resulting in patterns like 893267-01, 893267-02, 893267-03. However, rest assured that we’re diligently working to expand the functionality of variant SKU generation. Exciting changes are on the horizon, offering you even more versatile options for SKU customization.

Bulk SKU Generation: Unleash Efficiency and Precision

Experience the power of effortless SKU management with our Bulk SKU Generation feature. Now, you have two dynamic options at your disposal:

  • Bulk Generate SKU for All Products: Seamlessly generate SKUs for your entire product catalog in one swift action.
  • Bulk Generate SKU by Category: Tailor your SKU generation to specific categories, allowing for a more targeted approach.

Both variants of bulk SKU generation operate in harmony with your plugin settings. Simply configure your preferences, save the settings, and watch as the SKUs come to life. But there’s more to explore!

As you engage the SKU generation process, you’ll encounter the “Re-create existing SKUs?” option. When selected, this option recreates all SKUs, ensuring a comprehensive update. If left unselected, only missing SKUs will be generated, preserving existing codes.

In the “Bulk Generate SKU by Category” generator, you’ll find a comprehensive selection of categories. This empowers you to fine-tune SKU generation for specific sets of products. For those seeking enhanced category options, here’s a strategic approach:

  1. Choose your settings.
  2. Save your preferences.
  3. Generate SKUs for one category.
  4. Modify settings.
  5. Generate SKUs for another category.

Unleash the potential of Bulk SKU Generation and streamline your inventory management with precision. For inquiries or to delve deeper, please reach out to our dedicated support form on our website.

Great thanks

Translations

If you wish to help translate this plugin, you are most welcome!
To contribute, please visit translate.wordpress.org

Small Gifts, Big Impact: Support Plugin Growth with Your Donations

Thank you all for your incredible support – it truly fuels my motivation to continuously enhance our plugins! Every bit of encouragement and feedback means the world to me. Your insights help shape the future of our WordPress tools, driving them to be even more powerful and user-friendly.

Remember, a single review from you has an immense impact on the journey of our creations. Your words inspire me to refine and innovate, and I’m dedicated to delivering the best possible experiences through every line of code.

If you’d like to contribute further or show your appreciation, you can now do so through this new donation link: Boosty Donation Link. Your generosity will undoubtedly make a difference in pushing our WordPress projects to new heights.

Thank you for being a vital part of this incredible journey! ????????

Elevate Your Experience: Paid User Support and Subscription

Due to the lack of available time for free plugin support, a decision has been made to introduce paid user support. Throughout my years of experience in web development, I have accumulated enough expertise to assist other users with various inquiries.

By subscribing to Dan Zakirov’s blog on Boosty at boosty.to/dan-zakirov, you’ll not only gain access to paid support for the “Easy Auto SKU Generator for WooCommerce” plugin but also a comprehensive range of consultations related to WooCommerce. Over the years, I have amassed numerous ready-made solutions, a variety of other plugins, and WordPress templates covering different aspects of WooCommerce and beyond.

Additionally, the blog will feature interesting articles and reviews on different plugins. If you provide an original idea, I will strive to develop an entire plugin, and together we can work on advancing specific directions.


Screenshots
FAQ
ChangeLog