hansyland LiteCart Fan Από Germany Μέλος από Ιαν 2020 hansyland 9 Αυγ 2021 16:57 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
tim Founder Από Sweden Μέλος από Μαΐ 2013 tim 9 Αυγ 2021 23:31 You would have to remove them where they are added in the page controller: https://github.com/litecart/litecart/blob/dev/public_html/pages/product.inc.php#L52-L63 To clear all breadcrumbs do this: breadcrumbs::reset();
hansyland LiteCart Fan Από Germany Μέλος από Ιαν 2020 hansyland 10 Αυγ 2021 12:28 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
tim Founder Από Sweden Μέλος από Μαΐ 2013 tim 11 Αυγ 2021 21:29 If you want to remove "Categories" from the breadcrumbs then remove this line: https://github.com/litecart/litecart/blob/38b2f6e4e992a82ff6a8bf423cf6adc5011588a0/public_html/pages/product.inc.php#L53
hansyland LiteCart Fan Από Germany Μέλος από Ιαν 2020 hansyland 20 Αυγ 2021 11:47 @tim Perfect, thanks, that was exactly what I was searching for! Have a nice weekend, regards from Germany, Hansy