Developer forum

Forum » Ecommerce - Standard features » Multiple shops per website

Multiple shops per website

Arnór Halldórsson
Arnór Halldórsson
Reply

Hi,

So we have a website that´s using a specific shop, let´s call it ShopA. All our products get imported from NAV into ShopAand during each import we want to delete all missing products in order to keep the DW database clean of old products. However, we had to manually create some products in DW, these products are not available for purchase, mainly just for show in the system, but they get deleted during the imports. Our solution was to create a second shop, ShopB, move the group containing these products under ShopB, and then the import worked as expected, except another problem arose. The product details pages for those products stopped working, they now return 404, but not the product list pages.... Weird... Anyhow, when I go to the website settings for the website, the selected shop is ShopA, but if I change it to ShopB, the product details pages start to work again.

Is there a way to assign more than one shop per website? Or do I have to find another solution for this...


Replies

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply
This post has been marked as an answer

Hi Arnor,

I hade the same problem a while ago.

I ended up deselecting the shop from the Ecommerce setting in the area.

I have left the Language, country and all other options but I have removed the Shop.

Try this approach and see if it works.

Adrian

Votes for this answer: 1
 
Arnór Halldórsson
Arnór Halldórsson
Reply

Awesome that worked! Thank you very much :)

 
Arnór Halldórsson
Arnór Halldórsson
Reply

However I wonder if it will work when we add a second website and the 3rd shop... Then WebA should only display ShopA and ShopB and WebB should only display ShopC...

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Arnor,

You can control this from the Query you use.

Build an index and define separate Queries for each Website.

Or create a single Query, define a Shop paramter and change the default value for Shop parameter in the ProductCatalog module.

Adrian

 
Arnór Halldórsson
Arnór Halldórsson
Reply

Ahh yes of course... Thank you very much :)

 
Nicolai Pedersen
Reply

The 404 comes from the checkbox in customized URLs ("404 for products not in website shop"):

https://doc.dynamicweb.com/documentation-9/platform/advanced-settings/web-and-http#3515

 

You must be logged in to post in the forum