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 an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


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 7 guests