I want to send individual order details from WooCommerce to a 3d party source.
The easiest way I think would be to have an ‘Export’ button within each order, that would trigger this event.
The button location would be also fine to be on the right sidebar if it’s easier.
I’m new to WP dev so I don’t really know where to start or what hooks are better in this case.
After my initial research I’ve found most of the plugins that are specific to mass order export, which I don’t want.
Any hint/guide/example would be welcome.
2
Answers
I think the easy way to do it without any coding is install to woocommerce Invoice plugin, there you can generate invoice for each order then you can easily download the order details in PDF :
https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/
This is an alternative, if you want to do it coding, you need to give more details about the output format , it’s PDF or only csv with order details …
The action you are looking for is
add_meta_boxes
Here you can see some working examples: WooCommerce Orders metabox: Run php code on custom submit action