on 2019 Jun 21 3:40 PM
Hi,
We are using the OOB SiteMapMediaJob to generate the sitemaps. It work fine and is generating 7 different xml which we can see in cms site through hmc.
The xml are not named as sitemap.xml but as Product-en-USD-1998943966038873537.xml, for example.
when we go to https://localhost:9006/storefront/sitemap.xml it still shows the old sitemaps with only few products.
Do we need to manually rename and upload the generated sitemaps to specific location?
Hi ,
Are you trying to check the product sitemap after running the job and reloading https://localhost:9006/storefront/sitemap.xml ?
Just FYI.. Job creates a new media instance for each sitemap (Ex. Product, Category..) every time it runs.
So, please check once the latest job runs successfully you are trying to use the latest media URL of generated XML.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If it is multiple site configuration, can you please try to access the sitemap with your site URL, not with localhost? ex.https://siteurl:9006/storefront/sitemap.xml or https://siteurl/storefront/sitemap.xml
SiteMapController should be in your storefront extension. path : /yacceleratorstorefront/web/src/de/hybris/platform/yacceleratorstorefront/controllers/misc/SiteMapController.java
Thanks Sumit, found the controller. Let me debug in local. But even when we created the sitemaps in our dev server cms site it is not reflecting.
https://dev-services.gehealthcare.com/gehcstorefront/sitemap.xml
Hi
The names of the sitemap for product is correct as this is by default ootb naming convention. You can check the sitemap generators for different types. Did you able to re run the cron jobs and see if those are still not getting generating?
Can you please delete the old sitemap xmls and then run the job again and tried it? Sometimes the changes doesn’t reflect so we may need to refresh the sitemaps xmls
As you mentioned you are able to see changes in hmc did you saw the updated products in the xmls ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not working even after server restart. My localhost url is as below and for sitemap.xml I using the below url
https://localhost:9006/healthcarestorefront/?clear=true&site=healthcareSite_US
for sitemap https://localhost:9006/healthcarestorefront/sitemap.xml
Hi - the name of the file is correct as per the default implementation. Please check https://help.sap.com/viewer/4c33bf189ab9409e84e589295c36d96e/1905/en-US/8adb25b386691014af16eb036124... for more details.
It will also be helpful to check ProductPageSiteMapGenerator.java
and AbstractSiteMapGenerator.java
to understand how the name of the file is formed.
You can execute the query given in ProductPageSiteMapGenerator
to find out which products will be there in the file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.