wellsb1
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Rest API – Product PUT does not REPLACE imagesThat was supposed to say “When I PUT an updated to a PRODUCT…”
Forum: Plugins
In reply to: [WooCommerce] Woocommerce REST API v3 and Custom Attributes1,000,000 thanks Claudio. Worked great.
Wells
Forum: Plugins
In reply to: [WooCommerce] Woocommerce REST API v3 and Custom AttributesMike,
Really appreciate the response. Unfortunately, I have been over seemingly all of the API docs (including you link) and just don’t understand.
The /products/attributes api seems to handle what I will call “named” attributes that can be set on multiple products and use to configure product variants.
I want to set a custom attribute. From what I can tell, this is the equivalent of selecting “Custom product attribute” in the attribute combo box in the product editor.
For what it is worth, I have also previously tried adding my custom attribute as a named attribute in the control panel (same as in the API you referenced) and then re-adding the product via the API. No dice.
I submit the JSON successfully but the attribute field that comes back is empty.
Wells
Forum: Plugins
In reply to: [WooCommerce] Woocommerce REST API v3 and Custom AttributesI should also add that I have tried and tried and tried but have not gotten anything to work. Below is an example of what I have tried posting.
{ "product" : { "categories" : [ "14", "124", "125", "14", "124", "126", "18", "127", "20", "128" ], "sku" : "50384", "title" : "Oval Opal (.23ct) & 3 Diamond (.05ct) Pendant w/ chain", "description" : "Oval Opal and Round Diamond Pendant on 18\" Box Link Chain Gem .23cttw Diamond .05cttw", "short_description" : "Oval Opal (.23ct) & 3 Diamond (.05ct) Pendant w/ chain", "type" : "simple", "attributes" : [ { "name" : "Designer Number", "value" : "YBC272760003014", "slug" : "designer-number", "variation" : false } ] ] } }