
內容簡介
這個外掛是為 WooCommerce 設計的範例產品生成器,旨在用於開發和測試網站。
它的目的是提供自動化方式來創建非常大的產品集,有助於提供性能基準和用例測試的測試環境。
該外掛生成的產品考慮以下特性:
產品分類
產品標籤
產品屬性
SKU
根據所給屬性創建包含單一和變體的產品
庫存管理和數量(某些產品將設置這些,其他產品將不會)
精選產品(一小部分將被標記為特色產品)
產品圖像可以從Unsplash獲取,或者生成抽象圖像
該外掛提供了一個 WooCommerce > 產品生成器的管理區域,可以調整幾個方面。
在連續 AJAX 執行期間,會顯示累積的產品生成統計信息和性能。
產品生成統計信息和性能也會記錄到網站的 debug.log 中。要禁用,請在網站的 wp-config.php 中添加:define( 'WPG_LOG', false );。
根據提供的統計信息,此外掛還提供了一種簡單的方法來測試網站性能:提供了衡量每秒生成的產品數來衡量網站的性能。如果您想測試產品生成時網站的性能,請確保禁用從 Unsplash 獲取圖像的選項,因為通過網絡獲取圖像的影響將遠高於產品生成本身。
請分叉WooCommerce 產品生成器存儲庫,以按照需要自定義產生的產品。
外掛標籤
開發者團隊
② 後台搜尋「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.
Fork the Repository to customize the products generated as desired.
