If you like DNray Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...

 

Pre-built modules for proper pagination

Started by untoneRox, Jun 18, 2023, 12:39 AM

Previous topic - Next topic

untoneRoxTopic starter

Hello there!

A programmer is working on an online store with pagination using Opencart and has run into an issue where the pagination pages are being flagged as duplicates of the promoted pages. To solve this, they found two solutions: 1) adding rel="canonical" from all pagination pages to the first one in the category /category/ or 2) adding rel="canonical" from all pagination pages to /category/?limit=100. They chose to ignore Google's recommendations on rel="prev" and rel="next".

As a seo, the first option is preferred in order to promote the /category/ page, even though not all products are listed on that page. However, promoting /category/?limit=100 may not be ideal.

Now, onto the questions:
1) Which option would you choose?
2) Will adding rel="canonical" using Javascript work?
3) Are there modules available for Opencart to properly add rel="canonical" for pagination?

Feel free to share your thoughts on the matter!
  •  


mbuilders

The website should function properly for two types of category URLs:
1. id1-based URL /category/50 with id-categories in the URL
2. id2-based URL /category/raznyetovary with unique category names in transliteration.
It is important to specify the main category on item 2 (canonical).

To achieve this, transitions are made through .htaccess in Apache via mod_rewrite. Additionally, the PHP code of the website needs to be edited in the header to implement the canonical tag.
  •  

Softok

Would you like to consider an alternative?

To ensure the unification of TDKh1 across these pages, we propose adding "- page N". Additionally, for all pages, with the exception of the first one, we suggest removing SEO text. While this may pose some challenges for programmers, it will prevent duplicate content and ensure that the necessary pages remain indexed. Moreover, implementing this approach will enable the use of next/prev for the paginator. It's essential to note that JS additions to the head will not work correctly in this scenario.
  •  

bunnyspacy

Should someone desire to do so, they may utilize pagination.

By utilizing the "prev," "next," and "index" functions, the search engine can effectively traverse all pages and index all products.

When examining the pagination on ocStore, it appears to be properly implemented.
  •  

Chaiskchist

1) Option 1, adding rel="canonical" from all pagination pages to the first one in the category (/category/), seems to be the preferred choice from an SEO perspective. While not all products may be listed on the first page, it helps promote the main category page as the canonical version.

2) Adding rel="canonical" using Javascript is generally not recommended. Search engines may not always execute or interpret JavaScript accurately, so it's better to include the rel="canonical" directly in the HTML markup of the page. This ensures compatibility with all search engines and improves the chances of successful indexing.

3) There might be modules available for Opencart that can help you properly add rel="canonical" for pagination. It's recommended to explore the Opencart extension marketplace or consult the Opencart community for recommendations on reliable modules.


When it comes to handling pagination in e-commerce websites, there are a few considerations to keep in mind from an SEO perspective:

1) Pagination and duplicate content: Pagination can often lead to duplicate content issues, as different pages may have similar or identical content. This can negatively impact search engine rankings. The use of rel="canonical" helps indicate the preferred or canonical version of the content to search engines.

2) Rel="prev" and rel="next": Google recommends using rel="prev" and rel="next" tags to indicate the relationship between paginated pages. These tags help search engines understand the structure and sequence of the paginated content. However, you mentioned choosing to ignore these recommendations.

3) Choosing between /category/ and /category/?limit=100: While promoting the main category page (/category/) is generally preferred, it might not show all products if pagination is used. The alternative option (/category/?limit=100) may not be considered ideal because it may not accurately represent the entire content of the category.

Considering these factors, if you decide to ignore Google's recommendations on rel="prev" and rel="next," option 1 (adding rel="canonical" from all pagination pages to the first one in the category (/category/)) seems more favorable for promoting the main category page. However, it's important to carefully evaluate and test the impact on your specific website.

Regarding Opencart modules for adding rel="canonical" for pagination, it would be best to explore the Opencart extension marketplace or consult the Opencart community for modules specifically designed to handle pagination and SEO.
  •  


If you like DNray forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...