Bukimedia / PrestaSharp

CSharp .Net client library for the PrestaShop API via web service
GNU General Public License v3.0
154 stars 152 forks source link

Can anyone help me to associate group in categories? #431

Open inforzip opened 2 years ago

inforzip commented 2 years ago

I create the category, but how associate to all client groups

Bukimedia.PrestaSharp.Entities.category Category = new Bukimedia.PrestaSharp.Entities.category();
CategLang.id = 2;
CategLang.Value = prod.MasterCateg;
Category.active = 1;
Category.id_parent = 2;
Category.AddDescription(CategLang);
Category.AddName(CategLang);
Category.AddMetaDescription(CategLang);
Category.AddMetaKeywords(CategLang);
Category.AddMetaTitle(CategLang);
Category.AddLinkRewrite(CategLang);
CategoryFactory.Add(Category);