如何针对之前同步的订单再次运行 WooCommerce HPOS 同步?

问题描述 投票:0回答:1

我通过

Woocommerce Settings > Advanced > Features
页面将我的订单与 HPOS Sync 同步,但没有切换到 HPOS,也没有检查 –
Enable compatibility mode (synchronizes orders to the posts table)
选项。

因此,

post
postmeta
表以及HPOS表在初始同步后再次不同步,由于未启用兼容模式,仅更新了
postmeta
post
表。

如何重新同步之前同步的、由于

postmeta
在初始同步后更新而变得不同步的订单?

wordpress woocommerce
1个回答
0
投票

如何将旧订单重新同步到高性能订单存储

首先,务必进行数据库备份

转到 WooCommerce 设置 > 高级 > 功能 > 订单数据存储 (部分)

仅启用“WordPress 帖子存储(旧版)”选项,然后保存

enter image description here

转到 WooCommerce 状态 > 工具 > 删除自定义订单表(部分)

单击删除按钮。

enter image description here

返回 WooCommerce 设置 > 高级 > 功能 > 订单数据存储 (部分)

点击“同步 XXX 挂单”链接

enter image description here

然后点击启用兼容模式(将订单同步到帖子表),并保存。

现在,WooCommerce Action Scheduler 将每小时批量同步订单。

完成后,您可以切换到“高性能订单存储(推荐)”选项并保存。

© www.soinside.com 2019 - 2024. All rights reserved.