WooCommerce.NET icon indicating copy to clipboard operation
WooCommerce.NET copied to clipboard

Update Product methot returns WaitingForActivation but not updating product

Open halityilmaz1982 opened this issue 4 years ago • 2 comments

RestAPI rest = new RestAPI(ClsWooCommerce.siteAdresi + "/wp-json/wc/v3/", ClsWooCommerce.apiAnahtari, ClsWooCommerce.apiGizliAnahtari);
 WCObject wc = new WCObject(rest);
Product urunBilgisi = new Product();
urunBilgisi.name=....
.
.
.
var p = wc.Product.Update(urunID, urunBilgisi);

this code returns WaitingForActivation but not updating the product.

how can i solve this.

halityilmaz1982 avatar May 13 '21 20:05 halityilmaz1982

Product.Update is an async method, please use await in front of it.

XiaoFaye avatar May 13 '21 20:05 XiaoFaye

I am also getting same result when try to add a product with "await wc.Product.Add(myProduct);" even if I use await. Method that I use this code has "async".

hkaya65 avatar Jun 21 '21 16:06 hkaya65