Answer the question
In order to leave comments, you need to log in
How to add Woocomerce product attribute without knowing its id?
I am making my own commerceML upload algorithm on .net core, I have parsed its values and I have product properties and a group of properties.
According to the Woocomerce API documentation, adding a product attribute and its value is as follows
"attributes": [
{
"id": 6,
"position": 0,
"visible": false,
"variation": true,
"options": [
"Black",
"Green"
]
},
{
"name": "Size",
"position": 0,
"visible": true,
"variation": true,
"options": [
"S",
"M"
]
}
],
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question