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

Multilanguage feature

Open fredoche1810 opened this issue 3 years ago • 2 comments

  • Wordpress version : 5.8.1
  • WooCommerce version : 5.6.0
  • WooCommerce.NET version : 0.8.3

Hello, First thanks for your project to connect Woocommerce to .net apps I'm looking for the possibility to add different languages to my website. If I'm right, I need to install an extension do add this function. But after that, I need to be able to add or updates products and categories in different languages. I saw an extension like WPML but will it work with your project ? Did someone use it ? Is it possible to receive a sample of code ? Thanks in advance, Fredoche1810

fredoche1810 avatar Sep 19 '21 12:09 fredoche1810

Yes it works fine, It's very simple by using WooCommerce.NET. Create a dictionary with products meta and assign to method.

var dic = new Dictionary<string, string>(); dic.Add("lang", "en"); WCObject wc = new WCObject(rest);
var Products = await wc.GetAll(rest,dic);

bulkasergei avatar Nov 16 '21 15:11 bulkasergei

@bulkasergei Thanks for your answer I will try it

fredoche1810 avatar Nov 16 '21 16:11 fredoche1810