[WordPress] 外掛分享: Generate Random Orders For WooCommerce

首頁外掛目錄 › Generate Random Orders For WooCommerce
100+
安裝啟用
★★★★★
5/5 分(3 則評價)
568 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.3+ v1.0.0 上架:2023-07-05

內容簡介

外掛「Generate Random Orders for WooCommerce」允許商店擁有者快速生成隨機訂單,成為測試和數據填充的寶貴工具。您可以設定要生成的訂單數量。
生成訂單後,您可以在WooCommerce管理面板中輕鬆查看它們。這個外掛可以在測試店鋪的訂購和支付流程,或者填充您的數據庫時,為您節省大量時間。

它是如何運作的?
該外掛運行一個腳本在這個站點的WooCommerce數據庫中生成隨機訂單和相關數據。您可以指定要生成的訂單數量。
訂單日期設定如下:
- 訂單#1:今天午夜
- 訂單#2:昨天午夜
- 訂單#3:一周前的午夜
- 訂單#4:30天前的午夜
- 訂單#5+:從現在到365天前的隨機日期和時間,其中大約50%的訂單在現在和30天前之間

訂單 billing 名稱和shipping 名稱從兩個可能的名稱中隨機選擇。
訂單 billing 電話和shipping 電話是隨機生成的10位數字。
訂單使用者ID為1或2。JSON假定使用者1的暱稱是user1,使用者2的暱稱是user2(如果不使用JSON,則無關緊要)。
訂單 billing 地址和shipping 地址是相同的,從兩個可能的地址中隨機選擇,一個是加拿大地址,一個是美國地址。
訂單 billing 電子郵件是[email protected],其中N是1至3之間的隨機數字。
每個訂單有(隨機)1到5個產品項目。WooCommerce商店必須同時擁有變動和簡單產品,產品是隨機選擇的,對於變動產品有約33%的偏向和對於簡單產品有約67%的偏向。每項產品的數量是1到5之間的隨機數字(整數)。
大約25%的訂單分配給本地取貨。大約75%的訂單分配給統一運費。WooCommerce商店中的運費必須設定統一運費的實例ID為1,本地取貨的實例。

疑問與回答:
- 「Generate Random Orders for WooCommerce」外掛是用來做什麼的?它可以幫助商店擁有者快速生成隨機訂單,用於測試和數據填充。
- 如何設定要生成的訂單數量?您可以在外掛中指定生成的訂單數量。
- 能否在WooCommerce管理面板中查看生成的訂單?是的,一旦生成訂單,您可以在WooCommerce管理面板中輕鬆查看它們。
- 這個外掛可以節省多少時間?使用這個外掛可以節省大量時間,特別是在測試商店的訂購和支付流程,或者填充數據庫時。

Note: Due to the limitation of the platform, the bullet points cannot be presented in an HTML bulleted list format.

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Generate Random Orders For WooCommerce」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

The “Generate Random Orders for WooCommerce” plugin allows store owners to generate random orders quickly, making it a valuable tool for testing and data population. You can set the number of orders to generate.
Once you generate the orders, you can easily view them in the WooCommerce admin panel. This plugin can save you a significant amount of time when testing your store’s ordering and payment processes or when populating your database with random data.
How it works?
This plugin runs a script to generate random orders and related data in this site’s WooCommerce database. You can specify how many orders you want to generate.
Order dates are set as follows:
* Order #1: midnight today
* Order #2: midnight yesterday
* Order #3: midnight one week ago
* Order #4: midnight 30 days ago
* Order #5+: random date and time between now and 365 days ago, with ~50% of orders between now and 30 days ago

