Post by opencart-modul » Tue Mar 21, 2023 6:52 am

i have duplicate url problem. opencart 3.0.3.8

For products:
domain.com/product-name
domain.com/main-category/product-name
domain.com/main-category/sub-category/product-name

this link should always be opened
domain.com/product/product-name

For categories:
domain.com/main-category/sub-category/
domain.com/main-category/sub-category1/sub-category2

this link should always be opened
domain.com/sub-category1/
domain.com/sub-category2/


Posts

Joined
Wed Jan 20, 2021 7:26 am

Post by TMD Extension @ » Tue Mar 21, 2023 12:36 pm

It is problem with every website that is using the OpenCart framework. OpenCArt is built in a way that it will have multiple URLs for the same product and sub-category. It is just a pain for SEO and indicates duplicate content that is bad for SEO and ranking.

If you are looking for a simple and reliable solution then I would suggest you add the canonical tag in the product and sub-category page manually in the files.

The canonical tag will tell the search engine to index only the canonical page and leave the rest page. Search engine results will show only the url that is present in the canonical tag.

on the product page. add canonical like this.
https://yourdomain/product-name
<link href="https://yourdomain/product-name" rel="canonical" />

https://yourdomain/category/product-name
<link href="https://yourdomain/product-name" rel="canonical" />

https://yourdomain/category/sub-category/product-name
<link href="https://yourdomain/product-name" rel="canonical" />

The same will go for the sub-category pages.

you can easily find the url of the sub-category and product page from the model function. Let me know if you are looking for codes.

Image

Thanks & Regards
Sehaj Kaur
TMD Extensions
Contact Us For Customisations


Active Member

Posts

Joined
Thu Mar 17, 2022 12:59 pm

Post by JNeuhoff » Tue Mar 21, 2023 7:25 pm

Isn't the link canonical already being generated for product and category pages anyway on OpenCart 3? Hence, there shouldn't be any issues with SEO.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by Jaap » Fri Mar 24, 2023 5:20 pm

Isn't the link canonical already being generated for product and category pages anyway on OpenCart 3? Hence, there shouldn't be any issues with SEO.
Absolutely correct.
There's no issue with duplicated content.

User avatar
Active Member

Posts

Joined
Fri Apr 15, 2011 12:10 am
Location - the Netherlands

Post by neoacevedo » Thu May 04, 2023 4:34 am

I think with Bing will be an issue. Their Guidelines mention about avoid duplicity in the content.
The canonical metatag is present but is present in all pages, including domain/product page. In this case, I could see an error from Bing telling me about the duplicity.

Newbie

Posts

Joined
Fri Apr 28, 2023 1:05 am

Post by halfhope » Thu May 04, 2023 12:43 pm

Hi! You can use seo_pro instead seo_url. All your products would be available by one link with correct redirects.

My extensions in marketplace. [ security | flexibility | speedup ]


User avatar
Active Member

Posts

Joined
Tue Dec 10, 2013 9:44 pm
Location - San Diego

Post by Dutch Pride Code » Thu Jun 22, 2023 5:48 pm

Just in case you haven't found a solution yet, I'm using this extension to automatically generate canonical tags for all category and product pages. This also works for example when a category has 10 pages of products (e.g. using the "&page=" parameter in the URL). Normally these pages would be registered as duplicate content. The canonical tag however, shows search engines what URL to index as the original, rather than indexing page1, page2, page3, etc. of the same category with the same description and title.

User avatar
Active Member

Posts

Joined
Sun Jan 26, 2020 9:46 pm

Post by lesa9512 » Mon Jan 08, 2024 10:08 pm

On my OpenCart website, I have products like:

Ge 132 500 capsules
Ge 132 1000 capsules
Ge 132 2000 capsules.
To prevent duplicate content issues, I need to indicate that Ge 132 500 capsules is the main product for the 1000 and 2000 capsule variants. How can I achieve this?

Is it possible to program a text field in the product edit page where I can input the URL of the main product (in my case, the URL of the 500 capsules)? Also, if I leave this field empty, can it avoid setting up a canonical URL? Similar to this addon - https://www.opencart.com/index.php?rout ... ces&page=4

Newbie

Posts

Joined
Mon Jan 08, 2024 10:02 pm

Post by johnp » Tue Jan 09, 2024 5:53 am

lesa9512 wrote:
Mon Jan 08, 2024 10:08 pm
On my OpenCart website, I have products like:

Ge 132 500 capsules
Ge 132 1000 capsules
Ge 132 2000 capsules.
To prevent duplicate content issues, I need to indicate that Ge 132 500 capsules is the main product for the 1000 and 2000 capsule variants. How can I achieve this?

Is it possible to program a text field in the product edit page where I can input the URL of the main product (in my case, the URL of the 500 capsules)? Also, if I leave this field empty, can it avoid setting up a canonical URL? Similar to this addon - https://www.opencart.com/index.php?rout ... ces&page=4
ge-132-500-capsules
ge-132-1000-capsules
ge-132-2000-capsules

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK
Who is online

Users browsing this forum: Majestic-12 [Bot] and 40 guests