Page 1 of 1

[SOLVED] Incorrect breadcrumbs

Posted: Tue Apr 02, 2024 6:50 pm
by diyweb
I am new to this platform, having used Zen cart for a number of years, and need assistance with the breadcrumb generation.

I just started setting up a new site and noticed that the breadcrumb gets repeated for the last category when clicking through the categories available. Once you click on a product then the problem seems to go away.
My website ling is https://diy.web.za with the specific examples at https://diy.web.za/index.php?route=prod ... ath=1_3_49 (incorrect breadcrumb string) and then at https://diy.web.za/index.php?route=prod ... ath=1_3_49 where breadcrumb shows correctly after clicking on a product.

The only changes made from the standard install was to modify the stylesheet.css file to produce the desired look.

Please assist

Re: Incorrect breadcrumbs

Posted: Tue Apr 02, 2024 7:02 pm
by diyweb
Let me just add that the breadcrumb seems to be working great when you click on brand and select a manufacturer. It only gets duplicated when selecting categories.

Re: Incorrect breadcrumbs

Posted: Wed Apr 03, 2024 1:30 am
by ADD Creative
What version of OpenCart?

Re: Incorrect breadcrumbs

Posted: Wed Apr 03, 2024 1:48 pm
by diyweb
Thank you for your response. I installed the latest version 4.0.2.3

Re: Incorrect breadcrumbs

Posted: Wed Apr 03, 2024 4:23 pm
by ADD Creative
It could be this issue. https://github.com/opencart/opencart/issues/13777
Unfortunately 4.0.x version of OpenCart have some bugs like this.

Re: Incorrect breadcrumbs

Posted: Wed Apr 03, 2024 6:22 pm
by diyweb
Thank you for pointing me in the right direction!

The problem on my side has been resolved. I downloaded the current version of the "\upload\catalog\controller\product\catalog.php" from GITHUB. After making a backup of the current file, I simply uploaded the latest version and the Breadcrumb trail is now working as expected.

PS. Currently over 900 nested categories with planned 35K-45K products on offer.

Re: Incorrect breadcrumbs

Posted: Wed Apr 03, 2024 6:57 pm
by paulfeakins
diyweb wrote:
Wed Apr 03, 2024 1:48 pm
Thank you for your response. I installed the latest version 4.0.2.3
Currently most developers don't recommend that version, see here:
viewtopic.php?t=233342

Re: Incorrect breadcrumbs

Posted: Fri Sep 13, 2024 6:20 am
by fvapparel
THANK YOU diyweb!!!! I was having the same problem with my OC 4.0.2.3 store and it was driving me crazy. The code I downloaded was from the GITHUB upload/catalog/controller/product/category file, and replaced the code that was there, and PRESTO my breadcrumbs work as expected now. Thank you for posting your solution!

Re: Incorrect breadcrumbs

Posted: Fri Sep 13, 2024 7:41 pm
by paulfeakins
fvapparel wrote:
Fri Sep 13, 2024 6:20 am
THANK YOU diyweb!!!! I was having the same problem ... Thank you for posting your solution!
Great, I'll mark this [SOLVED].