{"id":373780,"date":"2026-09-28T10:33:30","date_gmt":"2026-09-28T10:33:30","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/1-click-test-order-generator-for-woocommerce\/"},"modified":"2026-09-28T11:33:12","modified_gmt":"2026-09-28T11:33:12","slug":"ordercraft-woocommerce","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/ordercraft-woocommerce\/","author":23571922,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2.1","stable_tag":"1.2.1","tested":"7.1.2","requires":"5.8","requires_php":"7.4","requires_plugins":null,"header_name":"OrderCraft for WooCommerce","header_author":"Roshan Dalvi","header_description":"Generate realistic mock WooCommerce orders with multiple products, coupons, and shipping methods in one click.","assets_banners_color":"6d6d83","last_updated":"2026-09-28 11:33:12","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":51,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.2.1":{"tag":"1.2.1","author":"roshandalvi","date":"2026-09-28 11:33:12","revision":3717042}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3717042,"resolution":"128x128","location":"assets","locale":"","width":1254,"height":1254}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":3717042,"resolution":"772x250","location":"assets","locale":"","width":2203,"height":714}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.2.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3717042,"resolution":"1","location":"assets","locale":"","width":1919,"height":955}},"screenshots":{"1":"The Admin Bar quick action button (<code>\u26a1 + Test Order<\/code>).","2":"An automatically generated test order showing multiple products, a coupon, and shipping.","3":"The generated order details in the WooCommerce order edit screen."}},"plugin_section":[],"plugin_tags":[2275,283160,283161,1591,286],"plugin_category":[45],"plugin_contributors":[259800,283162,259798,259633],"plugin_business_model":[],"class_list":["post-373780","plugin","type-plugin","status-publish","hentry","plugin_tags-developer","plugin_tags-order-generator","plugin_tags-test-orders","plugin_tags-testing","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_contributors-pratapvashi123","plugin_contributors-roshandalvi","plugin_contributors-walstarmedia","plugin_contributors-walstartechnologies","plugin_committers-roshandalvi"],"banners":{"banner":"https:\/\/ps.w.org\/ordercraft-woocommerce\/assets\/banner-772x250.png?rev=3717042","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/ordercraft-woocommerce\/assets\/icon-128x128.png?rev=3717042","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/ordercraft-woocommerce\/assets\/screenshot-1.png?rev=3717042","caption":"The Admin Bar quick action button (<code>\u26a1 + Test Order<\/code>)."}],"raw_content":"<!--section=description-->\n<p><strong>OrderCraft for WooCommerce<\/strong> is a lightweight developer utility designed to streamline local development, agency QA workflows, transactional email design verification, and staging site testing.<\/p>\n\n<p>Instead of filling out front-end checkout forms repeatedly, this plugin adds a dedicated quick-action button (<code>\u26a1 + Test Order<\/code>) to your top WordPress Admin Bar. With a single click, it programmatically generates a complete mock order using native WooCommerce CRUD APIs and redirects you straight to the WooCommerce order edit screen.<\/p>\n\n<h4>Key Features<\/h4>\n\n<ul>\n<li><strong>Instant Admin Bar Action<\/strong>: Create a test order in seconds from anywhere in the WP Admin dashboard.<\/li>\n<li><strong>Multi-Item Selection<\/strong>: Randomly picks between 2 and 4 published products with varied quantities (1\u20133 items per product).<\/li>\n<li><strong>Smart Coupon Engine<\/strong>: Applies an existing active store coupon or creates a temporary percentage discount coupon (<code>TEST10OFF<\/code> \u2013 <code>TEST25OFF<\/code>) on the fly if no coupons exist.<\/li>\n<li><strong>Randomized Shipping Rates<\/strong>: Attaches realistic shipping line items (Standard Flat Rate, Express Delivery, Overnight Air, or Free Shipping Promo) with computed totals.<\/li>\n<li><strong>Accurate Totals Calculation<\/strong>: Triggers <code>calculate_totals()<\/code> to accurately factor line items, shipping fees, tax rates, and discount reductions into the final order amount.<\/li>\n<li><strong>Zero Front-End Friction<\/strong>: Bypasses cart pages, checkout forms, and real payment gateways by defaulting to Cash on Delivery (Test).<\/li>\n<li><strong>Developer Focused<\/strong>: Built with clean, lightweight PHP using native WooCommerce CRUD classes (<code>wc_create_order()<\/code>, <code>WC_Order_Item_Shipping<\/code>, <code>WC_Coupon<\/code>). Requires zero external assets or background processes.<\/li>\n<\/ul>\n\n<h4>How It Works<\/h4>\n\n<p>When you click the <strong>\u26a1 + Test Order<\/strong> button in the Admin Bar:<\/p>\n\n<ol>\n<li><strong>Security &amp; Permission Check<\/strong>: The plugin verifies user capabilities (<code>manage_woocommerce<\/code>) and validates the request nonce (<code>check_admin_referer<\/code>).<\/li>\n<li><strong>Product Retrieval<\/strong>: Queries the database using <code>wc_get_products()<\/code> for 2 to 4 published products.<\/li>\n<li><strong>Order Instantiation<\/strong>: Initializes a new order object via <code>wc_create_order()<\/code>.<\/li>\n<li><strong>Line Item &amp; Quantity Assignment<\/strong>: Adds selected products with randomized quantities between 1 and 3.<\/li>\n<li><strong>Customer Details<\/strong>: Populates standard test billing and shipping addresses.<\/li>\n<li><strong>Shipping Selection<\/strong>: Instantiates a <code>WC_Order_Item_Shipping<\/code> object and attaches a randomly selected shipping rate.<\/li>\n<li><strong>Coupon Application<\/strong>: Fetches an active coupon via <code>get_posts('shop_coupon')<\/code> or generates a fallback percentage coupon using <code>WC_Coupon<\/code>.<\/li>\n<li><strong>Recalculation &amp; Status<\/strong>: Runs <code>$order-&gt;calculate_totals()<\/code>, sets the status to <code>processing<\/code>, and redirects directly to the edit order screen.<\/li>\n<\/ol>\n\n<h3>License &amp; Copyright<\/h3>\n\n<p>OrderCraft for WooCommerce is open-source software licensed under the <strong>GNU General Public License v2.0 or later (GPLv2+)<\/strong>.<\/p>\n\n<ul>\n<li><strong>License<\/strong>: GPLv2 or later (http:\/\/www.gnu.org\/licenses\/gpl-2.0.html)<\/li>\n<li><strong>Copyright<\/strong>: \u00a9 2026 Roshan Dalvi, Walstar Technologies, Pratap Vashi, Walstar Media.<\/li>\n<\/ul>\n\n<p>This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>ordercraft-woocommerce<\/code> plugin directory to your <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the <strong>Plugins<\/strong> menu in WordPress.<\/li>\n<li>Ensure <strong>WooCommerce<\/strong> is installed and activated.<\/li>\n<li>Ensure your WooCommerce store has at least one published product.<\/li>\n<li>Click the <strong>\u26a1 + Test Order<\/strong> button in the WordPress Admin Bar to generate a test order.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20ordercraft%20process%20real%20payments%20or%20touch%20live%20gateways%3F\"><h3>Does OrderCraft process real payments or touch live gateways?<\/h3><\/dt>\n<dd><p>No. Test orders are generated programmatically via backend WooCommerce CRUD methods. All generated orders use \"Cash on Delivery (Test)\" as the payment method and do not invoke external payment gateways or process real financial transactions.<\/p><\/dd>\n<dt id=\"what%20happens%20if%20my%20store%20has%20no%20published%20products%3F\"><h3>What happens if my store has no published products?<\/h3><\/dt>\n<dd><p>OrderCraft requires at least one published product to generate line items. If no published products exist, the order generation process halts safely and displays a dismissible error notice in your WordPress admin dashboard.<\/p><\/dd>\n<dt id=\"can%20non-admin%20users%20generate%20test%20orders%3F\"><h3>Can non-admin users generate test orders?<\/h3><\/dt>\n<dd><p>No. The Admin Bar button and execution endpoints are restricted exclusively to users with the <code>manage_woocommerce<\/code> capability (Administrators and Shop Managers). Every request is also validated against a secure WordPress nonce.<\/p><\/dd>\n<dt id=\"will%20generating%20a%20test%20order%20trigger%20woocommerce%20emails%20or%20webhooks%3F\"><h3>Will generating a test order trigger WooCommerce emails or webhooks?<\/h3><\/dt>\n<dd><p>Yes. Because OrderCraft uses native WooCommerce APIs to create and update order statuses to \"Processing\", standard WooCommerce email notifications (such as \"New Order\") and third-party webhooks tied to order creation hooks will trigger as normal. This makes OrderCraft an ideal utility for testing transactional emails, PDF invoices, and API webhooks.<\/p><\/dd>\n<dt id=\"does%20ordercraft%20support%20custom%20product%20types%20or%20variable%20products%3F\"><h3>Does OrderCraft support custom product types or variable products?<\/h3><\/dt>\n<dd><p>OrderCraft retrieves published products using <code>wc_get_products()<\/code>. Simple products and parent variable products are fully supported. Line item prices are calculated based on the product's regular or sale price configured in WooCommerce.<\/p><\/dd>\n<dt id=\"will%20this%20plugin%20leave%20orphan%20data%20in%20my%20database%3F\"><h3>Will this plugin leave orphan data in my database?<\/h3><\/dt>\n<dd><p>OrderCraft creates standard WooCommerce orders, coupons, and line items stored directly in the native WooCommerce order tables (<code>wp_wc_orders<\/code> \/ <code>wp_posts<\/code>). When you delete generated test orders through the WooCommerce Orders screen, all associated line items and metadata are cleaned up automatically by WooCommerce.<\/p><\/dd>\n<dt id=\"is%20ordercraft%20safe%20to%20keep%20active%20on%20a%20production%20store%3F\"><h3>Is OrderCraft safe to keep active on a production store?<\/h3><\/dt>\n<dd><p>While OrderCraft is restricted to admin users via capability checks and nonces, it is designed primarily as a development, staging, and QA testing utility. We recommend activating it on development, local, or staging environments.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Renamed the plugin to OrderCraft for WooCommerce.<\/li>\n<li>Updated the plugin slug and text domain to match the new plugin identity.<\/li>\n<li>Added WooCommerce as a required plugin dependency header (<code>Requires Plugins: woocommerce<\/code>).<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Added randomized shipping methods including Flat Rate, Express Delivery, Overnight Air Courier, and Free Shipping Promo.<\/li>\n<li>Added shipping cost calculations to generated orders.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Added multi-item selection with 2\u20134 random published products per order.<\/li>\n<li>Added coupon handling using existing published coupons or generated test discount coupons.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Generate realistic mock WooCommerce orders with random products, coupons, and shipping methods directly from the WordPress Admin Bar.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/373780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=373780"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/roshandalvi"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=373780"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=373780"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=373780"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=373780"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=373780"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=373780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}