Re: Category Tab Simple Dropdown Menu 1.3.9 Support Thread
@dbltoe
Hi there,
I got involved in a conversation on another thread about breadcrumbs that proved what I believed to be wrong :smile::blush: Anyway I had a look at this mod again and I see that it kind of messes up the breadcrumbs.
this is the chunk of code at fault:
Code:
while (!$subcategories_tab->EOF)
{
$cPath_new=zen_get_path($subcategories_tab->fields['categories_id']);
$cPath_new=str_replace('=0_', '=', $cPath_new);
$cPath_new="cPath=".$subcategories_tab->fields['categories_id'];
echo '<li>'.'<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">'.$subcategories_tab->fields['categories_name'].'</a></li>';
$subcategories_tab->MoveNext();
}
Basically the links are being created with only the most 'recent' category. I think this works better.
Code:
while (!$subcategories_tab->EOF)
{
$cPath_new = "cPath=".zen_get_generated_category_path_rev($subcategories_tab->fields['categories_id']);
echo '<li>'.'<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">'.$subcategories_tab->fields['categories_name'].'</a></li>';
$subcategories_tab->MoveNext();
}
Which creates links in the format "cPath=2_11" rather than just "cPath=11". Both will get you to the right place but the first one will result in a correct breadcrumb.
Re: Category Tab Simple Dropdown Menu 1.3.9 Support Thread
@Nick
Thanks for the breadcrumb fix, works brilliant.
@Everyone else.
I understand that I can only have:
-------------------------------------------------------
- BMW
.......|__ 3 series
.......|__ 5 series
-------------------------------------------------------
But is it all possible to have another dropdown:
-------------------------------------------------------
- BMW
.......|__ 3 series
..............|__ 316
..............|__ 325
.......|__ 5 series
..............|__ 520
..............|__ 525
-------------------------------------------------------
OR just listed below on same dropdown:
-------------------------------------------------------
- BMW
.......|__ 3 series
.......> 316
.......> 325
.......|__ 5 series
.......> 520
.......> 525
-------------------------------------------------------
I don't want to really look for another add on, as this is quite simple and works. Thanks if anyone that can help out.
Jay.
Re: Category Tab Simple Dropdown Menu 1.3.9 Support Thread
4jdesigns
thanks - glad it worked.
the answer, unfortunately, is no, you cannot have more levels of dropdown. that is one of the reasons why it is called 'simple' :smile:
there are other mod out there that do the same thing with more complexity and would allow you to do that. but I would guess that people would want to keep this one pretty simple.
Re: Category Tab Simple Dropdown Menu 1.3.9 Support Thread
Thanks Nick for a quick reply.
Do you think it would be possible to have the sub-categories drop down as it is, but add a list of its sub-categories just listed below it, similar to that of appliancesdirect.co.uk/ ?
Re: Category Tab Simple Dropdown Menu 1.3.9 Support Thread
That is a "mega-menu" type of dropdown, which is done with one of the other (more complex) CSS dropdown mods.
Re: Category Tab Simple Dropdown Menu 1.3.9 Support Thread
Cool, thanks for the responses, will have a look at another menu option, but will definitely use it in other projects.
Re: Category Tab Simple Dropdown Menu 1.3.9 Support Thread
Having trouble with this mod in IE. I know it's not a problem with the mod because I've got it working on other sites, but I can't figure out what on this site is causing the problem. In FF it displays perfectly, but in IE it's all messed up: www.toobydoo.com
Any suggestions?
Re: Category Tab Simple Dropdown Menu 1.3.9 Support Thread
Most of the time, the problem is bad code that every browser but ie understands. Run your site through the w3c validator to see what's messing with things.
Re: Category Tab Simple Dropdown Menu 1.3.9 Support Thread
Quote:
Originally Posted by
dbltoe
Most of the time, the problem is bad code that every browser but ie understands. Run your site through the w3c validator to see what's messing with things.
Yeah I tried that but as far as I could tell all the errors were referring to stuff that is default in zen-cart, like this for example:
Quote:
Line 174, Column 52: reference not terminated by REFC delimiter
…index.php?main_page=product_info&cPath=2_32&products_id=535"><img src="include…
✉
If you meant to include an entity that starts with "&", then you should terminate it with ";". Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.
I just don't see anything that would be causing the problem that I am having. I'm probably missing something so obvious, I've literally been trying to fix this for an entire day and it's all just a blur now!
Re: Category Tab Simple Dropdown Menu 1.3.9 Support Thread
You need to get a copy of firefox and install firebug and html tidy addons. You have several & that need to be changed to & but the problem that you are addressing probably comes fromNote the double quotes in red.
Also, the meta tag you added needs a closing of /> versus >.