前言介紹
- 這款 WordPress 外掛「Product SKU Generator for WooCommerce」是 2014-04-12 上架。
- 目前有 9000 個安裝啟用數。
- 上一次更新是 2025-04-22,距離現在已有 11 天。
- 外掛最低要求 WordPress 5.6 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
- 有 20 人給過評分。
- 論壇上目前有 2 個提問,問題解答率 100% ,不低,算是個很有心解決問題的開發者團隊了!
外掛協作開發者
外掛標籤
sku | product sku | woocommerce | sku generator |
內容簡介
需要:WooCommerce 3.9.4 或更新版本
當產品被發布或更新時,自動為父物品、單一產品、變體產品以及兩者產生 SKU。
重要提示:當SKU被該外掛生成時,SKU欄位將會被禁用。如果你在生成 SKU 時更新產品,你自己之前創建的 SKU 將被覆蓋,並且如果您改變產品簡短名稱時,SKU 也會改變 (當使用該外掛生成SKU時)。請確認您希望全自動特徵時啟用此外掛。
如果您不想覆蓋現有的 SKU,您也可以選擇性啟用和禁用該外掛。使用產品文檔進行幫助。
自動產生的 SKU
簡單、外部或父物品的 SKU 可以從產品的簡短名稱 (破折號分隔的名稱) 或ID產生。例如,簡短名稱為wp-tee-shirt的產品可以擁有SKUwp-tee-shirt或192 (產品的ID是什麼就是什麼)。此 SKU 將於產品發佈或更新時自動生成。
如果產品是變體產品,該外掛也可以為變體產品生成 SKU (這些通常繼承父 SKU)。變體 SKU 可以為每個變體附加屬性簡稱或變體 ID 到父 SKU。
這裡有一些示例的不同 SKU 格式,可使用此外掛建立。
如果您不想讓該外掛生成 SKU,您也可以手動設置簡單/父親 SKU,或手動設置變體 SKU。
功能
此外掛提供以下選項:
當產品被發布或更新時,自動生成簡單/父產品 SKU
使用產品簡短名稱或 ID 生成簡單/父進品 SKU
當產品被發布或更新時,自動生成變體產品 SKU
使用屬性簡稱或變體 ID 產生變體產品 SKU
使用批量產品更新操作來更輕鬆地為多個產品強制生成 SKU — 方便為在安裝此外掛之前創建的產品批量生成 SKU
所有產品類型的 SKU
WooCommerce 產品 SKU 產生器可讓您確定哪些 SKU 應自動生成,以及這些 SKU 是否應使用產品簡短名稱或 ID。如果生成 SKU,該 SKU 的輸入將被禁用,因為您不能調整它。
如果您選擇不生成 SKU,則可以輸入自己的 SKU。例如,如果您僅生成變體 SKU,則可以輸入父產品 SKU。這將用作您生成的變體 SKU 的基礎,並會附加簡稱或 ID。
如果您只創建父親/簡單的 SKU,您將能夠手動創建自己的變體 SKU,因為這些將不會被保存或更新產品覆蓋。
批量更新
您可以批量為在安裝此外掛之前創建的產品添加 SKU。如果您選擇要更新的產品,然後批量編輯它們,您所要做的就是點擊“更新”。產品保存時,將為所有產品生成 SKU。
如果啟用了變體 SKU,此操作還將自動生成變體產品 SKU。
詳細信息
查看產品頁面以瞭解詳細情況和文檔
查看更多 SkyVerge 的
原文外掛簡介
Requires: WooCommerce 3.9.4 or newer
Automatically generate a SKU for parent / simple products, variations, or both when the product is published or updated.
IMPORTANT: The SKU field will be disabled for SKUs being generated by the plugin. Your own previously created SKUs will be overridden if you update a product while generating SKUs, and they will change if you change your product slug (while using this to generate them). Be sure you want to complete automate SKUs if you leave this enabled all of the time.
You can also selectively enable and disable the plugin if you don’t want to override existing SKUs when saving products. You can view product documentation for help.
Automated SKUs
SKUs for simple, external, or parent products can be generated from the product’s slug (hyphenated name) or ID. For example, a product with the slug wp-tee-shirt can have a SKU of wp-tee-shirt or 192 (whatever the product’s ID is). This SKU will be generated any time the product is published or updated.
If the product is a variable product, this plugin can also generate SKUs for the product variations if desired (these typically inherit the parent SKU). Variation SKUs can either append attribute slugs or variation IDs for each variation to the parent SKU.
Here are some samples of different SKU formats that can be created with this plugin.
You can also manually set simple / parent SKUs, or manually set the variation SKUs, if you don’t want the plugin to generate them for you.
Features
This plugin provides options to:
automatically generate simple / parent product SKUs when the product is published or updated
generate simple / parent product SKUs using the product slug or ID
automatically generate SKUs for product variations when the product is published or updated
generate variation SKUs using the attribute slugs or variation ID
use the bulk product update action to easily force SKU generation for more than one product — handy to bulk-generate SKUs for products created before installing this plugin
SKUs for all product types
The Product SKU Generator for WooCommerce lets you determine which SKUs should be generated automatically, and whether these SKUs should use product slugs or IDs. If a SKU is generated, the input for that SKU will be disabled since you cannot adjust it.
If you choose not to generate a SKU, then you can enter your own SKU. For example, if you only generate variation SKUs, then you can enter a parent product SKU. This will be used as the base for your generated variation SKUs, and slugs or IDs will be appended to it.
If you only create parent / simple SKUs, you will be able to manually create your own variation SKUs, as these will not be overridden by saving or updating a product.
Bulk Updating
You can bulk add SKUs to products that you’ve created prior to installing this plugin. If you select the products you want to update, then bulk edit them, all you have to do is hit “Update”. When the products are saved, SKUs will be generated for all products.
This action will also automatically generate the SKUs for product variations if you have them enabled.
More Details
See the product page for full details and documentation
View more of SkyVerge’s free WooCommerce extensions
View all WooCommerce extensions from SkyVerge
Translations
The plugin text domain is: woocommerce-product-sku-generator
Attribute Names
By default, if you have an attribute name with a space (such as “Burnt Marshmallow” for color), the SKU will use this exact formatting. A SKU for this variation would look like: parentSKU-Burnt Marshmallow
If you enable the setting to replace spaces, this will instead look like: parentSKU-Burnt_Marshmallow or parentSKU-Burnt-Marshmallow — depending on which setting you’ve chose. This is helpful if your external fulfillment service does not allow spaces in SKUs.
Attribute Sorting
In very rare cases, you may find that variation SKUs do not sort attributes in the same order. For example, one variation may be tee-shirt-large-black, and another could be tee-shirt-black-medium.
If this occurs, you can force attributes to sort themselves consistently before generating the SKU, which will resolve this problem. You could also consider this for new installations.
Be sure you want to enable this if you have existing SKUs, as variation SKUs that were generated previously could be overridden while updating a product – they’ll be re-generated with the forced attribute order.
To force attribute sorting, add this code snippet where you add your site modifications, such as a custom plugin or theme’s functions.php:
add_filter( 'wc_sku_generator_force_attribute_sorting', '__return_true' );
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Product SKU Generator for WooCommerce」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
0.1 | 1.1 | 1.0.1 | 1.1.1 | 1.2.0 | 1.2.1 | 1.2.2 | 2.0.0 | 2.0.1 | 2.1.0 | 2.2.0 | 2.3.0 | 2.3.1 | 2.3.2 | 2.3.3 | 2.3.4 | 2.3.5 | 2.4.0 | 2.4.1 | 2.4.2 | 2.4.3 | 2.4.4 | 2.4.5 | 2.4.6 | 2.4.7 | 2.4.8 | 2.5.0 | trunk |
延伸相關外掛(你可能也想知道)
Easy Auto SKU Generator for WooCommerce 》這是一個非常簡單的自動生成 SKU 外掛,適用於那些在創建產品時懶得填寫文章(SKU)的人。您只需啟用該外掛,創建產品時 SKU 將自動生成。, , 在外掛的最新更...。
SKU generator for Woocommerce by ATR 》在 WC 編輯/新建產品頁面新增一個按鈕,可以依據預先定義的格式和長度產生產品的 SKU(目錄編號)。此外,此外掛面向的是管理沒有為產品定義目錄編號的 Wooco...。
Simple SKU Generator 》Simple SKU Generator 外掛的目的是為產品創建 SKU。, 使用說明, 點擊 sku-overview.pdf 下載使用說明。, 詳細了解外掛如何運作,請參閱 sku-overview.pdf。,...。