Drupal is a registered trademark of Dries Buytaert
Search API Solr 4.3.13 Minor update available for module search_api_solr (4.3.13). Search API Solr 4.3.12 Minor update available for module search_api_solr (4.3.12). smart 404 1.1.3 Minor update available for module smart_404 (1.1.3). smart 404 1.1.2 Minor update available for module smart_404 (1.1.2). IntelligenceBank DAM Connector 4.1.4 Minor update available for module intelligencebank (4.1.4). IntelligenceBank DAM Connector 5.2.3 Minor update available for module intelligencebank (5.2.3). Soccerbet 1.1.14 Minor update available for module soccerbet (1.1.14). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Ultimate Cron Summary 2.0.0 Major update available for module ultimate_cron_summary (2.0.0). Content Translation Redirect Module content_translation_redirect crossed 1,000 active installs.

This module automatically generates SKUs for Drupal Commerce products. You can configure patterns using tokens to create SKUs based on product fields, such as title or custom fields.

Commerce AutoSKU allows administrators to generate SKU's for Drupal Commerce products automatically. Using tokens, the SKU can be generated based on the value of arbitrary product fields such as title, author, or any custom fields you have added. Additional sitewide tokens are available when the Token module is enabled.

Use Cases:

  • You don't use the SKU field for anything important, and would prefer not to be required to fill it in each time you create a product.
  • You want the SKU field to follow a rigid predefined structure. An example would be SKUs like "LARGE-RED-TEE" which would be generated from a pattern such as
    [commerce-product:field_size]-[commerce-product:field_color]-[commerce-product:title]

Configuration/Setup

Once the module is enabled, you can configure the SKU pattern used for each of your product types on the main product type edit form (admin/commerce/products/types/product, for the basic "product" type). It is reccomended that you use the Token module to help with token entry, but it is not strictly required.

If you decide to use the [product:product-id] token, you should be aware that this will cause any new products to be saved twice. This shouldn't be an issue for most people, but if you have rules in place for when a product is saved, you may not want to use this token.

This module was featured on Commerce Module Tuesday. Check out this screencast to see a demonstration on how to set it up.

Activity

Total releases
3
First release
Jun 2026
Latest release
3 weeks ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
3.0.0 Stable Jun 26, 2026
3.0.x-dev Dev Jun 26, 2026
3.0.0-rc1 Pre-release Jun 3, 2026