XiaoFaye / WooCommerce.NET

A .NET Wrapper for WooCommerce/WordPress REST API
MIT License
391 stars 217 forks source link

Update Variation Local Option localized #707

Open FabPari opened 1 year ago

FabPari commented 1 year ago

Hi dear, is there a way for update variation local option name? I try to get variations, change the attribute option (where I found text ), and update, but don't work

` v = wc.Product.Variations.Get(variant, (int)plang.id).Result;

v.attributes[0].option = "test";

var a = wc.Product.Variations.Update((int)v.id, v, (int)plang.id).Result; ` but don't work, any idea? Thanks Fabio