D
D
Denis99992020-11-13 14:52:49
WooCommerce
Denis9999, 2020-11-13 14:52:49

Woocommerce not setting correct attribute value?

5fae738bd18b3779069967.jpeg
When adding the first variation programmatically using the REST api, the wrong attribute value is assigned, it can be seen in the database that the desired value has been created, but it is also automatically created with the name of the product, and it is bound instead of the desired one. Also, for the variation attribute, the value is not set, from the possible values ​​\u200b\u200bbound to the product.

All this happens only in the case of adding the first variation to the product, then everything is as it should be. If the product already has some variations, then adding it immediately works correctly.

Is this a woocommerce bug? Will the update help?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question