-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Commerce Settings #93
Comments
@marisks Any input? |
As I remember, it is enough to follow configuration documentation here: https://github.com/Geta/geta-optimizely-sitemaps/tree/master#configuration |
@marisks Yeah unfortunately its not working. I am guessing it could be due to it being multi site, multi language, multi catalog it can't get the correct one. If I create my own sitemap and commerce generator by implementing the public virtual member, eg:
And just use the default from the repo as an override:
Then descendants is always empty. |
Have you configured RootPageId for the catalog you want to generate a sitemap? |
Bumping this issue as I've also run into the same problem but I think I've found the cause. This bug only manifests when the user sets the Root page ID to anything other than -1 (which could be the case in a multisite scenario). In
this will be evalutated as true since we have defined a specific page instead of the default root. This will then override the Catalog Root to -1, and since -1 does not exist in the Commerce tree, we get no descendants. I assume the fix for this would be to remove this IF statement because I can't see why we would need to do this? Current workaround for anyone searching for answers would be to follow @jaymarvels' lead and override the |
Are there any additional configuration to get this to work with commerce apart from adding:
services.AddSitemapsCommerce();
In the configuration docs (https://github.com/Geta/geta-optimizely-sitemaps/blob/master/docs/editor-guide.md) it talks about the format and how its currently standard or mobile. If I do check the "standard and commerce" option and run the scheduled job my commerce product pages still do not show in the sitemap.xml.
Is something missing?
The text was updated successfully, but these errors were encountered: