
內容簡介
這是一個專為 WooCommerce 設計的產品生成器外掛,主要用於開發和測試環境。它能自動生成大量產品,方便進行性能基準測試和使用案例測試。
【主要功能】
• 自動生成產品類別、標籤和屬性
• 支援簡單及變數產品的生成
• 可從 Unsplash 獲取產品圖片
• 提供產品生成統計數據和性能記錄
• 支援 WP-CLI 命令行生成產品
• 可自定義生成的產品屬性
外掛標籤
開發者團隊
② 後台搜尋「Product Generator for WooCommerce」→ 直接安裝(推薦)
原文外掛簡介
This is a sample product generator for WooCommerce, for use on development and testing sites.
Its purpose is to provide an automated way of creating even very large sets of products, useful in providing a test environment for performance benchmarks and use case testing.
The plugin generates products taking into account the following characteristics:
Product Categories
Product Tags
Product Attributes
SKUs
Simple and Variable products with variations based on given attributes
Stock management and stock numbers (some products will have these set, others won’t)
Featured products (a minor subset will be marked as featured)
Product images can be obtained from Unsplash or abstract images generated
The plugin provides an administrative section WooCommerce > Product Generator where several aspects can be adjusted.
During the Continuous AJAX Run, the cumulative product generation stats and performance are shown.
The product generation stats and performance are also logged to the site’s debug.log. To disable, add this to your site’s wp-config.php: define( 'WPG_LOG', false );
With the stats provided, this plugin also provides an easy way to benchmark a site: providing an insight into the site’s performance measured by products generated per second. If you want to measure the performance of your site while generating products, make sure to disable the option Get images from Unsplash, as the impact of getting images via the network will be much higher than the product generation itself.
WP-CLI
The generator can be used to generate products from the terminal. Use the product-generator command to create one or more products. Examples:
To generate one product: wp product-generator
To generate ten products: wp product-generator --count=10
Customization
Fork the Repository to customize the products generated as desired.
