How to individualize the breadcrumbs ?

LiteCart Fan
Da Germany
Membro dal gen 2020

Hi there,

I want to replace the breadcrumbs in the product-page, which worked fine (just removed the {snippet:breadcrumbs} in "pages/product.inc.php" to where I wanted it in "views/box_product.inc.php") ... so easy, so good.

But now I want to shorten the breadcrumbs, for example:

Instead of actually

"Home / Kategorie / Modellbau Artikel / Bäume & Büsche / 5er Set Gelbe Mini Frühlingsbäume"

to

"Modellbau Artikel / Bäume & Büsche / 5er Set Gelbe Mini Frühlingsbäume"

I found this theme from May 2021:

https://www.litecart.net/de/forums/5/feature-requests-and-new-ideas/14766/how-to-remove-categories-link-from-breadcrumbs

in which one guy asked for the same (as I understood). He told to delete something in "Line 53" in the "pages/product.inc.php" ... but there is no "line 53" and nothing with breadcrubs (only the snippet, which I removed).

So I found "views/breadcrumbs.inc.php" but I totally didn´t understand it.

Any idea where I can shorten the breadcrumbs?

Would be great and thanks in advance :-)

LG Hansy

LiteCart Fan
Da Germany
Membro dal gen 2020

Hi Tim,thanks for your fast reply (and I found the right file). First I found an error in the

https://www.litecart.net/de/forums/5/feature-requests-and-new-ideas/14766/how-to-remove-categories-link-from-breadcrumbs

article ( and corrected it ). But even then it´s not helping with my problem, because this will only delete the link (but not the printed word). I also saw your file and deleted some passages, but then it will delete all category-structures in the breadcrumbs. I only want to delete the (for me unnecessary) main "CATEGORY" word and link.

For example:I have an "AUDI A4" in the Category "CARS" and under-category "1,99 EURO" , so the breadcrumb should be:

HOME / CARS / 1,99 EURO / AUDI A4

actually the script is writing:

HOME / CATEGORY (WHICH,WHAT,WHY) / CARS / 1,99 EUR / AUDI A4

I simply want to remove this "CATEGORY"... , word and link. That it is simply showing:HOME / CARS (which is MAIN category) / 199 EUR (which is SUB category) / AUDI A4 (which is the shown product) :-)

I "copycat" some ideas from big shops, for example "Hugo Boss". The have the same, see here:

https://www.hugoboss.com/de/tapered-fit-jeans-aus-schwarzem-denim-in-used-optik/hbeu50458341_037.html?cgid=22600

You have any idea?
Thanks very much in advance
Tack så mycket :-)

Hansy

LiteCart Fan
Da Germany
Membro dal gen 2020

@tim Perfect, thanks, that was exactly what I was searching for!

Have a nice weekend,
regards from Germany,
Hansy

Questo thread è stato chiuso per lunga inattività. Non è possibile postare su di esso.
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.