从WP WooCommerce出口个人订单
我想将来自WooCommerce的个人订单详细信息发送给3D Party Source。 我认为最简单的方法是在每个顺序中拥有一个“导出”按钮,这会触发此事件。
如果更容易在右侧栏上,按钮位置也可以。 我是WP开发人员的新手,所以我真的不知道从哪里开始或在这种情况下哪些钩子更好。
经过最初的研究,我发现了我不想要的大多数大规模订单导出的插件。
欢迎任何提示/指南/示例。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为无需安装任何编码即可到达WooCommerce发票插件的简便方法,您可以在这里为每个订单生成发票,然后您可以轻松地在pdf中下载订单详细信息:
https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-packing-slips/
您想进行编码,需要提供有关输出格式的更多详细信息,它是PDF或仅具有订单详细信息的CSV ...
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 ...
您要寻找的操作是
add_meta_boxes
在这里您在这里可以看到一些有效的示例:自定义提交行动的代码
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