Re: Category Drop Down SELECT Menu Sidebox Mod.
helo i try to make a mod of this menu but i dont know howto.
i like to hawe a 4-5 dropdown's on my menu.
Master category dropdown ( when you pick a category go to second dropdown )
2 lvl category select
3 lvl category select
something like this : http://msi.com/index.php?func=downloadindex MANUAL DOWNLOAD od right..
how to make that menu based on yours ?
remove undefined variable
There is a small error in the category query, using an undefined variable. It does not cause a problem, but does raise a php notice if you have that level of reporting enabled.
in
\includes\functions\extra_functions\categories_select.php
change
PHP Code:
$categories_query = "select c.parent_id, c.categories_id, cd.categories_name, c.categories_status
from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd
where " . $zc_status . "
parent_id = '" . (int)$parent_id . "'
and c.categories_id = cd.categories_id
and c.categories_status=1
and cd.language_id = '" . (int)$_SESSION['languages_id'] . "'
order by sort_order, cd.categories_name";
to
PHP Code:
$categories_query = "select c.parent_id, c.categories_id, cd.categories_name, c.categories_status
from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd
where parent_id = '" . (int)$parent_id . "'
and c.categories_id = cd.categories_id
and c.categories_status=1
and cd.language_id = '" . (int)$_SESSION['languages_id'] . "'
order by sort_order, cd.categories_name";
1 Attachment(s)
Re: Category Drop Down SELECT Menu Sidebox Mod.
I currently have a "Drop Up" menu, not a drop down. The screenshot below shows what I mean. The edge of the "Please Select" window can just be seen to the left and behind of the pop up and the top of the popup menu goes almost to the top of the browser page.
Attachment 7675
Where can this be adjusted to have the menu drop below (drop down?) the "Please Select" when clicked?
Thanks for any help!
Rod
Re: Category Drop Down SELECT Menu Sidebox Mod.
Many people are interested in a multi-dropdown option, so I'm attempting to figure out a workaround using this add-on, and could use help of people more talented.
The thread that explains my theory is at: http://www.zen-cart.com/forum/showthread.php?t=160761
Re: Category Drop Down SELECT Menu Sidebox Mod.
Is there anyone that have installed this mod and have an active/real link to see what it does please?
Re: Category Drop Down SELECT Menu Sidebox Mod.
there is now a mod available to provide multiple drop-down category selects:
http://www.zen-cart.com/forum/showthread.php?t=161143
Re: Category Drop Down SELECT Menu Sidebox Mod.
I tried using this mod with 1.3.9f. Didn't alter anything and it wouldn't work. So after hours of trying to figure out how to get it to work, I resorted to the files from my old site (1.3.8a). I added the extra function file from the new download but replaced the modules/sidebox and templates/sidebox with their respective files from the old site. Now it works. Have to adjust the width and remove a generic message from the menu....other than that it works.
Re: Category Drop Down SELECT Menu Sidebox Mod.
It worked fine for me on 1.3.9f. Don't forget to modify tpl_categories_select.php with the correct values after installing.
Re: remove undefined variable
Quote:
Originally Posted by
torvista
There is a small error in the category query, using an undefined variable. It does not cause a problem, but does raise a php notice if you have that level of reporting enabled.
in
\includes\functions\extra_functions\categories_select.php
change
PHP Code:
$categories_query = "select c.parent_id, c.categories_id, cd.categories_name, c.categories_status
from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd
where " . $zc_status . "
parent_id = '" . (int)$parent_id . "'
and c.categories_id = cd.categories_id
and c.categories_status=1
and cd.language_id = '" . (int)$_SESSION['languages_id'] . "'
order by sort_order, cd.categories_name";
to
PHP Code:
$categories_query = "select c.parent_id, c.categories_id, cd.categories_name, c.categories_status
from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd
where parent_id = '" . (int)$parent_id . "'
and c.categories_id = cd.categories_id
and c.categories_status=1
and cd.language_id = '" . (int)$_SESSION['languages_id'] . "'
order by sort_order, cd.categories_name";
Perhaps you should upload it again with this fix? I've got people emailing me about the error filling up their log files. :)