You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a variable product with the REST API (Node.Js). The problem is that I don't have all the "options" when creating the variable product. When I send a POST to create a variation, the variation is not created unless I update the variable product adding the "option" of the variation. Is this really the only way of adding a variation? Why the variation post does not add the option to the "parent" product?
The text was updated successfully, but these errors were encountered:
I have found that when using the REST API it is possible to add a variable product, with an option list that is empty. Then, subsequently when adding the variation, you are allowed to set the variable to any value. Here are example bodies for each request:
The good news is that this works. The bad news is that after the data is passed in, the UI for managing the product and product variations is broken (any future save done by administrators wipes out the WorkshopId that I've placed using the REST API).
Could we get a fix by woocommerce to allow for non-predefined product variations?
I'm trying to create a variable product with the REST API (Node.Js). The problem is that I don't have all the "options" when creating the variable product. When I send a POST to create a variation, the variation is not created unless I update the variable product adding the "option" of the variation. Is this really the only way of adding a variation? Why the variation post does not add the option to the "parent" product?
The text was updated successfully, but these errors were encountered: