You may also like

2.x, 3.x
Simple Checkout and Registration
699 грн.499 грн.
59
Simple is the best module for creating a convenient checkout and registration form.Thanks to it, you can customize the order or re..
2.x, 3.x
Bulk price management
699 грн.499 грн.
87
Module for mass management of prices, discounts, margins, promotions for products depending on the category, manufacturer, custome..
2.x, 3.x
Telegram notifications
699 грн.499 грн.
19
Telegram notifications – the OpenCart module has been created and allows you to receive notifications about orders, registered cus..

rel="canonical" attribute in OpenCart pagination and sorting

rel="canonical" attribute in OpenCart pagination and sorting
BonusBonus +50 грн. to your account
Special price:499 грн.
Old price:699 грн.
You save:200 грн.

This modifier adds a tag to sorting and pagination pages in OpenCart, preventing duplicate content and improving SEO. This helps search engines correctly index product pages and prevents duplicate content from appearing in search results.

How does the modifier work?

  • Determines whether the page parameter is present in the URL.
    • If there is limit or page > 1, then this is a sorting or pagination page.
  • Generates a URL without pagination parameters
    • Checks whether http or https protocol is used.
    • Removes all parameters after ?, leaving only the base URL.
    • If the URL ends with /, removes that slash.
  • Adds rel="canonical" to the page's head
    • Inserts a <link rel="canonical"> tag after <base href="..."> in the header file.
    • If there is no limit or page parameter or it is equal to 1, the tag is not added.

Why is this necessary?

Google may perceive paginated pages ( page=2, page=3, etc.) as duplicate content, which negatively impacts SEO. This modifier tells search engines that the canonical version of a page is the first page of product listings, articles, and other elements. This tool automatically manages canonical links, improving the relevance of pages in search results.

Characteristics
OpenCart2.0, 2.1, 2.2, 2.3, 3.0
PHP7.0 – 8.5
XML modificationYes
LocalizationEnglish, Ukrainian, Russian

Leave your review about this product

Bonus Get bonus +50 грн. for your review Bonus program
Иван, 27.08.2025 17:16
В opencart 3 не ставит канонические ссылки canonical на страницу контактов?
Administrator's message:

Для пагинации и сортировки. Для сервисных страниц есть другой модификатор который добавляет мета тег robots.

Guest, 20.10.2025 22:47
Будет ли тайтл у каждого page 2,3 свой?
Administrator's message:

Задача дополнения - добавление тега <link rel="canonical"> для предотвращения дублирования контента на страницах пагинации и сортировки. Он не изменяет заголовки страниц (тайтлы) для каждой страницы пагинации. То есть, тайтл у страниц page=2, page=3 и так далее останется таким же, как и у первой страницы. Если вам нужно, чтобы у каждой страницы пагинации был свой уникальный тайтл, это потребует дополнительной настройки.

Write a review

Note: HTML is not translated!
AI Assistant

Recently viewed

2.x, 3.x
Canonical attribute for pagination and sorting

Featured

Collections, Series, Landing Pages
699 грн.499 грн.
2
SEO Search Pages
699 грн.499 грн.
0