- Posts: 36
- Thank you received: 0
Breadcrumbs broken when using carousel
-- HikaShop version -- : 2.3.1
-- Joomla version -- : 2.3.2
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : Error_message
When I create a category carousel and click on a category shown in it. I get to the category, but the breadcrumbs show all categories and not the real path.
For example: Real path
path shown after clicking on carouselStartseite > Edelrosen
Startseite > Edelrosen > Rosen > Zwergrosen > Kletterrosen > Strauchrosen > Englische und Romantische Rosen > Rugosarosen > Historische Rosen > Bodendeckerrosen > Wildrosen > Rosenbegleiter > Stauden > Kräuter > Clematis > Gehölze > Rosenpflege > Dünger > Pflanzenpflege > Werkzeug und Material > Bücher > Rosenlädchen > Kosmetik > Kulinarisches > Bücher
What goes wrong?
Please Log in or Create an account to join the conversation.
Could you provide a screenshot of the HikaShop options of your module so that we can see what you did ?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Can you click on the "rebuild" button of the categories listing in your HikaShop backend ? It might help fix the problem if it comes from a broken category tree.
If not, could you turn on the debug mode and error reporting options of the Joomla configuration and look at the page with the wrong breadcrumb again ? could you provide a copy of the queries logged at the bottom of the page so that we can see what's going on ?
Please Log in or Create an account to join the conversation.
And more interesting for me I create the categories and products throw an import of an XML file of a ERP System. Is it possible that I missed something when I created the categories with my import? That's the code I wrote for it github.com/svanschu/WinArboR-HikaShop-Br...or/models/import.php
Thank you
Please Log in or Create an account to join the conversation.
1. That is your menu item name. You can go in the Joomla menu manager and change the name of your menu item to something else if you want something else.
2. That's a lot of code to analyze. I didn't find any code relative to the creation of menu items on your code so I don't think that it comes from the import (but maybe I overlooked something?). I think that it's just the joomla menu items tree which was screwed up (it can happen when you have issues with install/uninstall processes, some extensions not handling the menu items properly, etc. It's hard to say exactly why you would have had that on your website). The rebuild button helped fix that.
Please Log in or Create an account to join the conversation.
2. Totaly understandable. This is the part I create category. Did I miss something? I don't create menus when I create categories.
Please Log in or Create an account to join the conversation.
2. Yes, you're missing the category_left and category_right columns.
Actually when you add categories, it's a complex process as the whole category tree needs to have its left and right updated as per the binary tree structure principles. The Rebuild button actually fixes the left/right values of all the categories.
The best would actually be to use the save function of the class.category class of HikaShop which handles that automatically for you.
Otherwise, you can have your own queries and then use the rebuild system of HikaShop at the end:
www.hikashop.com/support/forum/2-general...sql-script.html#8552
Please Log in or Create an account to join the conversation.
2. Thx I will look into it.
Please Log in or Create an account to join the conversation.