PrestaSharp
PrestaSharp copied to clipboard
Create Category Multishop
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
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
I just tested the behaviour and wrote the bug in PrestaShop/PrestaShop#13987, thank you @PHonorato :)