• Resolved kvenice999

    (@kvenice999)


    I have created multiple products via the REST API with attributes. However, instead of using existing matching terms, I know have a bunch of Attribute Terms with the same name… Any idea why this would happen?
    My JSON data:

    {
      "create": [
        {
          "name": "Product 1",
          "attributes": [
            {
              "id": 11,
              "name": "Classe de l'arme",
              "position": 0,
              "visible": true,
              "variation": false,
              "options": [
                "Non restreint"
              ]
            }
          ]
        },
        {
          "name":"Product 2",
          "attributes": [
            {
              "id": 11,
              "name": "Classe de l'arme",
              "position": 0,
              "visible": true,
              "variation": false,
              "options": [
                "Restreint"
              ]
            }
          ]
        }
      ]
    }

    Img: WPML Attribute Translation Page

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi there 👋

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook 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.

    Cheers.

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    We’ve not seen any activity on this thread for a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘API Creating Duplicate Attribute Terms with New Products’ is closed to new replies.