WC Duplicate Order

Description

After activation there will be a Duplicate link in the order overview page within the order actions on hover.

Duplicates all order Meta data and product data across into the new order ID.

Order is created and a note is left in the new order of the older order ID for future reference. Order status is then set on hold awaiting admin to confirm payment.

Supports Bulk order duplication.

Also has two hooks ‘clone_extra_shipping_fields_hook’ & ‘clone_extra_shipping_fields_hook’ this passes the old order ID and new order ID to pass in custom billing and shipping fields for custom sites.

Feature requests welcome for future development.

Screenshots

  • Order duplicate button displays on hover
  • After clicking the button order is duplicated and note is made on order with referance of duplicated order
  • Bulk Duplication

Installation

  1. Upload the plugin files to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. There will now be a Duplicate link in the to Woocommerce order overview page within the order actions on hover. Alternatively there is a bulk option to duplicate multiple orders.

FAQ

Installation Instructions
  1. Upload the plugin files to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. There will now be a Duplicate link in the to Woocommerce order overview page within the order actions on hover. Alternatively there is a bulk option to duplicate multiple orders.

Reviews

Not Working with Latest Woocommerce 3.0.6

EDIT 1
On Duplicating the order having variable products, all products are copied fine but the fee row isn’t copied.

EDIT 0
On Duplicating the order having variable products, all products are copied with price set to Zero.

Easy peasy

Super easy – especially if you’re duplicating orders shipped to the same location.

THIS IS AWESOME!

I no longer hvae to worry about customizing the code to duplicate the order. You just saved me TIMWE and $$. PERFECT!

Works great!

Very pleased with this plugin. Worked great upon initial installation and is very intuitive to use. It would be nice if it added the duplicate action in the orders action dropdown at the top of the orders page, but if you look for the duplicate link, these work fine.

Thank you for saving me some time.

Read all 4 reviews

Contributors & Developers

“WC Duplicate Order” is open source software. The following people have contributed to this plugin.

Contributors

Translate “WC Duplicate Order” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0

  • stable release
  • Tested Woocommerce 2.6.4+

1.0.1

  • Stock Reduction added

1.1

  • Bulk Duplication added
  • Bug fixes thanks to Shaun @ Rubious

1.2

  • Bug fix to keep order item meta in correct format contributed by @Kevin
  • 2 New hooks for extra fields for other developers ‘clone_extra_billing_fields_hook’ & ‘clone_extra_shipping_fields_hook’. Passes through orders IDs so you can pass in custom fields, just simply chacge the meta key to your new fields name see below (meta key been ‘_billing_mobile_phone’ in this case)

add_action(‘clone_extra_billing_fields_hook’, ‘clone_extra_billing_fields’, 10, 2);

function clone_extra_billing_fields($order_id, $original_order_id)
{
update_post_meta( $order_id, ‘_billing_mobile_phone’, get_post_meta($original_order_id, ‘_billing_mobile_phone’, true));
}

1.3

  • Update of clone items using CRUD methods due to incompatability

1.4

  • Update of clone fees and coupons using CRUD methods due to incompatability
  • Security patch thanks to @dungengronovius report