No results found

Try a different search query

Popular searches:

Add to Cart

Cart

You have no purchases yet

Browse Marketplace
Original Subtotal:
Product discounts:
Quantity Discount:
Total:
View Cart

Multilingual sitemap in OpenCart: review of the «Sitemap Generator» module

Separate sitemaps for each language with hreflang and x-default, product photos for Google Images, static files without database load, and automatic updates on a schedule. We walk through the Sitemap Generator settings screen by screen.

5 min read
105
0
Multilingual sitemap in OpenCart: review of the «Sitemap Generator» module

The standard sitemap in OpenCart 3 outputs a single file without language versions, without hreflang, and without images. For a monolingual store with several hundred products, this is tolerable. But as soon as a second language appears, Google starts confusing page versions, part of the catalog gets indexed with a delay, and product photos almost never make it into Google Images. In addition, the standard map is built with database queries on every bot visit, which noticeably loads the server on a large catalog.

The «Sitemap Generator» module from oc_kit addresses exactly these tasks: a separate map for each language with hreflang and x-default, product images in the map, static files on disk instead of on-the-fly generation, and automatic updates on a schedule. Below we'll walk through the settings screens and look at what is enabled where.

General settings: generation mode and file structure

The first tab defines how the map is built. The main decision here is static files or dynamic generation. In static mode, the sitemap is built in advance and stored on disk, so Googlebot receives a ready file without any database query. The developer recommends it for heavily loaded stores. Dynamic mode generates the map on every request and is convenient for a small catalog or during the setup stage.

General settings of the Sitemap Generator module in the OpenCart admin
The «General» tab: generation mode, main file name, splitting into parts, gzip and XSL.
  1. Generation mode. Static files (recommended) or dynamic generation in real time.
  2. Save directory. An empty field means the site root. The module immediately shows whether the folder is writable.
  3. URLs per file. The limit of links in one file: maximum 50,000; for catalogs with images, the developer advises 10,000–20,000. If exceeded, the file is automatically split into parts.
  4. File grouping mode. Combined (sitemap-1.xml, sitemap-2.xml) or a separate file for each content type: sitemap-products.xml, sitemap-categories.xml, etc.
  5. Gzip and XSL styles. Gzip reduces file size; XSL turns sitemap.xml in the browser into a readable table with URLs, dates and priorities.
  6. Robots.txt line. A ready Sitemap directive with the address of the main file, which you just need to copy.
  7. Generate now. Manual start of generation. Next to it is a button to delete all generated files.

Breakdown by content type is handy for diagnostics: in Search Console you can immediately see how many products and how many categories are actually indexed.

Language maps and hreflang

For a multilingual store, this is the main section. Each language gets its own map with its own URL prefix and hreflang tags, and one of the languages can be marked as x-default for the audience for which no separate version exists. If the topic of language prefixes and hreflang is new to you, start with the article about setting up multilingual support in OpenCart: it explains why all this matters to a search engine.

Language map and hreflang settings in the Sitemap Generator module
The «Language maps» tab: the form for a new language map and the table of already created maps.
  1. Language. The store language for which the map is created.
  2. URL prefix. An empty field for the main language without a prefix; for example, "en" will produce addresses like /en/product/.
  3. Base file name. The file name of the map for this language without the .xml extension.
  4. Hreflang locale. The language and region code for the hreflang tag, for example en-US.
  5. x-default. Marks the default language for the remaining audiences.
  6. x-default mark in the table. Shows which map is currently primary, plus the status and number of URLs in each.
  7. Actions. Generating a separate language map, editing and deleting.

Custom and excluded URLs

Not everything that needs to be indexed lives in the OpenCart catalog. Landing pages, promotion pages or individual sections can be added manually, and technical pages that are not needed in the index can be excluded with patterns.

Adding custom and excluding unnecessary URLs in Sitemap Generator
The «Custom and excluded URLs» tab.
  1. URL. A full address or a relative path: the module supplements relative paths with the store address.
  2. Priority, change frequency and last modified date. Set separately for each custom URL; the date is optional.
  3. Add URL. A new row for another address. Custom URLs are added once to the default language map.
  4. Excluded URLs. One pattern per line. A line without an asterisk matches any URL that contains it; an asterisk works as a wildcard for an exact pattern.

Product images in the map

For product photos to appear in Google Images, they must be provided in the sitemap. The module adds images to the product map and lets you choose which files to output.

Product image settings in the Sitemap Generator site map
The «Images» tab.
  1. Include product images. The main switch for pictures in the map.
  2. Image source. Original or resized image from the OpenCart cache.
  3. Additional product images. Besides the main photo, output the product gallery as well.
  4. Max images per product. A limit on the number of pictures per product.
  5. Generate resizes. Creates all thumbnail copies in advance so that the files are already on disk when Googlebot arrives and the server is not overloaded.

What to consider before buying

The module works on OpenCart 3.0.x (from 3.0.0 to 3.0.5) with PHP from 7.4 to 8.4. It requires ionCube Loader, so before purchasing, check that it is installed on your hosting. Activation is by license key, with a license for one domain. The module does not contact the developer's server.

There are two options for automatic map updates. CLI Cron is suitable for VPS or dedicated servers: you copy the ready command from the settings into crontab. HTTP Cron is for hostings without crontab: a URL with a private key is connected to any HTTP scheduler. Keep this URL to yourself, like a password. Every generation is written to a log: date, launch method, number of files, duration and errors.

In static mode, remember that the map is current as of the last generation. Without a configured cron, new products will appear in the sitemap only after a manual run. The separate tabs «Content types», «Hreflang» and «Log» are not shown in the module's gallery, so it is worth clarifying their details with the developer.

Who it suits

The biggest winners are multilingual stores on OpenCart 3 where the standard sitemap provides no separate language maps and hreflang, as well as large catalogs for which it is important not to load the database on every bot visit. It is also useful for those who want to get traffic from Google Images.

If you have one language, several hundred products, and a sitemap already generated by an SEO module installed in the store, a separate generator may be unnecessary. First check what your current map actually outputs.

Sitemap Generator - Multilingual sitemap for your store from oc_kit on the OpenCart Code marketplace. You can ask the developer about setup directly on the module page.

Go to the module

Recommended Products

Sitemap Generator - Multilingual sitemap for your store

Multilingual Sitemap Generator for Search Engines

5
sales
902 ₴ -25%
677 ₴
OCTemplates

OCTemplates

OCTemplates — команда розробників та дизайнерів з України з досвідом у веброзробці з 2002 року. З 2015 року спеціалізуються на шаблонах та модулях для OpenCart: швидких, SEO-оптимізованих і готових до роботи в реальних умовах e-commerce. Продукти OCTemplates використовують тисячі інтернет-магазинів у Європі, Азії, Північній Америці та Австралії. Кожен покупець отримує не лише готове рішення, а й технічну підтримку та консультації з налаштування магазину.

articles
37
views
31,646
likes
26
follower
1
Related Posts
Comments (0)
Replying to

Please log in to leave a comment

Log In

No comments yet

Be the first to comment on this article!

We use cookies

We use cookies and similar technologies to improve your experience, analyse traffic, and show personalised ads. Read our Cookie Policy for details.