PrestaSharp icon indicating copy to clipboard operation
PrestaSharp copied to clipboard

Create Category Multishop

Open PHonorato opened this issue 5 years ago • 2 comments

Hi, i have a multishop, with one key per shop. I use the key and url of one shop and when I create a category it creates in both stores...

Dim categoryFactory As CategoryFactory = New CategoryFactory(PrestashopURL, PrestashopKey, "") Dim NovaCategoria As New Entities.category NovaCategoria.id_parent = id_pai NovaCategoria.description.Add(New Bukimedia.PrestaSharp.Entities.AuxEntities.language(i,categoria)) NovaCategoria.link_rewrite.Add(New Bukimedia.PrestaSharp.Entities.AuxEntities.language(i, categoria)) NovaCategoria.meta_description.Add(New Bukimedia.PrestaSharp.Entities.AuxEntities.language(i, categoria)) NovaCategoria.meta_keywords.Add(New Bukimedia.PrestaSharp.Entities.AuxEntities.language(i, categoria)) NovaCategoria.name.Add(New Bukimedia.PrestaSharp.Entities.AuxEntities.language(i, categoria)) NovaCategoria.id_shop_default = loja_id NovaCategoria.is_root_category = 0 NovaCategoria.active = 1 categoryFactory.Add(NovaCategoria)

What am I doing wrong?

Thanks, Paulo Honorato

PHonorato avatar May 13 '19 18:05 PHonorato

Create a manufacteur work fine. Create a new manufacteur olny in shop that i indicate in PrestashopURL and PrestashopKey. But when i try to create a category, create in both shop's

PHonorato avatar May 16 '19 08:05 PHonorato

I just tested the behaviour and wrote the bug in PrestaShop/PrestaShop#13987, thank you @PHonorato :)

mowcixo avatar May 27 '19 14:05 mowcixo