Installation
↑ Back to top- Download the .zip file from your WooCommerce account.
- Go to: WordPress Admin > Plugins > Add New and Upload Plugin. Select Choose File for the file you have downloaded.
- Click Install Now and Activate Plugin.
More information is available at Install and Activate Plugins/Extensions.
Setup and Configuration
↑ Back to topAfter activation of the Bulk SKU Generator, navigate to the extension rules from WP Admin > WooCommerce > SKU Generator and access extension general settings from WooCommerce > Settings > Bulk SKU Generator tab.
Creating New SKU Generation Rule
↑ Back to topCreating SKU Generator rules is easy to manage by navigating to WooCommerce > SKU Generator. By clicking on it, you will find the complete “Log” of the SKU Generator in detail. Here, you can create new rules and manage all the rules created before with some options like:
- Create new rules
- Edit Existing Rules
- Implement Bulk Actions
- Filter Products by Dates
- Search Rules in the Log
While creating new rule you can customize following options:
Add Title:
↑ Back to topEnter a specific title for the “SKU rule” while creating a new rule.
SKU Generation Type:
↑ Back to topAfter creating a unique title for SKU Generator, you’ll find the following options:
Replace SKUs: Enable this option if you want to replace existing SKUs with the newly generated SKUs.
- If you choose to enable this option, existing SKUs will be overwritten with generated ones, but SKUs will remain unchanged if you do not opt for this option. If the product does not already have an SKU, this rule type will not add new SKU for that product. It will replace SKUs on product which already have an SKU.
Additional SKUs: Enable this setting to add generated SKUs as additional SKUs rather than replacing existing ones.
- If you choose this option, new SKUs will be added as additional identifiers. This rule type will also add new SKU if the product does not already have an SKU.
Products with No SKUs: Enable this option to generate SKUs only for products without existing SKUs.
- The SKUs will be generated only for products currently without an SKU. This comes in handy when you want to generate new SKUs for only for products with No SKU. If the product already has an SKU, this rule won’t add new SKU for that particular product.
Apply rule to upcoming products:
Select this checkbox, if you want to apply this rule settings to upcoming products as well. If you content team does not add SKU while creating new product or they alway make mistakes, you can automatically update their SKU based on this rule settings as soon as the product is publish.
SKU Format Options:
↑ Back to topYou can easily define the format for generated SKUs from the following settings:
SKU Length: Enter SKU length to set the desired length for the generated SKU (e.g., eight characters).
Product SKU Format: Set the format for product SKUs by using different variables. You can also add custom text anywhere in SKU field along with the following variables to generate product specific SKUs.
- {curr_sku} – Works with replace SKU rule only.
- {prod_id} – Gets the product ID.
- {prod_slug} – Gets product url
- {prod_name} – Gets product name
- {parent_cat_slug} – Extension will print parent category name. It will add first category incase a product has multiple parent categories
- {child_cat_slug} – Extension will print child category name. It will add first category incase a product has multiple child categories
- {parent_cat_slug=X} – X is the parent category slug to match the exact category and extension will print parent category name instead of slug.
- {child_cat_slug=X} – X is the child category slug to match the exact category and extension will print child category name instead of slug.
- {tag_slug} – Add first tag incase a product has multiple tags
- {tag_slug=X} – X is the tag slug to match. Once matched the extension will print tag name instead of slug.
- {prod_attr_slug=X} – X is the attribute slug to match. Once matched the extension will print attribute name instead of slug.
- {prod_attr_term_slug=X} – X is the term slug to match. Once matched the extension will print term name instead of slug.
Variation SKU Format: Enable this setting to generate SKUs for variable products using the following additional variables:
- {variation_name} – Adds the name of the default variation
- {variation_id} – Adds the variation ID
Product Restrictions Settings
↑ Back to topApply on All Products:
Enable this setting if you want to apply SKU generation rule to all products.
Apply on specific products by categories, tags and attributes:
Apply SKU rule to selective products by specific categories, tags or attributes. This provides you a control to create multiple rules and set different SKU format for different types of products.
Configure Settings:
↑ Back to topIn WooCommerce > Settings > click SKU Generator and configure the General Settings. You can easily manage SKU behavior for customer-facing features and system automation.
General Settings:
↑ Back to topSearch by SKU on Frontend: Enable this to allow customers to search products by SKU directly on the front end.
- The SKU search will be available on the front end. If you choose not to leave this option, the SKU search will be turned off on the store.
Add SKU to Customer Emails: Enable this to include SKUs in customer emails for easier order management.
- SKUs will appear in customer emails; choosing to leave this option will result in SKUs won’t be included in emails unless you have template customized to include this otherwise.
Variables Placeholders:
You can add custom placeholders for variables while generating SKUs. Forexample, if you have added {tag_slug} variable in SKU format, the extension will not adding anything if the variable returned value is empty i.e the product has no tag. Alternatively, you can add custom place holder in the following fields to add that placeholder if the value of any of these variables is empty.
Cronjob Settings:
↑ Back to topEnable Cron Job: Enable a cron job to periodically generate SKUs automatically at set intervals.
- The Cron job will run at specified intervals, but leaving this option will not allow automatic SKU generation to occur.
Add Intervals: For SKU generation frequency, set the cron job interval by choosing a Minute, Hour, or day.
Currently Applying: The extension lists the rules that are currently applying. Since the extension uses cronjob to apply SKUs gradually to avoid loading your server. You can click to view the products list where the rule is applying.