skip to Main Content

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.

enter image description here

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


  1. 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 …

    Login or Signup to reply.
  2. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search