Editing orders in Woocommerce 2.x.x:
Paypal order:
- can’t be edited
- can do refunds
Non Paypal orders:
- Can edit, in which is case is reflected on the invoice
- Can do refunds
Refunds actioned through the Woocommerce orders view are a new separate post (so can probably have multiple refunds)
- posts table:
- post_type = ‘shop_order_refund’
- post_parent = orig order id
- post_status = ‘wc-completed’
- postmeta table:
- refund_amount = +ve total refunded
- order_tax = -ve tax amount
- order_total = -ve total amount
- NO ADDRESS etc key/values
- woocommerce_order_items table:
- duplicated per original orders line items
- woocommerce_order_itemmeta table:
- _refunded_item_id = as per field name