{"id":50827,"date":"2016-09-12T19:42:37","date_gmt":"2016-09-12T19:42:37","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wc-duplicate-order\/"},"modified":"2019-09-08T19:27:51","modified_gmt":"2019-09-08T19:27:51","slug":"wc-duplicate-order","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wc-duplicate-order\/","author":10163274,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.7","stable_tag":"trunk","tested":"4.9.29","requires":"4.4","requires_php":"","requires_plugins":"","header_name":"WC Duplicate Order","header_author":"Jamie Gill","header_description":"","assets_banners_color":"000000","last_updated":"2019-09-08 19:27:51","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/jamiegill.com\/plugin-development\/","header_plugin_uri":"http:\/\/jamiegill.com","header_author_uri":"http:\/\/jamiegill.com","rating":4.6,"author_block_rating":0,"active_installs":500,"downloads":19374,"num_ratings":18,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":"1","2":0,"3":"1","4":"2","5":"14"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1494762","resolution":"128x128","location":"assets","locale":"","width":128,"height":128}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1494762","resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1494762","resolution":"1","location":"assets","locale":"","width":1248,"height":235},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1494762","resolution":"2","location":"assets","locale":"","width":1237,"height":733},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1597554","resolution":"3","location":"assets","locale":"","width":1210,"height":238}},"screenshots":{"1":"Order duplicate button displays on hover","2":"After clicking the button order is duplicated and note is made on order with referance of duplicated order","3":"Bulk Duplication"}},"plugin_section":[],"plugin_tags":[77020,77019],"plugin_category":[],"plugin_contributors":[95395],"plugin_business_model":[],"class_list":["post-50827","plugin","type-plugin","status-publish","hentry","plugin_tags-woocommerce-clone-order","plugin_tags-woocommerce-duplicate-order","plugin_contributors-patchgill","plugin_committers-patchgill"],"banners":{"banner":"https:\/\/ps.w.org\/wc-duplicate-order\/assets\/banner-772x250.png?rev=1494762","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/wc-duplicate-order\/assets\/icon-128x128.png?rev=1494762","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/wc-duplicate-order\/assets\/screenshot-1.png?rev=1494762","caption":"Order duplicate button displays on hover"},{"src":"https:\/\/ps.w.org\/wc-duplicate-order\/assets\/screenshot-2.png?rev=1494762","caption":"After clicking the button order is duplicated and note is made on order with referance of duplicated order"},{"src":"https:\/\/ps.w.org\/wc-duplicate-order\/assets\/screenshot-3.png?rev=1597554","caption":"Bulk Duplication"}],"raw_content":"<!--section=description-->\n<p>After activation there will  be a Duplicate link in the order overview page within the order actions on hover.<\/p>\n\n<p>Duplicates all order Meta data and product data across into the new order ID.<\/p>\n\n<p>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.<\/p>\n\n<p>Supports Bulk order duplication.<\/p>\n\n<p>Includes custom order field hook<\/p>\n\n<p>Feature requests welcome for future development.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<li>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.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>stable release <\/li>\n<li>Tested Woocommerce 2.6.4+<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Stock Reduction added <\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Bulk Duplication added<\/li>\n<li>Bug fixes thanks to Shaun @ Rubious<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Bug fix to keep order item meta in correct format contributed by @Kevin<\/li>\n<li>2 New hooks for extra fields for other developers 'clone_extra_billing_fields_hook' &amp; '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)<\/li>\n<\/ul>\n\n<p>add_action('clone_extra_billing_fields_hook', 'clone_extra_billing_fields', 10, 2);<\/p>\n\n<p>function clone_extra_billing_fields($order_id, $original_order_id)\n{\n    update_post_meta( $order_id, '_billing_mobile_phone', get_post_meta($original_order_id, '_billing_mobile_phone', true));\n}<\/p>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Update of clone items using CRUD methods due to incompatability<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>Update of clone fees and coupons using CRUD methods due to incompatability<\/li>\n<li>Security patch thanks to @dungengronovius report<\/li>\n<\/ul>\n\n<h4>1.4.1<\/h4>\n\n<ul>\n<li>Introduce Nonce verification as an initial check before proceeding<\/li>\n<\/ul>\n\n<h4>1.4.2<\/h4>\n\n<ul>\n<li>Added in version check to make sure compatible, if false deactivate and display friendly error message<\/li>\n<li>Duplicate other product meta data (attribute \/ variation data)<\/li>\n<\/ul>\n\n<h4>1.5<\/h4>\n\n<ul>\n<li>Modifications to work with 3.3.1 and onwards<\/li>\n<\/ul>\n\n<h4>1.7<\/h4>\n\n<ul>\n<li>Stock reduction fix<\/li>\n<li>Fees name and other minor fixes<\/li>\n<li>Duplicate button on quick view<\/li>\n<\/ul>","raw_excerpt":"A simple plugin to add Order Duplication to Woocommerce at the click of a button.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/50827","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=50827"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/patchgill"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=50827"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=50827"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=50827"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=50827"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=50827"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=50827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}