Skip to content

Swatch Label / Swatch Color hex in post products attributes terms #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
shaiazran opened this issue Aug 16, 2023 · 0 comments
Open

Comments

@shaiazran
Copy link

 I am using the Woocommerce API to create products for my website.
 How should I send the colour hex code to the attribute term and turn on “Enable swatch”.

I want to update this:
Swatch Label -  for example, 'Pink2'
Swatch Color hex #FE9684
 
I'm using the API (python)
In the API doc. I don't find the Parameter for it too

{
"id": 23,
"name": "XXS",
"slug": "xxs",
"description": "",
"menu_order": 1,
"count": 1,
"_links": .....

print(wcapi.post("products/attributes/2/terms", data).json())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant