Developer forum

Forum » Ecommerce - Standard features » Product variants in sitemap.xml

Product variants in sitemap.xml

Jesse Bakker
Reply

Hi,

We got a ecommerce solution with product variants. The product variants dont show there own URLs in the sitemap.xml, instead the url for the default product is shown multiple times. 

Like this:

/Product-Name
/Product-Name
/Product-Name

Instead of:

/Product-Name
/Product-Name/Variant-name1
/Product-Name/Variant-name2

In Customized URLs we set it to:

Ecommerce products and variants (ProductID)
Generates urls for Ecommerce products and variants in the format /Product-Name(.aspx) and /Product-Name/variant-name(.aspx)

On the frontend the pages do get the correct urls just the sitemap.xml isn't. 

Is there some setting we're missing for the sitemap or is this the expecte behaviour? It's on DW 8.8

BR, Jesse

 


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Jesse

I can see that the code includes variants in the sitemap, but does not handle variant urls - I've removed variants from sitemap.xml. TFS#22770 available with next 8.8 hotfix.

BR Nicolai

 
Jesse Bakker
Reply

Hi Nicolai,

Thanks for looking into it. We'll wait for the next release.

BR, Jesse

 
Nuno Aguiar
Reply

Hi Nicolai,

 

It looks like this answers 1 of my questions from http://developer.dynamicweb.com/forum/cms-standard-features/products-pages-in-sitemap-xml.aspx but I am also having other issues with it, which is the sitemap.xml not generating the url with the groupID from the primary group.

 

Could this be added as well to the hotfix?

 

Best Regards,

Nuno Aguiar

 
Kristian Kirkholt
Reply

Hi Jesse and Nuno

The problem TFS#22770 "Variants are loaded in sitemap.xml" has now been fixed in version 8.8.0.9

You are able to find this build in the download section:

http://developer.dynamicweb-cms.com/downloads/dynamicweb-8.aspx

Please contact Dynamicweb Support if you need any additional help regarding this.

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 
Nuno Aguiar
Reply

Hi Kristian,

 

Thanks for the head's up. I already requested the upgrade.

 

BR,

Nuno Aguiar

 
Jesse Bakker
Reply

Hi,

We upgraded the solution to 8.8.0.13 and indeed the products are only shown once in the sitemap.xml. Thanks for that.

But now we got another question, if it is possible to include the specific variant url in de sitemap instead of not including anything for the variants? 

BR, Jesse

 
Nicolai Høeg Pedersen
Reply

I do not think it is a good idea - because Google would see it as duplicate content or just the same page with several URLs and will not give you more search results...

 
Jesse Bakker
Reply

That's indeed a good point for most solutions where variants share a lot of the same content.

But in our specific solution the variants all have their own urls, descriptions, images, etc. So it won't really be seen as duplicate content. 

So it would be great if we could choose for this specific solution to use the variants in the sitemap.xml.

Would that be possible? 

 

You must be logged in to post in the forum