Kung Woo Auto Sku for WooCommerce

Plugin Banner

Kung Woo Auto Sku for WooCommerce

by kungwoopanda

Download
Description

Kung Woo Auto Sku for WooCommerce is a lightweight and efficient tool designed to save you time by automatically managing your product SKUs.

Whenever you create or save a product (or product variation), the plugin checks if the SKU field is empty. If it is, the plugin automatically generates a unique SKU based on the product ID. You can fully customize the generated SKUs with custom prefixes and leading zeros.

Main Features

  • Automatic SKU Generation: Automatically assigns the Product ID (or Variation ID) as the SKU upon saving.
  • Bulk Generation: A powerful AJAX-based bulk tool to generate SKUs for all existing products and variations in your store with a single click. Safe for large stores!
  • Custom Prefix: Add any string before the ID (e.g., SKU-1234).
  • Leading Zeros: Define a minimum length for your SKUs. The plugin will automatically pad the ID with leading zeros (e.g., ID 12 becomes SKU-0012).
  • Read-Only Protection: Lock the SKU field on the WooCommerce product edit screen to prevent accidental manual edits of auto-generated SKUs.
  • Overwrite Mode (New!): Force the plugin to overwrite existing custom SKUs with your new, standardized auto-generated format during bulk generation or product saving.

This plugin is designed with performance in mind and strictly follows WordPress and WooCommerce coding standards.

  1. Ensure that WooCommerce is installed and activated.
  2. Upload the kung-woo-auto-sku-for-woocommerce folder to the /wp-content/plugins/ directory, or install the plugin directly through the WordPress plugins screen.
  3. Activate the plugin through the ‘Plugins’ screen in WordPress.
  4. Navigate to WooCommerce > Auto SKU to configure your prefix, leading zeros, and other preferences.
  5. (Optional) Use the Bulk Actions section to generate SKUs for existing products.
  1. Plugin settings page and Bulk Generation tool.

    Plugin settings page and Bulk Generation tool.

  2. The WooCommerce product edit screen showing the read-only protected SKU field.

    The WooCommerce product edit screen showing the read-only protected SKU field.

Does it work with variable products?

Yes! The plugin fully supports variable products and will automatically generate a unique SKU for every single variation based on its specific Variation ID.

Can I use it on an existing store with thousands of products?

Absolutely. The Bulk Generation tool uses AJAX to process products in small batches (50 at a time), ensuring your server does not crash or time out, regardless of how many products you have.

What if I already have SKUs, but I want to standardize them?

You can enable the “Overwrite Existing SKUs” option in the settings. When you run the Bulk Generation tool, it will replace all your current SKUs with the new auto-generated format. Please use this feature with caution.

Why is the SKU field greyed out?

If the “Read-Only SKU Field” option is enabled in the settings, manual editing of the SKU field is blocked to maintain consistency in your SKU formatting. You can turn this off in the settings at any time.

1.2.0

  • Feature: Added “Overwrite Existing SKUs” option for strict standardizing of all store SKUs.
  • Enhancement: Improved bulk generation AJAX logic with better pagination support for the overwrite mode.

1.1.0

  • Tweak: Renamed plugin to comply with trademark guidelines (clarified integration with WooCommerce).
  • Fix: Enqueued all JavaScript properly using WordPress standard hooks (admin_enqueue_scripts) instead of inline tags.
  • Enhancement: Added Requires Plugins: woocommerce dependency header.

1.0.0

  • Initial release.
Back to top