Closed tiziana-git closed 1 year ago
I can update it with below code:
wcObject.Product.Variations.UpdateWithNull(65, 54, new { stock_quantity = 5 });
System.Reflection.PropertyInfo.GetValue(...) returned null. on if (prop.GetValue(item).ToString() == "")
when prop is sale_price
If i use wc.Product.Update(...) the variation stock quantity is not updated.
If i use wc.Product.Variations.Update(...) it returns: {"{""code"":""product_invalid_sku"",""message"":""COD non valido o duplicato."",""data"":{""status"":400,""resource_id"":139}}"}