Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » Products in Sitemap.xml

Products in Sitemap.xml

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

I am trying to get products to show up in Sitemap.xml but I can't get it to work on a DW 9.4.9 site. Here's what I tried:

1. Enabled "Show products in sitemap" on Area settings
2. Assigned primary group to all products
3. Groups are set to show in Sitemap
4. Groups have a primary products page
5. Rebuild the index

Yet when I access /Sitemap.xml I can see pages, and even ecom navigation for groups (for example /products/group-name) but no products.

Am I missing a step or setting?

 


Replies

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Bump. Any recommendations on how to make the sitemap work again?

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Bump....Are products in the sitemap still supported and supposed to work? Or should I look into building my own stuff?

 
Nicolai Pedersen
Reply

"It works on my machine", see dump...

There are a lot of things that need to be in place - I need a URL to check it out.

BR Nicolai

Capture.PNG
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hmmm, interesting. The URL is here: http://dev-rizzo.dw-demo.com/

Thanks,

Imar

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I have 2 solutions running on the same application version: 9.4.14.

They are both set up similarly but one of them shows Ecom categories in Sitemp while the other one does not.

https://www.austral.ro/sitemap.xml - shows

https://www.rtc.ro/sitemap.xml - does not show

Both have 

Link to Google Sitemap = True

Include products inside sitemap.xml = True

The only difference that I have noticed id that the one that works had the Ecompage published while the other one has it hidden.

But even so, before the upgrade both showed the same type of sitemap.

I remember the publishing of the Ecom node had an influence on the navigation. Maybe it has some influence on the sitemap as well in newer versions?

Thanks,

Adrian

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

Piggy-backing on this thread, I am running with the same issue as Imar.

  • My product has a primary group
  • The group has a "Primary page"
  • I reindexed the repository
  • The website's Robots.txt settings are set properly (afaik)
    • Link to Google Sitemap = True

    • Include products inside sitemap.xml = True

 

What am I doing wrong? Is there any cache I need to invalidate?
Using 9.4.18

 

Best Regards,

Nuno Aguiar

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Bump... any thoughts or ideas?

 

  • I've confirmed products have a primary group
  • I tried to set the group's prumary page
  • I tried setting the Shop on the product to match the website's Shop

 

Nothing works. Could there be a bug? Here's a live website where it used to work https://www.australiangold.com/​. If that's not a DW website, it means I need to provide you with a different way to access that website.

 

Best Regards,

Nuno Aguiar

 

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Made some progress on this and found a way to make it work sometimes. It turns out that if "Assortments in frontend" is turned on under Settings | Ecommerce | Advanced configuration | Assortments, it doesn't work. When I turn it off, it works for sites that don't have assortments. I think that makes sense and solves it for those sites.

For sites that do use assortments, it still doesn't work, regardless the setting. I would expect the navigation provider to pick up the Anonymous assortment, but it doesn't. Should it?

Imar

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi Imar,

I was able to reproduce the issue on last DW95 when the setting is enabled regardless products (output by navigation enabled with Standard/SimpleAssortment provider) include in an assortmen active/not active (Anonymous option was used). It is the difference with your description above or I do not understande your way regarding how site can use(have) an assortment, since shop/product group(s)/product(s) can be attached to assortment only and the option turns rendering of assortment off at all. Please, clarify. Perhaps, the issue depends on some extra conditions, since I see the both Adrian's sites mentioned above have assortment turned on in frontend. 

BR, Oleg QA 

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi Oleg,

I'm not sure I understand what you are saying exactly. 

I think I see the following situations:

1. Not using assortments: I think this currently works OK and you just need to remember to turn off that checkbox in the Settings area. IMO, it makes sense to do so, as there are no assortments.

2. Using assortments. When the site uses assortments, I would expect the Anonymous assortment to show up as products in the sitemap, just like they do for the regular navigation. Does that make sense?

Imar

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply
This post has been marked as an answer

HI Imar,

Thanks a lot for the clarifications. New TFS 57935 has been submitted to implement the feature.

BR, Oleg QA

Votes for this answer: 1
 
Anders Ebdrup
Anders Ebdrup
Reply

Hi Oleg,

 

How far are you with a solution here?

 

Best regards, Anders

 
Nicolai Pedersen
Reply

57935 will be released with 9.7 on Tuesday.

 
Andrew Rushworth
Reply

This still seems to be an issue in DW9.17.7.
If I enable "Assortments in frontend" - then products dont' appear in the sitemap.xml
But if I disable "Assortments in frontend" - then products appear in the sitemap.xml - the problem is assortment products also appear - which means they getting index and searchable.

I need to be albe to use assortments (enable checkbox), but also have them show in the sitemap.xml

 

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Andrew

I am not sure I quite understand your request.

If products are in an assortment - should they be in the sitemap or not? 

In later versions of DW9 you can setup the sitemap.xml to run on the URLs and not the navigation which is the older version. DW10 only has the URL based sitemap.xml

 
Andrew Rushworth
Reply

Hi Nicolai,

If I enable the "Assortments in frontend" option, then I get no products appearing in the sitemap.xml - products that do not belong to an assortment also do not show.
If I disable the "Assortments in frontend" option ,then all products show in the sitemap.xml including those in an assortment.
Essentially, in order to get products to show in the sitemap i need to disable "Assortments in frontend" - but I need this enabled when hiding products from the general public before launch.
What Imar said on 
Posted on 19/11/2018 14:33:56

"In later versions of DW9 you can setup the sitemap.xml to run on the URLs and not the navigation which is the older version"
Can you explain more about the two options?

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Andrew

The sitemap.xml can be genereated either by the navigation system, inheriting the behavior of that, or based off the "new" url providers that can be setup on a page - where as the 'old' URLProviders are setup under settings. See more here: https://doc.dynamicweb.com/documentation-9/platform/platform-tools/customized-urls#8702

You can then enable running the sitemap.xml based off the URLs of the site and not the navigation.

BR Nicolai

 
Andrew Rushworth
Reply

Hi Nicolai,

There is somethign I'm missing:

I've Enablaed thenew provider, adn removed all checkboxes in Ecommerce section.
I've then gone to my products page and set up the url provider:

On the Navigation tab, i've tried with and without the "Ecommerce Navigation enabled" - but I now get an empty sitemap.xml. Not even content pages are showing?
IF i append ?showurlindex=true I see the tree strucutre, but the sitemap.xml does not contain any links.

Is there something else I need to do?

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Did you enable the new sitemap feature as well?

Otherwise provide a URL and I can have a look

 
Andrew Rushworth
Reply

The proodcution site uses the "old" way, but we have the whole assortment issue:
If I enable the "Assortments in frontend" option, then I get no products appearing in the sitemap.xml - products that do not belong to an assortment also do not show.
If I disable the "Assortments in frontend" option ,then all products show in the sitemap.xml including those in an assortment.
Essentially, in order to get products to show in the sitemap i need to disable "Assortments in frontend" - but I need this enabled when hiding products from the general public before launch.
What Imar said on 
Posted on 19/11/2018 14:33:56

I'm testing the "new feature" on a test site behind a firewall as I need to make sure that the sitemap generates with products and we can have the assortments enabled (although I've create a new post about this where direct link to product page still shows an assortment item)

So unfortunately can send an accessible link, but these are my settings:
Is there anything I need to enable on the site level, etc?

 
Andrew Rushworth
Reply

Are there any other settings I need to be aware of?

 

You must be logged in to post in the forum