woocommerce REST API を使用して外部システムから製品を取り込む woocommerce サイトのセットアップがあります。
parent_id が設定されていないことを除いて、すべてがうまくいきます。
サンプルデータ:
{"product": {"title":"Example Shoe","type":"simple","status":"publish","regular_price":"84.00","description":"","short_description": "Trainers","categories":["Mens Trainers"],"catalog_visibility":"visible","attributes":[{"name":"Color","position":1,"visible":true,"バリエーション":false,"オプション":["BLACK"]}],"画像":[{"src":"","タイトル":null,"alt":"","位置":0}] ,"parent_id":5254}}
私はその理由について少し困惑しています。それは整数の投稿にすぎないため、なぜ機能しないのかわかりません。
どんな助けでも大歓迎です、ありがとう。