从WP WooCommerce出口个人订单

发布于 2025-02-12 02:28:22 字数 377 浏览 1 评论 0原文

我想将来自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.

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

╄→承喏 2025-02-19 02:28:22

我认为无需安装任何编码即可到达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 ...

木格 2025-02-19 02:28:22

您要寻找的操作是 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文