Page 1 of 1

OpenCart 3.0.2.0 How To Remove the Link From Last Item of Breadcrumb

Posted: Wed Jun 13, 2018 3:39 pm
by cosmicx
I've done this before with v2.3.x, thanks to the help provided by the people on this forum.

Now, I'm setting up OpenCart 3.0.2.0 on a dev server and I'm currently configuring it for SEO.

I want to achieve the following:
1. Remove the Link of the last item of the breadcrumb. Or remove the anchor tag from the last last item of the breadcrumb trail, it should be just plain text.
2. Remove "Home" from the breadcrumb. Home shows in Google Search Result Page.

Example:
https://www.store.tld > Home > Product Title
https://www.store.tld > Home > Category Title
https://www.store.tld > Home > Brand > Brand Name
https://www.store.tld > Home > Information Page Name


What I've tried?

I copied my working breadcrumb code snippet from OpenCart 2.3.x and converted it to twig compatible code using an online code converter. But that didn't worked.

However, this module below, fixes the product breadcrumb part.
https://github.com/angela-d/opencart-pa ... b-category

In Google search page, it shows:
https://www.store.tld > Category Name > Product Title

...instead of:
https://www.store.tld > Home > Product Title
or
https://www.store.tld > Home > Category Name > Product Title

I hope someone would jump in and help out.

Re: OpenCart 3.0.2.0 How To Remove Link From Last Item

Posted: Thu Jun 14, 2018 2:36 am
by IP_CAM
Check here about this:
---
Remove Breadcrumb Product Name OC v.2.x - 3.x
https://www.opencart.com/index.php?rout ... n_id=33550
---

Re: OpenCart 3.0.2.0 How To Remove the Link From Last Item of Breadcrumb

Posted: Thu Jun 14, 2018 12:25 pm
by cosmicx
@IP_CAM

I edited my post to make it clearer.

My other requirement is:
Remove the Link of the last item of the breadcrumb. Or remove the anchor tag from the last last item of the breadcrumb trail, it should be just plain text.

Example:
Home > Category > Product Name

Where

Code: Select all

Product Name
should have no hyperlink, no anchor tag, just plain text.

I've check the module you posted, it doesn't satisfy my requirement. You might have understood that I am wanting to remove the last item of the breadcrumb trail. I've updated it to make it clear.

Re: OpenCart 3.0.2.0 How To Remove the Link From Last Item of Breadcrumb

Posted: Thu Jun 14, 2018 8:21 pm
by IP_CAM
Something like this then, I assume ...
Remove Last Link from Breadcrumb for OC2 (vQmod)
https://www.opencart.com/index.php?rout ... _id=27874&

Re: OpenCart 3.0.2.0 How To Remove the Link From Last Item of Breadcrumb

Posted: Fri Jun 15, 2018 3:55 pm
by cosmicx
Yeap, exactly like that.

Like I said above, I have done it before with the help of the forum, but now I want to make it work on version 3.0.2.0

Re: OpenCart 3.0.2.0 How To Remove the Link From Last Item of Breadcrumb

Posted: Fri Jun 15, 2018 4:45 pm
by DigitCart

Re: OpenCart 3.0.2.0 How To Remove the Link From Last Item of Breadcrumb

Posted: Fri Jun 15, 2018 5:51 pm
by cosmicx
NIce!

I further check the source code, it has no rich snippet. That's one of my other requirements.

Re: OpenCart 3.0.2.0 How To Remove the Link From Last Item of Breadcrumb

Posted: Fri Jun 15, 2018 6:26 pm
by DigitCart
I updated my demo, please check it now. Is this what you wanted?

Re: OpenCart 3.0.2.0 How To Remove the Link From Last Item of Breadcrumb

Posted: Wed Jun 27, 2018 10:41 pm
by cosmicx
Yeah, something like that.

That solves my problem. Is it available from the marketplace?

But I require additional function like this one:
https://github.com/angela-d/opencart-pa ... b-category