rel="canonical" attribute in OpenCart pagination and sorting

BonusBonus +49 грн. to your account
Special price:399 грн.
Old price:699 грн.
You save:300 грн.


Characteristics
OpenCart2.0, 2.1, 2.2, 2.3, 3.0
PHP7.0 – 8.5
XML modificationYes
LocalizationEnglish, Ukrainian, Russian
Statistics 3315 55
Added21.03.2025
Updated24.04.2026 · 3 months ago
Files canonical_oc3x.ocmod.zip

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.

File Name Added Modified
canonical_oc2x.ocmod.zip
Size: 1.23 KB
21.03.202521.03.2025
canonical_oc3x.ocmod.zip
Size: 1.14 KB
21.03.202524.04.2026

Leave your review about this product

Bonus Get bonus +100 грн. for your review Bonus program

Write a review

Note: HTML is not translated!
AI Assistant

Recently viewed

2.x, 3.x
Canonical attribute for pagination and sorting
699 грн.399 грн.
0
3316 55

Featured