• Resolved heartware

    (@heartware)


    I’m having an issue with menu_order on my (via API) created Attribute terms.

    I’m sending this:

    {
      "create":[
        {
          "name":"XXS",
          "menu_order":1
        },
        {
          "name":"XS",
          "menu_order":2
        },
        {
          "name":"S",
          "menu_order":3
        },
        {
          "name":"M",
          "menu_order":4
        },
        {
          "name":"L",
          "menu_order":5
        },
        {
          "name":"XL",
          "menu_order":6
        }
      ]
    }

    and in the response, I get echoed back the proper menu_orders. However, in my WooCommerce site, they appear in alphabetical order:

    L
    M
    S
    XL
    XS
    XXS

    The “Attributes” menu item lists the “Size” attribute as “Custom Ordering” (and the terms in the above order).

    If I go in and manually drag/drop the items to my preferred order (XXS/XS/S/M/L/XL) it works, but I’d like to be able to set it via the API.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @heartware,

    We’ve not seen much activity on this thread for a while so I can also recommend you visit the WooCommerce Facebook Community group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Thanks.

    Mirko P.

    (@rainfallnixfig)

    Hi there,

    Just a heads up, I’m going to close this thread now.

    Hopefully, you were able to find a solution and the above resources for developers were helpful. If you have further questions, please feel free to open a new topic.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Attribute Term & menu_order’ is closed to new replies.