Duplicated orders not recieving `customer_note`
-
Greetings!
Pretty simple issue to fix on your end I think. It looks like you’re not duplicating the original order’s
post_excerpt
to the new order. That’s a problem because WooCommerce saves theircustomer_note
to the post excerpt.Further, this becomes unfixable on my end because in
clone_custom_order_fields
, you don’t provide the hook access to the$order
object [1]. Because the hook doesn’t receive access to this object, any changes to the post or to the order itself are overwritten when you subsequently callupdate_status
just a few lines later[2].So, to summarize: I’d like the ability to access the order in the hook itself and also I’d appreciate if you also duplicated the post_excerpt when duplicating the orders.
Thanks!
1. https://plugins.trac.www.ads-software.com/browser/wc-duplicate-order/trunk/classes/class-clone-order.php#L140
2. https://plugins.trac.www.ads-software.com/browser/wc-duplicate-order/trunk/classes/class-clone-order.php#L158
- The topic ‘Duplicated orders not recieving `customer_note`’ is closed to new replies.