woocommerce / woocommerce/wc-api-python

Swatch Label / Swatch Color hex in post products attributes terms

Open
#91 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
216
Forks
108
Avg merge
6h 34m
Merged PRs (30d)
1

Description

 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())

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the WooCommerce API documentation and the products/attributes/2/terms request shown in the issue. Determine whether swatch label and color hex parameters are supported, and whether the API documentation or wrapper needs updating; done means the supported request behavior is clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.