-
Category Drop Down SELECT Menu Sidebox Mod.
Hi guys!
This is the support thread for the Category Drop Down SELECT Menu Sidebox Contribution.
This will add a sidebox that has a Select Menu with your Categories and Subcategories. You can see it in action here:
http://www.zencart137.jadetrue.com/i...ain_page=index
It's a pretty simple mod with only three files. It'll be added to the download section soon!
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
You may wish to look into a full cPath vs just the $current_category_path as they are different ...
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
Ajeh
You may wish to look into a full cPath vs just the $current_category_path as they are different ...
I'm not sure what you are referring to?
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Make a Category 6 levels down what path do you produce?
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
Ajeh
Make a Category 6 levels down what path do you produce?
I made Category 4 have a 6th level, I get this:
http://www.zencart137.jadetrue.com/i...index&cPath=23
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Here's the link to the download:
http://www.zen-cart.com/index.php?ma...roducts_id=532
Ajeh, let me know if I did something incorrectly!
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Might toss a couple products in there ... :smile:
Not sure if it would be more friendly if the sidebox followed the categories path ... as in I pick level 3 ... stay there rather than go back to the top ...
Pick from the Cat tabs and follow all the way down ...
Pick from the CSS menu of Cats and follow ... etc. etc.
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
Ajeh
Might toss a couple products in there ... :smile:
Not sure if it would be more friendly if the sidebox followed the categories path ... as in I pick level 3 ... stay there rather than go back to the top ...
Pick from the Cat tabs and follow all the way down ...
Pick from the CSS menu of Cats and follow ... etc. etc.
It actually does that if I turn the SEO urls off. So for most people using this mod, it would function that way.
As far as what you're saying here:
Pick from the Cat tabs and follow all the way down ...
Pick from the CSS menu of Cats and follow ... etc. etc.
I have no idea what you're talking about, LOL.
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
The idea is ... when moving through the categories, regardless of how, the category tree(s) should follow your moves in the:
Categories sidebox
Categories Tab
CSS Categories Menu
Dropdown Categories
etc. etc. etc.
Otherwise you get a tad lost ...
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
OK maybe I've had too much Limoncello...! :blink:
I downloaded this module and went to install it via my FlashFXP. I changed all folders named YOUR_TEMPLATE to my template name and hit the Go button. Instead of uploading cleanly, as is the norm, it went into glitch mode and kept attempting to load the category_select_defines.php page over and over unsuccessfully. The error was:
Quote:
(R)550 Can't create directory: File exists
but the file doesn't exist!
I then noticed that the category_select_defines.php is shared. (I belive that's what it means when an open hand icon is on the file, right?)
None of the other files have this shared icon on it, only this page.
I downloaded the module again and again found the "shared" icon on that file and the same issue with the upload.
What am I missing? Is that file supposed to be shared?
Thanks for any help (or black coffee!) you can offer.
Tim
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Hi Great mod, saved me a lot of space to add a couple more boxes on the side of my site. One question.... is there a way i can just have the menu show the main categories and not the sub cartegories too?
many thanks
Chas
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
MeltDown
OK maybe I've had too much Limoncello...! :blink:
I downloaded this module and went to install it via my
FlashFXP. I changed all folders named YOUR_TEMPLATE to my template name and hit the Go button. Instead of uploading cleanly, as is the norm, it went into glitch mode and kept attempting to load the category_select_defines.php page over and over unsuccessfully. The error was:
but the file
doesn't exist!
I then noticed that the category_select_defines.php is shared. (I belive that's what it means when an open hand icon is on the file, right?)
None of the other files have this shared icon on it, only this page.
I downloaded the module again and again found the "shared" icon on that file and the same issue with the upload.
What am I missing? Is that file supposed to be shared?
Thanks for any help (or black coffee!) you can offer.
Tim
Also, I see from further investigation that I can't even open category_select_defines.php. Notepad won't open it and Arachnophilia doesn't even see it. All the other files in the module were accessible in the normal fashion.
How did anyone else even install this?? :blink:
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Hi meltdown, i use FLASHFxp too and had no problems uploading and running the mod.
i had to change the YOUR_TEMPLATE in 3 places before upload, went very smooth this end.
have you had any issues uploading/using other mods?
Chas
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
biggy
Hi meltdown, i use FLASHFxp too and had no problems uploading and running the mod.
i had to change the YOUR_TEMPLATE in 3 places before upload, went very smooth this end.
have you had any issues uploading/using other mods?
Chas
Never - And especially with Jade's mods, as they are very well thought-out.
Can I ask, when you look at
PHP Code:
/includes/languages/english/extra_definitions/template_custom/category_select_defines.php
are you seeing the hand icon that I mentioned earlier? That is most certainly the culprit here and is not on any of the other files.
Thanks - Tim
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
biggy
Hi meltdown, i use FLASHFxp too and had no problems uploading and running the mod.
i had to change the YOUR_TEMPLATE in 3 places before upload, went very smooth this end.
have you had any issues uploading/using other mods?
Chas
Chas - Could I ask you to post the contents of /includes/languages/english/extra_definitions/template_custom/category_select_defines.php here? Maybe I can bypass the one in my download.
Thanks!
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Hi Tim
just checked mine and theres no hand icon showing at all
Chas
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers |
// | |
// | http://www.zen-cart.com/index.php |
// | |
// | Portions Copyright (c) 2003 osCommerce |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.zen-cart.com/license/2_0.txt. |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to |
// | [email protected] so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
//
define('PRODUCT_LISTING_SEARCH_TEXT_ALL_CATEGORIES','Select a Category');
?>
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Thanks Chas - That did the trick.
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Really what I was hoping to accomplish was to add a flyout menu of other links to my sidebox, not the categories. Is it possible to use this mod in that fashion?
Specifically I'd like to move my "Testimonials" link, my "Link Manager" link and the contents of my "More Information" sidebox into a sidebox flyout.
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
MeltDown
OK maybe I've had too much Limoncello...! :blink:
I downloaded this module and went to install it via my
FlashFXP. I changed all folders named YOUR_TEMPLATE to my template name and hit the Go button. Instead of uploading cleanly, as is the norm, it went into glitch mode and kept attempting to load the category_select_defines.php page over and over unsuccessfully. The error was:
but the file
doesn't exist!
I then noticed that the category_select_defines.php is shared. (I belive that's what it means when an open hand icon is on the file, right?)
None of the other files have this shared icon on it, only this page.
I downloaded the module again and again found the "shared" icon on that file and the same issue with the upload.
What am I missing? Is that file supposed to be shared?
Thanks for any help (or black coffee!) you can offer.
Tim
Hmm, I don't use FlashFXP, is its shared status something that can only be set by that program? I've never changed sharing details on any files on my computer at all. I can open it just fine on my end. I see that you were able to make this work.
If people continue to have the issue, let me know!
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
MeltDown
Really what I was hoping to accomplish was to add a flyout menu of other links to my sidebox, not the categories. Is it possible to use this mod in that fashion?
Specifically I'd like to move my "Testimonials" link, my "Link Manager" link and the contents of my "More Information" sidebox into a sidebox flyout.
You want a flyout menu, or a drop down menu? For a drop down menu for those links, you may just have to create that manually by making a new sidebox with the drop down menu hard coded.
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Hi Jettrue
is there a way i can just have the menu show the main categories and not the sub cartegories too?
many thanks
Chas
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
biggy
Hi Jettrue
is there a way i can just have the menu show the main categories and not the sub cartegories too?
many thanks
Chas
I don't know how to do that off hand, but maybe if you post a question about this seperately int he forum, perhaps Ajeh or someone more skilled can help you. The drop down uses the zen_get_categories function which is found in includes/functions/functions_categories.php, perhaps a new function can be created that gets only main categories.
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
How do I change the width of the select box?
Because some of my categories have many letters, in mozilla the select box is wider than the info box itself.
http://www.basketweaver.com.au/ff.JPG
In internet explorer, the category select box resizes itself to accomodate the select box but then is wider than the other info boxes.
[IMG]file:///C:/DOCUME%7E1/STAFF/LOCALS%7E1/Temp/moz-screenshot.jpg[/IMG]http://www.basketweaver.com.au/ie.JPG
Otherwise this is a great contibution. I was using a previous mod which required us to alter the header file but this drop in ensures that it's easy to integrate into another site or if I ever have to rebuild the site from scratch.
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
I had the same problem only way i could solve it was to tweak my catagories text to make them smaller longest one i have now is about 22 characters
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
chrisamydang
How do I change the width of the select box?
Because some of my categories have many letters, in mozilla the select box is wider than the info box itself.
In internet explorer, the category select box resizes itself to accomodate the select box but then is wider than the other info boxes.
Otherwise this is a great contibution. I was using a previous mod which required us to alter the header file but this drop in ensures that it's easy to integrate into another site or if I ever have to rebuild the site from scratch.
It's because of the length of your category names. However, you can constrict the width via css. Add something like this to your stylesheet:
#categoriesselect select {width:150px;}
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
jettrue
It's because of the length of your category names. However, you can constrict the width via css. Add something like this to your stylesheet:
#categoriesselect select {width:150px;}
That did it perfectly. Maybe this should be in the mod or a note that lengthy category names can affect your layout?
Great contribution!:clap:
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Hello, I think your contributio nof the Category Drop down is amazing. I am new at this but I would like to use this under my header (Online Art Gallery for all of the information, not the categories menu as I have the amazing rollover effect for this)? How would I go about doing this. I downloaded this and put the files where they belong and turned on the categories admin button. Do you have any suggestions, my site is www.cagedtalent.com/store
Thank you for your help and time
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
jben
Hello, I think your contributio nof the Category Drop down is amazing. I am new at this but I would like to use this under my header (Online Art Gallery for all of the information, not the categories menu as I have the amazing rollover effect for this)? How would I go about doing this. I downloaded this and put the files where they belong and turned on the categories admin button. Do you have any suggestions, my site is
www.cagedtalent.com/store
Thank you for your help and time
Did you download the contrib? In the readme.txt, there are instructions (#5) on adding this to your header.
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Hello, when I did this, it was red and it looked like this in two columns over my categories and this was over the pictures so they would not enlarge.Do you have any suggestions. Thank you for your time and help.
cagedtalent.com/store
1.1 2.1
1.2 2.2
1.3 2.3
1.4 2.4
1.5 2.5
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
jben
Hello, when I did this, it was red and it looked like this in two columns over my categories and this was over the pictures so they would not enlarge.Do you have any suggestions. Thank you for your time and help.
cagedtalent.com/store
1.1 2.1
1.2 2.2
1.3 2.3
1.4 2.4
1.5 2.5
I'm not following you here. You are talking about the category drop down select menu that's found on the top right side box here:
http://www.zencart137.jadetrue.com/
If so, I think I'd have to see the issue in action to know how to help you.
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
biggy
Hi Jettrue
is there a way i can just have the menu show the main categories and not the sub cartegories too?
many thanks
Chas
Hi,
Can you help me at all, I like the look of your website design, can I ask if you dont mind who designed it for you and what it cost?
Any help would be good as i'm looking for a new site design.
Thanks.
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
i'll send you a PM with info on me site
Rgds
Chas
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
I installed this no problem, but I want to apply some CSS to change the look a bit. How would I go about this? I don't see anywhere in the php files that looks obvious to add classes.
thanks!
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
I have some questions regarding of dropdown select menu sidebox mod.
I'm trying to design a new website using zencart with cherry_zen template.
I have installed everthing that I've been told but I have very strange result as you can see on my website: www.wordbest2000.com
If I put category dropdownmenu on rightside sidebox, causing my all rightside sidebox moved 5 spaces to the left. as you can see on my website : www.worldbest2000.com
If I put dropdownmenu on left side sidebox, the category drop down menu move at the very bottom of the page.
What could possible cause this problem.
Help!
Fabian
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
nonci88
I have some questions regarding of dropdown select menu sidebox mod.
I'm trying to design a new website using zencart with cherry_zen template.
I have installed everthing that I've been told but I have very strange result as you can see on my website:
www.wordbest2000.com
If I put category dropdownmenu on rightside sidebox, causing my all rightside sidebox moved 5 spaces to the left. as you can see on my website :
www.worldbest2000.com
If I put dropdownmenu on left side sidebox, the category drop down menu move at the very bottom of the page.
What could possible cause this problem.
Help!
Fabian
Its not a complicated issue... the drop menu is simply too wide.
Just add this to your stylesheet:
#categoriesselect select {width:120px;}
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Hi!
i want to use the categories_select side box module but would like to know how to add the new products, all products, featured products and specials, ect links like on the standard catagories list?
also i want to be able to switch the subcatagories off?
can anyone help PLEASE?
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
Rookie gone MAD!
Hi!
i want to use the categories_select side box module but would like to know how to add the new products, all products, featured products and specials, ect links like on the standard catagories list?
also i want to be able to switch the subcatagories off?
can anyone help PLEASE?
Sorry, I can't help you there! I don't have the skills necessary to get that done.
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
jettrue
Sorry, I can't help you there! I don't have the skills necessary to get that done.
THANKS ANYWAY :D
Would you know who could ?
my heads starting to hurt lol :frusty:
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Oh and i almost forgot ill put this here to help anyone who might want it like me?
SPECIAL THANKS TO 'Ajeh' :clap:
Below shows code for the 'all products, featured products, etc links and can be added to the catagories_select thingy :)
Quote:
Originally Posted by
Ajeh
If you look in the original sidebox for the categories you can see the code for adding these links:
PHP Code:
if (SHOW_CATEGORIES_BOX_SPECIALS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true' or SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
// display a separator between categories and links
if (SHOW_CATEGORIES_SEPARATOR_LINK == '1') {
$content .= '<hr id="catBoxDivider" />' . "\n";
}
if (SHOW_CATEGORIES_BOX_SPECIALS == 'true') {
$show_this = $db->Execute("select s.products_id from " . TABLE_SPECIALS . " s where s.status= 1 limit 1");
if ($show_this->RecordCount() > 0) {
$content .= '<a class="category-links" href="' . zen_href_link(FILENAME_SPECIALS) . '">' . CATEGORIES_BOX_HEADING_SPECIALS . '</a>' . '<br />' . "\n";
}
}
if (SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true') {
// display limits
// $display_limit = zen_get_products_new_timelimit();
$display_limit = zen_get_new_date_range();
$show_this = $db->Execute("select p.products_id
from " . TABLE_PRODUCTS . " p
where p.products_status = 1 " . $display_limit . " limit 1");
if ($show_this->RecordCount() > 0) {
$content .= '<a class="category-links" href="' . zen_href_link(FILENAME_PRODUCTS_NEW) . '">' . CATEGORIES_BOX_HEADING_WHATS_NEW . '</a>' . '<br />' . "\n";
}
}
if (SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true') {
$show_this = $db->Execute("select products_id from " . TABLE_FEATURED . " where status= 1 limit 1");
if ($show_this->RecordCount() > 0) {
$content .= '<a class="category-links" href="' . zen_href_link(FILENAME_FEATURED_PRODUCTS) . '">' . CATEGORIES_BOX_HEADING_FEATURED_PRODUCTS . '</a>' . '<br />' . "\n";
}
}
if (SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
$content .= '<a class="category-links" href="' . zen_href_link(FILENAME_PRODUCTS_ALL) . '">' . CATEGORIES_BOX_HEADING_PRODUCTS_ALL . '</a>' . "\n";
}
}
Special thanks again to 'Ajeh' :clap:
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
Rookie gone MAD!
Hi!
i want to use the categories_select side box module but would like to know how to add the new products, all products, featured products and specials, ect links like on the standard catagories list?
also i want to be able to switch the subcatagories off?
can anyone help PLEASE?
I've got the fix for people who want NO SUB CATEGORIES showing in their drop down menu.
First, open up includes/functions/functions_categories.php
Save a backup, as this is a core override, and there is no override folder for function files.
Then add this new function:
Code:
function zen_get_categories_no_sub($categories_array = '', $parent_id = '0', $indent = '', $status_setting = '') {
global $db;
if (!is_array($categories_array)) $categories_array = array();
// show based on status
if ($status_setting != '') {
$zc_status = " c.categories_status='" . (int)$status_setting . "' and ";
} else {
$zc_status = '';
}
$categories_query = "select 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 cd.language_id = '" . (int)$_SESSION['languages_id'] . "'
order by sort_order, cd.categories_name";
$categories = $db->Execute($categories_query);
while (!$categories->EOF) {
$categories_array[] = array('id' => $categories->fields['categories_id'],
'text' => $indent . $categories->fields['categories_name']);
$categories->MoveNext();
}
return $categories_array;
}
////
You can add it wherever you want, I added it right after the code for function zen_get_categories.
Now open up includes/templates/YOUR_TEMPLATE/sideboxes/tpl_categories_select.php
and change:
zen_get_categories
to
zen_get_categories_no_sub
VOILA!
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
:clap::clap::clap::clap:
i havnt had time to try this yet but if it works . . . . oh. . . i could kiss you :ohmy:
:blush: WOOOOOOooooooooooooo! GOD im happy NOW :D
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
Rookie gone MAD!
:clap::clap::clap::clap:
i havnt had time to try this yet but if it works . . . . oh. . . i could kiss you :ohmy:
:blush: WOOOOOOooooooooooooo! GOD im happy NOW :D
Just let me know how it works for you, it worked on my test site.
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
jettrue
Just let me know how it works for you, it worked on my test site.
THANKS :D
its worked amazingly :clap:
YOU'RE AWSOME! :jump:
:thumbsup: THANKS AGAIN :thumbsup:
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Does the above remove ALL subcategories? I actually just want to display parent, and subcategories, but not any of the sub categories child categories. Any thoughts?
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
magneteye
Does the above remove ALL subcategories? I actually just want to display parent, and subcategories, but not any of the sub categories child categories. Any thoughts?
Sorry, its either one or the other....
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Hi!
I have tried searching for this, but i get no matches. So i'm sorry if this is a second request...
Do you have a sulotion for highlighting the selected parent category? So when i am at the home page, the home "button" stays selected and when i browse a category, the top level category stays selected in the menu?
THanks!
Grtz Lenny
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
magneteye
Does the above remove ALL subcategories? I actually just want to display parent, and subcategories, but not any of the sub categories child categories. Any thoughts?
You could try this:
in tpl_drop_menu.php
comment out in this section:
PHP Code:
require_once (DIR_WS_CLASSES . 'categories_ul_generator.php');
$zen_CategoriesUL = new zen_categories_ul_generator;
$menulist = $zen_CategoriesUL->buildTree(true);
$menulist = str_replace('"level4"','"level5"',$menulist);
$menulist = str_replace('"level3"','"level4"',$menulist);
$menulist = str_replace('"level2"','"level3"',$menulist);
$menulist = str_replace('"level1"','"level2"',$menulist);
these lines:
PHP Code:
require_once (DIR_WS_CLASSES . 'categories_ul_generator.php');
$zen_CategoriesUL = new zen_categories_ul_generator;
$menulist = $zen_CategoriesUL->buildTree(true);
//$menulist = str_replace('"level4"','"level5"',$menulist);
//$menulist = str_replace('"level3"','"level4"',$menulist);
//$menulist = str_replace('"level2"','"level3"',$menulist);
$menulist = str_replace('"level1"','"level2"',$menulist);
If this is a subcategory to many, remove the //from the lowest of 3 lines.
Works for me.
just a note: this is without the new function. Just the original files.
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
lenny
Hi!
I have tried searching for this, but i get no matches. So i'm sorry if this is a second request...
Do you have a sulotion for highlighting the selected parent category? So when i am at the home page, the home "button" stays selected and when i browse a category, the top level category stays selected in the menu?
THanks!
Grtz Lenny
No, sorry, I don't.
-
Re: Category Drop Down SELECT Menu Sidebox Mod. HELP NEEDED for Firefox error
This mod is absoutely fab and really easy to install so firstly thankyou very much!
i have installed it fine and in internet exploder7 it looks great, however if i test it on my mac or my pc using firefox, the css formatting is completely ignored for the menu and it blows the layout all over the place
i saw a post where a user seemed to have a simliar problem - but there was no reply. apologies if this has already been asnwered -
www.ppekit.co.uk.
I'd be really grateful for your help on this, hoping to get the site live shortly and i'd like to iron out all the blips before i present to my client.
thanks
sarah
-
Re: Category Drop Down SELECT Menu Sidebox Mod. HELP NEEDED for Firefox error
Quote:
Originally Posted by
swalka
This mod is absoutely fab and really easy to install so firstly thankyou very much!
i have installed it fine and in internet exploder7 it looks great, however if i test it on my mac or my pc using firefox, the css formatting is completely ignored for the menu and it blows the layout all over the place
i saw a post where a user seemed to have a simliar problem - but there was no reply. apologies if this has already been asnwered -
www.ppekit.co.uk.
I'd be really grateful for your help on this, hoping to get the site live shortly and i'd like to iron out all the blips before i present to my client.
thanks
sarah
I don't see the category select drop down menu on your site, but I do see the CSS Dropdown menu for your header- With Categories!
Anyhoo, your problem is you have this before the beginning of your menu:
<!--bof-navigation display
<div id="navMainWrapper">
<div id="navMain">
<ul class="back">
Change that to: <!--bof-navigation display-->
and all should be fine.
-
Re: Category Drop Down SELECT Menu Sidebox Mod. HELP NEEDED for Firefox error
that was a bit of a red herring actually becasue i have just commented out on my tpl_header file the normal menu, the code is complete.
Sorry for posting on the wrong menu item though, thats was a bit daft of me and thanks for your reply
-
Re: Category Drop Down SELECT Menu Sidebox Mod. HELP NEEDED for Firefox error
Ok i double checked my code and i was missing a second --> which only showed in firefox. many thanks for your assistance as this solved the problem.
-
Re: Category Drop Down SELECT Menu Sidebox Mod. HELP NEEDED for Firefox error
Quote:
Originally Posted by
swalka
Ok i double checked my code and i was missing a second --> which only showed in firefox. many thanks for your assistance as this solved the problem.
Yep, that's what I mentioned above.
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
This module would be perfect for my front page center box...
Do you know how to add code to center box? I copied "tpl_categories_select.php" code to index_default with no luck. Any hints?
Also, is there a way to limit the drop down so that I can use one for each of my two categories (mens shoes... women's shoes)?
example is here...
Thanks,
Chuck
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
chuckienorton
This module would be perfect for my front page center box...
Do you know how to add code to center box? I copied "tpl_categories_select.php" code to index_default with no luck. Any hints?
Also, is there a way to limit the drop down so that I can use one for each of my two categories (mens shoes... women's shoes)?
example is here...
Thanks,
Chuck
Link to your site please?
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
chuckienorton
Do you know how to add code to center box? I copied "tpl_categories_select.php" code to index_default with no luck. Any hints?
Also, is there a way to limit the drop down so that I can use one for each of my two categories (mens shoes... women's shoes)?
Quote:
Originally Posted by
jettrue
Link to your site please?
The site is shopwalkthisway.com. You'll notice front page drop down (in center of page) is just an image, but tab categories & everything else on site works.
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
chuckienorton
The site is
shopwalkthisway.com. You'll notice front page drop down (in center of page) is just an image, but tab categories & everything else on site works.
Did you upload all the other files from the mod?
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
jettrue
Did you upload all the other files from the mod?
Yes. It worked fine in sidebox... now I have it copied into tpl_index_default.php page, with no luck. I looked up other forum posts on using sideboxes in template with no luck.
here is code I posted in tpl_index_default...
HTML Code:
<?php
/**
* Side Box Template
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_manufacturers_select.php 4771 2006-10-17 05:32:42Z ajeh $
*/
$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
$content .= zen_draw_form('categories_form', zen_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get');
$content .= zen_draw_hidden_field('main_page', FILENAME_DEFAULT);
$content .= zen_draw_pull_down_menu('cPath', zen_get_categories(array(array('id' => '', 'text' => PRODUCT_LISTING_SEARCH_TEXT_ALL_CATEGORIES)), '0' ,'', '1'), (isset($_GET['categories_id']) ? $_GET['categories_id'] : ''), 'onchange="this.form.submit();" size="1"') . zen_hide_session_id();
$content .= '</form>';
$content .= '</div>';
?>
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Does that make sense??? :blink:
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
chuckienorton
Does that make sense??? :blink:
In the readme (readme's are great, ;)) for this mod, there are instructions for adding this to the header, that code should work better than what you're using:
Code:
<div id="dropDownHeader"><?php
echo zen_draw_form('categoriesSelect', zen_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get');
echo zen_draw_hidden_field('main_page', FILENAME_DEFAULT);
echo zen_draw_pull_down_menu('cPath', zen_get_categories(array(array('id' => '', 'text' => PRODUCT_LISTING_SEARCH_TEXT_ALL_CATEGORIES)), '0' ,'', '1'), (isset($_GET['categories_id']) ? $_GET['categories_id'] : ''), 'onchange="this.form.submit();" size="1"') . zen_hide_session_id();
echo '</form>';
?></div>
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
jettrue
In the readme (readme's are great, ;))
HA! Always had a feeling they were there for something. Thanks so much! This is perfect!
I also just figured out the second part of that question - which was how to select one specific category & all of it's products.
This is great! THANK YOU JETTRUE!
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
jettrue
In the readme (readme's are great, ;)) for this mod, there are instructions for adding this to the header, that code should work better than what you're using:
Code:
<div id="dropDownHeader"><?php
echo zen_draw_form('categoriesSelect', zen_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get');
echo zen_draw_hidden_field('main_page', FILENAME_DEFAULT);
echo zen_draw_pull_down_menu('cPath', zen_get_categories(array(array('id' => '', 'text' => PRODUCT_LISTING_SEARCH_TEXT_ALL_CATEGORIES)), '0' ,'', '1'), (isset($_GET['categories_id']) ? $_GET['categories_id'] : ''), 'onchange="this.form.submit();" size="1"') . zen_hide_session_id();
echo '</form>';
?></div>
Hallo
is possible to center the drop box in the middle of header or right?
code from redme put drop box left.
can anyone help me pls ?
Thank you Katamave
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Would someone be so kind as to post the entire contents of tpl_categories_select.php here? (Don't ask - It's a long story...)
Thanks so much!
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
<?php
/**
* Side Box Template
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_manufacturers_select.php 4771 2006-10-17 05:32:42Z ajeh $
*/
$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
$content .= zen_draw_form('categories_form', zen_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get');
$content .= zen_draw_hidden_field('main_page', FILENAME_DEFAULT);
$content .= zen_draw_pull_down_menu('cPath', zen_get_categories(array(array('id' => '', 'text' => PRODUCT_LISTING_SEARCH_TEXT_ALL_CATEGORIES)), '0' ,'', '1'), (isset($_GET['categories_id']) ? $_GET['categories_id'] : ''), 'onchange="this.form.submit();" size="1"') . zen_hide_session_id();
$content .= '</form>';
$content .= '</div>';
?>
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
Katamave
Hallo
is possible to center the drop box in the middle of header or right?
code from redme put drop box left.
can anyone help me pls ?
Thank you Katamave
Could I see a link to the site? Thanks!
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Another question about drop box on front page here: when selecting a menu item from drop down (for instance - women's 'Beautifeel' brand) it goes to correct page, but doesn't open the sidebox categories menu for that brand....which would happen if you click women at topnav bar, then click 'beautifeel' (it then highlights the brand your on, and allows you to select other brands within that category).
It's probably easier if you check it out: shopwalkthisway.com. Try clicking on brand from front page drop down, then note how the sidebox looks... then click "women's shoes" at top nav and note how sidebox looks.
(ps - thanks for all your help! This is a great app)
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Jade, thanks for a great mod; something I've been looking for for my template.
Any ideas how I could do the same thing for the "Information" sidebox? On my site here it's just below the categories side box.
I would *love* to have the same thing for information! <hint>
Mike
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
chuckienorton
Another question about drop box on
front page here: when selecting a menu item from drop down (for instance - women's 'Beautifeel' brand) it goes to correct page, but doesn't open the sidebox categories menu for that brand....which would happen if you click women at topnav bar, then click 'beautifeel' (it then highlights the brand your on, and allows you to select other brands within that category).
It's probably easier if you check it out:
shopwalkthisway.com. Try clicking on brand from front page drop down, then note how the sidebox looks... then click "women's shoes" at top nav and note how sidebox looks.
(ps - thanks for all your help! This is a great app)
I just want to clarify exactly what I mean here...
If you click CATEGORY 2/ SUBCATEGORY 3 from the drop down, the link goes to to the right page, but doesn't tell the left hand menu which category it's in. So on my site, the user would either have to go back to home, and choose another sub category, or use the left hand category menu to repick a main category, then after that rechoose another subcategory...
Dropdown link: http://shopwalkthisway.com/index.php...=index&cPath=3
Link it should be: http://shopwalkthisway.com/index.php...ndex&cPath=2_3
Any clue how to fix it??
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Sorry for the lack of knowledge.
I have installed this mod. but it has effect my other template setting. Mainly the heading pic and website name and tag line. Is it possible to put the menu in without effecting everything above it? If so how?
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
gensel
Sorry for the lack of knowledge.
I have installed this mod. but it has effect my other template setting. Mainly the heading pic and website name and tag line. Is it possible to put the menu in without effecting everything above it? If so how?
A link to the website would be great.
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Hey Jade
Thanks for your Mods for Zen Cart.
If you take a look at my site www.coolcarpartsonline.com I added this mod and changed the header to display shop by make. I added the make as a catagorie level 1, I want to use this mod to display the content of the Make catagorie so it will display the Make in the drop down list such as BMW, Ford, Chevy etc.....
Someone have mentioned that they figured out how to do that in this thread but they didn't list How to do it. Can You please Help.
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Anyone knows how to do that?
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
It won't let me put the sort order first or before anything else on the left or right. If I do, it makes anything after it go blank. When I put it last on the right side, it doesn't show the mod, but it shows everything else.
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
It's ok I just put it in my heading and it works instead of using the sidebox. Thanks for the great mod!
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
I have downloaded the Category Drop down Menu, which works great, but I am wanting to have a drop down for my manufacture side box as well. Can anyone help me out in the right direction. Thanks
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
Glamorousshoe
Hey Jade
Thanks for your Mods for Zen Cart.
If you take a look at my site
www.coolcarpartsonline.com I added this mod and changed the header to display shop by make. I added the make as a catagorie level 1, I want to use this mod to display the content of the Make catagorie so it will display the Make in the drop down list such as BMW, Ford, Chevy etc.....
Someone have mentioned that they figured out how to do that in this thread but they didn't list How to do it. Can You please Help.
That shop by car bit is exactly what ive been looking for, can I ask how you managed to figure this out? ive been searching high and low on this forum for info of how to do this
Thank you
Sam
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Any one having any problem loading CSS dropdown in IE6. Maybe you can check my site http://jintexelectronics.com. When i load my page in IE6, the menu dropdown seem no effect. Only after i click on any product, then the menu dropdown menu is operating. But under Firefox no problem at all.
Thanks
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
I downloaded IE7 and seems the problem no longer there. Anyone who using IE6 might see the problem.
Thanks
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
kevinc66
I downloaded IE7 and seems the problem no longer there. Anyone who using IE6 might see the problem.
Thanks
This is not the thread for the css menu, this is the thread for a drop down box.
Read the readme for the mod you are using, then follow the instructions and upload csshover.htc.
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
I have installed this mod and I would like to have it display a single selected Sub category > with it's child categories below only?
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Sorry for the stupidity of this question, this is the first time I have used Zencart and I think it is going to work great for my website- but i am not a developer and have not attempted anything like this before. I have set up my site, and it is looking great so far- but I have a ton of categories, so this mod will be great.
I downloaded it and am reading the instructions for installation and I froze- I have no idea what they are talking about-
Where do I change the Your_Template name (i see the folder, but if I change that folder name to my template name and upload it, then won't my template be overwritten by this file?) Then the next step, I am fearful of the same thing, there is already a folder named included, if I upload this folder it will overwrite the other one-
Again- sorry that this is so utterly basic, but I need to get this moving and don't want to keep bothering my brother the computer genious-
Thank you for all your help!
:no::bangin:
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
castaway
Sorry for the stupidity of this question, this is the first time I have used Zencart and I think it is going to work great for my website- but i am not a developer and have not attempted anything like this before. I have set up my site, and it is looking great so far- but I have a ton of categories, so this mod will be great.
I downloaded it and am reading the instructions for installation and I froze- I have no idea what they are talking about-
Where do I change the Your_Template name (i see the folder, but if I change that folder name to my template name and upload it, then won't my template be overwritten by this file?) Then the next step, I am fearful of the same thing, there is already a folder named included, if I upload this folder it will overwrite the other one-
Again- sorry that this is so utterly basic, but I need to get this moving and don't want to keep bothering my brother the computer genious-
Thank you for all your help!
:no::bangin:
Use an FTP program to upload the files. Naming the folder to your template simply tells the file where to go.
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Thank you! Works great- just needed a little push to get me going and that I wouldn't mess anything up! I appreciate your help!
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
This is a great module, but what if you need 3 more drop downs to drill down through your categories? I need Select Year, Select Make, Select Model and Select Engine. Is there a download to do this?
Any help would be greatly appreciated!!
Thanks!!!
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
lrt1099
This is a great module, but what if you need 3 more drop downs to drill down through your categories? I need Select Year, Select Make, Select Model and Select Engine. Is there a download to do this?
Any help would be greatly appreciated!!
Thanks!!!
interesting question.. same here
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
Glamorousshoe
Hey Jade
Thanks for your Mods for Zen Cart.
If you take a look at my site
www.coolcarpartsonline.com I added this mod and changed the header to display shop by make. I added the make as a catagorie level 1, I want to use this mod to display the content of the Make catagorie so it will display the Make in the drop down list such as BMW, Ford, Chevy etc.....
Someone have mentioned that they figured out how to do that in this thread but they didn't list How to do it. Can You please Help.
i need something like ur left sidebox.
Are they categories?
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Anyone else having an issue with the drop down not following the breadcrumb structure? For instance, if I have a category under two sub categories: Home > Products > Section 2
Instead I get this from navigating via the drop down: Home > Section 2?
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
taugg
Anyone else having an issue with the drop down not following the breadcrumb structure? For instance, if I have a category under two sub categories: Home > Products > Section 2
Instead I get this from navigating via the drop down: Home > Section 2?
Yes, this is a known bug that I am working on. :-)
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Cool, Thanks for the follow up! I'll help you look too! :)
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Update: Wow, this is really perplexing! I cannot see why the drop down will not follow the cPath and parent category like the CSS fly-out menu works. Of course this is coded completely different... but even when I try to hack the two together, I cannot seem to access the right part of the path to add the parent directories.
I'm starting to think that we may need to go about the programming completely different... that is unless some of the other admins can help us look :) It's a bug that's pretty bothersome to me - but not sure how much it affects everyone.
Back to the hunt! :cheers:
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
taugg
not sure how much it affects everyone.
It affects me FOR SURE. Here is my website: ShopWalkThisWay.com. As you can see, the PRIMARY navigation when coming through the home page is this module... I also brought it up this past Jan when I noticed the problem.
I'd even chip in to help someone figure it out. Taugg, I also played with the code a bunch trying to figure out how to make it work, with no luck. It's a great idea for a mod, just needs an update.
Thanks!
C
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Hi,
I´m using the "category drop down select menu" mod and everything is working fine. The only thing I would like to change is the position of the subcategories within the menu.
On the 'applezen' demo page this could be seen with the Level 5,6,7 subcats, but I would like just to move the first subcat a bit more to the right. Is this possible?
Thanks
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Great package. I have a question and since I am setting this up for a new store, there really isn't anything for you to look at this time.
Is there a way to only have only the categories and subcategories only on the menu? I already have an idea for the rest of the links, but we only want the menu to have the categories.
Thanks
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Looks great in Firefox, but in Internet Explorer it scrolls with the screen, I guess it has something to do with the css positioning
did I miss something in the install? the site is ozmparts.com
thanks for the great mod,
Steve
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Hi
The link to see the mod in action does not work, any chance to see this mod in action before i attempt to upload it to my server
cheers
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
abs007
Hi
The link to see the mod in action does not work, any chance to see this mod in action before i attempt to upload it to my server
cheers
http://www.applezen.sagefish.com/ind...ain_page=index
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
Quote:
Originally Posted by
jettrue
I finally FINALLY updated this mod, so that the cpath works correctly, so your breadcrumbs work correctly. You can see it working at the link above.
If you had 1.2 installed before you will need to delete these files first:
includes/languages/english/extra_definitions/YOUR_TEMPLATE/category_select_defines.php
includes/modules/sideboxes/YOUR_TEMPLATE/categories_select.php
includes/templates/YOUR_TEMPLATE/sideboxes/tpl_categories_select.php
Since none of these files would be overrided in an update of zen cart, I changed the folder structure. If you do not delete these first, your update won't work correctly.
I just uploaded version 1.3 today, so it may take a little while to show up in the downloads section. (in the sidebox category)
-
Re: Category Drop Down SELECT Menu Sidebox Mod.
On the ZC add-on downloads page for this mod it says that it was lasted updated on Oct, 2007. Are the changes of April, 2009 listed in the previous post included in this version?