Post by antmagn » Fri Jul 25, 2025 4:10 pm

Hello everyone. I recently added a second language (Greek) in my oc and I'm trying to include it in my sitemap, I use different SEO_URL for each language. The extension that I use is the default one and it generates an xml based on the current language each time, at least that's what I understand.
I red that it's not a good idea to add two separate xml sitemaps in google, it hurts seo and thinks they are two different things. Is there another extension that can do this in a single xml with hreflang ?

Version 3.0.3.8
default theme
PHP: 7.3.13

Attachments

???
CaptureSEO.JPG
seo_url
???
Capturesitemap.JPG
default extension

New member

Posts

Joined
Fri Jul 23, 2021 8:38 pm

Post by khnaz35 » Fri Jul 25, 2025 10:45 pm

The default sitemap extension doesn't support this functionality out of the box. You'll need to review the code in:
catalog/controller/extension/feed/google_sitemap.php
To achieve the desired output, you must modify the code accordingly. This includes adapting it to cover all relevant parts of your site, such as products, categories, manufacturers, and information pages, so they respond correctly for each language.

Got a burning question at 3 AM that even Google shrugs at? There’s a not-so-secret inbox that might just have your answer: khnaz35@gmail.com
Breathe in some nature while you're at it. It’s cheaper than therapy. :-*

Feel free to sling a bear my way via PayPal @ khnaz35@gmail.com


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by nonnedelectari » Thu Aug 14, 2025 10:19 pm

antmagn wrote:
Fri Jul 25, 2025 4:10 pm
Hello everyone. I recently added a second language (Greek) in my oc and I'm trying to include it in my sitemap, I use different SEO_URL for each language. The extension that I use is the default one and it generates an xml based on the current language each time, at least that's what I understand.
I red that it's not a good idea to add two separate xml sitemaps in google, it hurts seo and thinks they are two different things. Is there another extension that can do this in a single xml with hreflang ?

Version 3.0.3.8
default theme
PHP: 7.3.13
"I red that it's not a good idea to add two separate xml sitemaps in google, it hurts seo and thinks they are two different things."
That is incorrect, you can submit as many sitemaps as you like.

easiest way is to create seperate sitemaps per language, just copy the original controller and set the language.

Active Member

Posts

Joined
Thu Mar 04, 2021 6:34 pm

Post by khnaz35 » Thu Aug 14, 2025 11:35 pm

For details sitemap you can read from google official source

https://developers.google.com/search/do ... ld-sitemap

As per Google

You might not need a sitemap if:
  • Your site is "small". By small, we mean about 500 pages or fewer on your site. Only pages that you think need to be in search results count toward this total.
    Your site is comprehensively linked internally. This means that Googlebot can find all the important pages on your site by following links starting from the home page.
    You don't have many media files (video, image) or news pages that you want to show in search results. Sitemaps can help Google find and understand video and image files, or news articles, on your site. If you don't need these results to appear in Search you might not need a sitemap.

Got a burning question at 3 AM that even Google shrugs at? There’s a not-so-secret inbox that might just have your answer: khnaz35@gmail.com
Breathe in some nature while you're at it. It’s cheaper than therapy. :-*

Feel free to sling a bear my way via PayPal @ khnaz35@gmail.com


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia
Who is online

Users browsing this forum: No registered users and 11 guests