【问题标题】:Where is saved the order status in the database for WoocommerceWoocommerce 数据库中订单状态的保存位置
【发布时间】:2018-11-17 23:11:58
【问题描述】:

我知道这听起来很简单,但我已经通过多种方式对此进行了研究,只发现了更改订单状态的函数。我还查看了 wordpress 的整个数据库,我没有找到“状态”或“处理中”、“已完成”等术语。谁能告诉我 Woocommerce 如何存储订单状态?

【问题讨论】:

    标签: mysql wordpress woocommerce status orders


    【解决方案1】:

    订单状态在post_status键下的wp_post数据库表中注册。

    【讨论】:

      【解决方案2】:

      如果您想检查商品是否已付款。转到wp_postmeta 并检查_paid_date 值是否存在于meta_key 键中。

      【讨论】:

        猜你喜欢
        • 2017-11-27
        • 2017-05-24
        • 2022-10-05
        • 2023-03-13
        • 2017-05-24
        • 2020-01-16
        • 1970-01-01
        • 1970-01-01
        • 2018-12-15
        相关资源
        最近更新 更多