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_excerptto the new order. That’s a problem because WooCommerce saves theircustomer_noteto 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$orderobject [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_statusjust 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.ww.wp.xz.cn/browser/wc-duplicate-order/trunk/classes/class-clone-order.php#L140
2. https://plugins.trac.ww.wp.xz.cn/browser/wc-duplicate-order/trunk/classes/class-clone-order.php#L158
The topic ‘Duplicated orders not recieving `customer_note`’ is closed to new replies.