Order billing name and shipping name are each randomly selected from two possible names.
>Order billing phone and shipping phone are randomly generated 10-digit numbers.
Order user ID is either 1 or 2. The JSON assumes that the nickname of user 1 is user1, and the nickname of user 2 is user2 (this doesn’t matter if the JSON is not being used.
Order billing address and shipping address are the same, randomly selected from two possible addresses, one Canadian and one US.
Order billing email is [email protected], where N is a random number from 1 to 3.
Each order has (randomly) 1 to 5 product items. The WooCommerce store must have both variable and simple products. Products are selected at random with a ~33% bias toward variable products and ~67% bias toward simple products. Each item has a random quantity between 1 and 5 (whole number).
~25% of orders are assigned local pickup. ~75% of orders are assigned flat rate shipping. The shipping in the WooCommerce store must be set up with flat rate having instance ID 1 and local pickup having instance ID 2. Shipping amount is a random whole number between 5 and 20.
~33% of orders have coupon code 50OFF added. This coupon code must be configured in WooCommerce.
Orders are randomly assigned statuses with the following approximate distribution: 14% pending, 29% processing, 57% completed. Some orders may have their status automatically changed to refunded due to the line item refund, if the refund results in the entire order being refunded.
~50% of orders have a custom meta field wpz_custom_meta_1, and ~50% of orders have a custom meta field wpz_custom_meta_2. The value of either field is a random 3 digit number.
The JSON assumes that two taxes are set up: tax ID 1 is GST, tax ID 2 is PST. This doesn’t matter if the JSON is not being used.
~20% orders have line item refunds. Each refund has one product item, and the quantity refunded is 1; refund amounts correspond to quantity pro-rated line total and taxes. A corresponding amount of shipping is refunded (ignoring other items that may be on the order). Refunds are dated between 1 and 14 days from the order date, but not past the current time.

Addons & Integrations
Looking to automate your WooCommerce reports, share them on the frontend of your site, or create in-depth sales reports? We have more free and premium reporting tools for WooCommerce.

Extra Product Options Addon – export fields from the WooCommerce Extra Product Options plugin
Scheduled Email Reports for WooCommerce – plugin to automate report sending
Frontend Reports for WooCommerce – display reports on the frontend of your site
Product Sales Report for WooCommerce (Free and Pro – create sales reports for your store

If you like this plugin, please consider leaving a comment or review.
You may also like these plugins
WP Zone has built a bunch of plugins, add-ons, and themes. Check out other favorites here on the repository and don’t forget to leave a 5-star review to help others in the community decide.

Product Sales Report for WooCommerce – setup a custom sales report for the products in your WooCommerce store with toggle sorting options. Including or excluding items based on date range, sale status, product category and id, define display order, choose what fields to include, and generate your report with a click.
Replace Image – keep the same URL when uploading to the WordPress media library
Force Update Check for Plugins and Themes -force Update Check for Plugins and Themes forces WordPress to run a theme and plugin update check whenever you visit the WordPress updates page
Connect SendGrid for Emails – connect SendGrid for Emails is a third-party fork of (and a drop-in replacement for) the official SendGrid plugin
Custom CSS and JavaScript – allows you to add custom site-wide CSS styles and JavaScript code to your WordPress site. Useful for overriding your theme’s styles and adding client-side functionality.
Disable User Registration Notification Emails – when this plugin is activated, it disables the notification sent to the admin email when a new user account is registered.
Inline Image Upload for BBPress – enables the TinyMCE WYSIWYG editor for BBPress forum topics and replies and adds a button to the editor’s “Insert/edit image” dialog that allows forum users to upload images from their computer and insert them inline into their posts.
Password Strength for WooCommerce – disables password strength enforcement in WooCommerce.
Potent Donations for WooCommerce – acceptance donations through your WooCommerce store
Shortcodes for Divi – allows to use Divi Library layouts as shortcodes everywhere where text comes.
Stock Export and Import for WooCommerce – generates reports on the stock status (in stock / out of stock) and quantity of individual WooCommerce products.
Random Quiz Generator for LifterLMS – pull a random set of questions from your quiz so users never get the same question twice when retaking or setting up a practice quiz.
WP and Divi Icons – adds over 660 custom outline SVG icons to your website. SVG icons are vector icons, so they are sharp and look good on any screen at any size.
WP Layouts – the best way to organize, import, and export your layouts, especially if you have multiple websites.
WP Squish – reduce the amount of storage space consumed by your WordPress installation through the application of user-definable JPEG compression levels and image resolution limits to uploaded images.

To view WP Zone’s premium WordPress plugins and themes, visit our WordPress products catalog page
Enjoy!

延伸相關外掛

文章
Filter
Apply Filters
Mastodon