Developer forum

Forum » Ecommerce - Standard features » Multiple websites wwith different products

Multiple websites wwith different products

Anton Marinó Stefánsson
Reply

Greetings,

 

We have a solution with two websites and each website has its own shops with different products. For some reason users are able to google a product and find a link to the wrong website. The get a link to a product that should be on website a but has a link to website b. Any ideas of how i can prevent this?

 

best regars,

Anton 


Replies

 
Shiwanka Chathuranga Dynamicweb Employee
Shiwanka Chathuranga
Reply

if you dnt want to show products between different groups handle that with the permission. 

 

Website Settings > Permissions

then block anonymous users permission and set only groups that can see the products

 

 

 

Then configure the login template website settings > login template

 

if they found the products in google also can not see the product details 

 

 
Anton Marinó Stefánsson
Reply

But i want anonymous users to be able to google the product. i just want them to get the link to the correct page. so the user would get a link to Website A when he googles a product from shop A  and then a link to Website B when he googles products in Shop B

 
Shiwanka Chathuranga Dynamicweb Employee
Shiwanka Chathuranga
Reply

Seems like not technical issue, its something to do with your business logic... you have to double check that.

first check if someone comes from google, what is the logic to identify user is to WEB A or WEB B, thik from business prospective and post here.

then will find technical solution

 
Anton Marinó Stefánsson
Reply

Not sure how to explain better. we have 2 websites and and 2 shops in ecommerse. on both the websites we have selected correct shop in ecommerce. In all the product catalogue apps we have querys filtering out based on the shop ids. Im just wondering if there are any other settings or solutions to force google to show correct website for the product.

 

best regards,

Anton

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I believe we have here 2 separate issues:

1. Wring indexing of products by Google. This is probably caused by the sitemap that is being sent to google. Probably you are using the default sitemap generated by Dynamicweb. This one is accessible by adding /sitemap.xml to your URL. Maybe you should create a custom sitemap and feed that to google

2. What happens when a user accesses the wrong URL. This part can be solved by going to Settings/Web & HTTP and check the option "404 for products not in website language". This will ensure they will not be able to access the products.

I hope this helps.

Adrian

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

Hi guys,

The problem as I see it is that once you're on the Product Details view it seems to bypass the applied index / query the Product Catalogue App uses and allows you to look up any product in the system, and this is actually happening in more than one solution running on different versions of Dynamicweb.

For example look at these two links:

https://skor.s4s.is/skor/skor-s4s-is-skor-doemuskor/fylltir-haelar?ProductId=E-27330352603
https://ellingsen.s4s.is/ellingsen/herrar/ullarfatna%C3%B0ur/ullarbuxur?ProductID=E-27330352603

The product E-27330352603 is only supposed to be available for skor.s4s.is, the product catalogue apps for these pages are set to display products from specific Ecommerce product groups and the product only exists in one of those groups. In this case we're running seperate websites but one shop, index and query.

However in the example Anton gives in the original post we're running two websites (a4.is and legobudin.is) with their own shops, indexes and queries, and a different URL scheme than skor.s4s.is so it should literally be impossible to look up A4 products on Legobudin and vice versa, but yet we can:

https://a4.is/voerur/toeflutusspenni-skaskorinn-blar
https://legobudin.is/%C3%BEemu/toeflutusspenni-skaskorinn-blar

And I can do this on any product list page if I just add the product name at the end of the url, just like on skor.s4s.is if I change the ProductId.

Best regards,
Arnór

 

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Ensure that you set 404 for products not in website shop (and maybe language) on the URL settings. That will give you a 404 if you try to reach a product that is not in the current shop.

https://doc.dynamicweb.com/documentation-9/platform/platform-tools/customized-urls#3514

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

BINGO!

I owe you a beer :D

Best regards,
Arnór

 
Nicolai Pedersen
Reply

Uh - nice, cannot wait. I think I owe you more than one, so it is gonna be a great night once we can settle the score!

 

You must be logged in to post in the forum