Woocommerce API, create products and add attributes terms
-
For several days, I am trying to add attributes terms to
create
products with API.I am failing. I have referred tutorials/ How to. But to no avail.
I am using python.
Here are my attempts:
[1]
Attribute (id : 5) with configuration term already present.“attributes”: {
“id”: 5, \\already created
“name”: “Publisher”, \\ already created
“position”: 0,
“visible”: True,
“variation”: False,
“options”: “Ramesh”\\’Ramesh’ is attribute term. And it is already created but it is not getting attached.
[2]
Attribute (id : 5) with configuration term ‘Goal’ is not present. Trying to add ‘Goal’ as term in the attribute id 5."attributes": { "id": 5, "name": "Publisher", "position": 0, "visible": True, "variation": False, "options": "Goal" },
[3] Attribute (id : 5) with configuration term ‘Goal’ is not present. Trying to add ‘Goal’ as term in the attribute id 5. “options“: is replaced with “option“: (without s)
"attributes": { "id": 5, "name": "Publisher", "position": 0, "visible": True, "variation": False, "option": "Goal" }
[4] I even tried pre-added configuration term ‘Ramesh’ with Attribute id 5. Using option. But to no avail.
Please help me out. Attributes has already been added. Now with the help of Python woocommerce API I want to create products where attributes terms would be either newly added or would be added new.
Hope I am able to present my problem. I am open to any type of solutions. I am newbie to programming stuff.
Thanks
- The topic ‘Woocommerce API, create products and add attributes terms’ is closed to new replies.