Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
@shaiazran

Description

@shaiazran

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp