WooCommerce获取请求WP-JSON/WC/V3/PRODUCTS/类别?Page = 1显示每个呼叫上的随机类别?

发布于 2025-02-09 11:20:44 字数 534 浏览 3 评论 0原文

我们的Onlineshop最近有问题通过API将正确的类别订单转移到我们的股票管理系统中。

每当我们在Postman中测试API呼叫时:

wp-json/wc/v3/products/categories?page=1

我们将获得一个完全随机的类别订单输出:

第一个呼叫:

[
    {
        "id": 5179,
        "name": "Redmi Note 2022",
        "slug": "redmi-note-2022",
        "parent": 3054,

第二个调用:

[
    {
        "id": 5181,
        "name": "Displayeinheit",
        "slug": "displayeinheit-redmi-note-2022",
        "parent": 5179,

有什么建议我们如何解决此问题?

Our onlineshop recently has issues getting the correct category orders over to our stock management system via API.

Whenever we test the API Calls in Postman with:

wp-json/wc/v3/products/categories?page=1

we get a completely random category order output like this:

First call:

[
    {
        "id": 5179,
        "name": "Redmi Note 2022",
        "slug": "redmi-note-2022",
        "parent": 3054,

Second call:

[
    {
        "id": 5181,
        "name": "Displayeinheit",
        "slug": "displayeinheit-redmi-note-2022",
        "parent": 5179,

Any advice how we can resolve this issue?

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

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

发布评论

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

评论(1

十级心震 2025-02-16 11:20:44

问题已经解决:

问题是由插件引起的:

The issue has been resolved:

The problem was caused by the plugin:
https://wordpress.org/plugins/taxonomy-terms-order/

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