Zen Cart Logo
Forums / Addon Sideboxes / Categories Dressing

Categories Dressing

Views: 531,629

Results 1,561 to 1,580 of 2,268
1 Dec 2010, 9:09 AM
#1561
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Categories Dressing

Yes, Categories Dressing allows setting the highest and lowest levels of categories to display.
Any further discussion of altering the flyout mod would better be done in its thread or a new one. I may look at it if I have time.
It may be that the flyout styling could be applied to Categories Dressing.

1 Dec 2010, 9:24 AM
#1562
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Categories Dressing

I found the current demo for the dropdown select mod, and it shows up to seven levels of subcats. Therefore, it ought to be able to work for you.
It would probably not be practical to apply it to CD, as there is significantly different coding involved, not just styling.

1 Dec 2010, 9:27 AM
#1563
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

Re: Categories Dressing

Hmm, where did you see this? On the add on even with sub-cat enabled it only shows the first level.

Anywho, here is the thread for this mod:
http://www.zen-cart.com/forum/showthread.php?t=62197

Thank you so much for taking the time to answer me. I appreciate it.:smile:

1 Dec 2010, 9:34 AM
#1564
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Categories Dressing

Link in post #98 in that thread.

2 Dec 2010, 9:42 AM
#1565
adi2009 avatar

adi2009

New Zenner

Join Date:
Dec 2009
Location:
Sarajevo
Posts:
80
Plugin Contributions:
0

Re: Categories Dressing

gjh42:

adi - Here is a new case 7 that should give the fourth level subcats only when at the fourth level.```php
case 7:// active subtree, active branches only, only 1st & 4th level - treat first subcat like top - customized 20100205 for madijelovi
if($cPath_top != $path_top){//only 1 top cat's subs
$skip_cat = 1;
break;
}
if($cat_depth == 1){//show all first level subs
break;
}
if($cat_depth == 4 and substr_count($GET['cPath'],'') == 4){//check 4th level for active parent, only for $cPath depth 4
$path_ids = explode('',$path);
$path_parent = $path_ids[count($path_ids)-2];
if (in_array($path_parent,explode('
',$_GET['cPath']))) break;//show only subcats w parent in $cPath
}
$skip_cat = 1;//skip all others
break;


Hello Glen,

After inserting many new items in my shop, solution with showing fourth level subcats only when at the fourth level at my website is now giving me some troubles:lamo: Here's the problem:

a) If user wants to see spare parts for car brand MITSUBISHI, categories sidebox on right side of website is *visible*
[Example link 1](http://www.motor-agent.ba/index.php?main_page=index&cPath=147_151_1212_1253_1256)

b) If user user wants to see spare parts for car brand KIA, categories sidebox on right side of website is *not visible*
[Example link 2](http://www.motor-agent.ba/index.php?main_page=index&cPath=147_1499_1865_1866)

I thought I could reveal the problem by comparing these two links but I didn't found anything which could cause this issue. I am not sure but I think it has something with linked and non-linked products, not sure... :dontgetit

Any help is appreciated.

Greetings, 
Adi
2 Dec 2010, 10:51 AM
#1566
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Categories Dressing

I'll have to look at this tomorrow - I'm too tired tonight to get into another project.

2 Dec 2010, 11:53 AM
#1567
tcjay avatar

tcjay

Zen Follower

Join Date:
Jul 2010
Location:
Boston
Posts:
139
Plugin Contributions:
0

Re: Categories Dressing

gjh42:

I don't know what subcategory you have added that does not appear, but when you go to the top category Canvases, the page output cuts off just where the category description should be starting:

<div id="navBreadCrumb">  <a href="http://www.stitchboutiqueboston.com/">Home</a> :: 

Canvases

</div> <!-- eof breadcrumb --> <!-- bof upload alerts --> <!-- eof upload alerts -->

The Yarn cat shows its subcat listing just fine. I suggest you check the Canvases cat description.

Thank you for your reply. I am not sure what you are referring to. I did ad a sub category under yarn called kits and it does not appear on the menu.

2 Dec 2010, 4:52 PM
#1568
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Categories Dressing

Yarn already has products in it; you cannot have subcategories and products in the same category without causing problems. This is the first time I have seen it affect the sidebox, but you will notice that the subcat does not appear in the center, which is a common effect of this practice.

You need to reorganize your categories so there are no products and subcats in the same category.

2 Dec 2010, 10:52 PM
#1569
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

Re: Categories Dressing

Hi Glen,

The other night you tried to help me with that drop down menu? It's a few posts back. Anyway, that demo is exactly what I need this mod to do...but it doesn't. It only shows the first 2 category levels...sorry to bother you again...but just wanted to see if you had any ideas?

You can respond to me in the proper thread if you have a chance. Might be easier. Thank you!

http://www.zen-cart.com/forum/showthread.php?t=62197

5 Dec 2010, 9:45 AM
#1570
adi2009 avatar

adi2009

New Zenner

Join Date:
Dec 2009
Location:
Sarajevo
Posts:
80
Plugin Contributions:
0

Re: Categories Dressing

adi2009:

Hello Glen,

After inserting many new items in my shop, solution with showing fourth level subcats only when at the fourth level at my website is now giving me some troubles:lamo: Here's the problem:

a) If user wants to see spare parts for car brand MITSUBISHI, categories sidebox on right side of website is visible
Example link 1

b) If user user wants to see spare parts for car brand KIA, categories sidebox on right side of website is not visible
Example link 2

I thought I could reveal the problem by comparing these two links but I didn't found anything which could cause this issue. I am not sure but I think it has something with linked and non-linked products, not sure... :dontgetit

Any help is appreciated.

Greetings,
Adi

Hi Glenn,

I am still trying to figure out what could be the problem and only difference between pages with visible and not visible sidebox on the right side is difference in links:

Pages with visible sidebox on the right side have this type of URL

cPath=xxx_xxx_xxxx_xxxx_xxxx

and pages with not visible sidebox on the right side have this type of URL

cPath=xxx_xxxx_xxxx_xxxx

Perhaps this is good start for solving my issue.
Also I made two screenshot which it explains it better:

http://img809.imageshack.us/img809/9674/screenshot1p.gif
http://img8.imageshack.us/img8/4781/screenshot2o.gif

Thank you and hope you can help with this.

Cheers

5 Dec 2010, 3:48 PM
#1571
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Categories Dressing

I don't remember all the details of previous setup, but if the sidebox is set to not show except at the fourth subcat level, that would explain why it is not showing for pages with cPath xxx_xxx_xxxx_xxxx which is the third level. That setup depends on all the products being at the same level. If Kia and Mitsubishi have different structures, there will be more complicated coding required - maybe too complicated to deal with here.
You have KIA : CEED : 1. Dijelovi...
and MITSUBISHI : PAJERO : 2.5 TD... : 3. Dijelovi...

You need to have an engine size/year or whatever subcat level for Kia, even if there is only one choice in it.
KIA : CEED : 2000-2010 : 1. Dijelovi...

6 Dec 2010, 8:10 AM
#1572
adi2009 avatar

adi2009

New Zenner

Join Date:
Dec 2009
Location:
Sarajevo
Posts:
80
Plugin Contributions:
0

Re: Categories Dressing

You need to have an engine size/year or whatever subcat level for Kia, even if there is only one choice in it.
KIA : CEED : 2000-2010 : 1. Dijelovi... 

You are right Glenn, problem is that in in articles like KIA engine size/year is missing and that's why right sidebox wasn't visible. What I will do is to keep inserting data as always without skiping level(s) so fortunately there will be no need for additional coding.

Thanks a lot man:bigups::bigups::clap:

9 Dec 2010, 9:05 AM
#1573
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

Re: Categories Dressing

Hi Glen,

It's me again...any luck on the drop down mod? It's the last piece of my puzzle. :(

20 Dec 2010, 11:36 AM
#1574
tcjay avatar

tcjay

Zen Follower

Join Date:
Jul 2010
Location:
Boston
Posts:
139
Plugin Contributions:
0

Re: Categories Dressing

I have spent hours trying to figure out this module but I have finally reached the point where I am looking for assistance.

Because I have so many categories that change, I would prefer to have a standard background image and overlay the text on top. I think that it is possible. I just can't seem to figure it out. I do not think that I need to use the extra definitions file for what I am trying to accomplish.

I think I just want to use css. This is what I am using

#categories li a {
background-image: url(../buttons/english/catbg1.gif);
height: 30px;
}

#categories li a.catbg1 {
background-image: url(../buttons/english/catbg1.gif);
height: 30px;
}

#categories ul {/top category lists/
list-style: none;
background: none;
border: none;
margin: 0 0 0.4em 0;
padding: 0;
}

#categories ul ul {/subcategory lists/
list-style: none;
background: #ffeecc;
border: none;
margin: 0 0 0.4em 0;
padding: 0 0 0 1.3em;
}

Any help would be appreciated.

This is the website. http://www.stitchboutiqueboston.com :cool:

20 Dec 2010, 5:38 PM
#1575
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Categories Dressing

Yes, if you want standard backgrounds for each type of category rather than a unique one for each category (and you don't need to use text images for fancy fonts), CSS is all you need.

#categories li a {
background-image: url(../buttons/english/catbg-top.gif);

will give a standard bg for all categories - you can call the bg image anything you want, but do not use the "official" catbg#.gif or else that category # will have its text replaced with the bg image.

If you then want a different bg, or no bg image, gor subcats, you need to specify

#categories li li a {
background-image: url(../buttons/english/catbg-sub.gif);
or
background-image: none;

22 Dec 2010, 2:44 PM
#1576
dutchy avatar

dutchy

Zen Follower

Join Date:
May 2010
Location:
London
Posts:
324
Plugin Contributions:
0

Re: Categories Dressing

Hi,

I have seen a hand full of zen cart sites over the past few months with a specific layout which I have been trying to recreate but with no success.

Basically, I have 5 top level categories but each has 20+ sub categories. What I want to achieve is to have the top level categories displayed at the top of my site using Zen Cart's built-in feature. When one of those top level categories is selected, Only the sub categories for the selected top level catergory is shown down the left hand side.

E.G i have
CAT1 CAT2 CAT3 CAT4 CAT5

SUBCAT2
SUBCAT2
SUBCAT2
SUBCAT2
etc

I have tried using Category Dressing but I am unable to get this to work. Either I need to look into using a different method or need help in setting up Category Dressing properly.

All help is welcome, at the moment i am just playing via LAMP set up, but it is something I want to learn how to crack and implement on a live site.
Thanks

22 Dec 2010, 5:41 PM
#1577
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Categories Dressing

First off, the relevant sections from the v2.7.3 readme:

The category display-limiting define takes this form:

define('CAT_BOX_ACTIVE_LEVEL', 'active|highest_level|deepest_level');

* The "active" field controls whether categories outside the current active tree will display: 0=all tops/1=full active tree only/2=active tree only (all tops when no cat selected)/3=full active tree, others limited per level controls/4=like 3, active branches only/5=like 1, no tops.
* The "highest_level" field controls whether top categories will display: 0=all levels/1=no topcats/etc.
* The "deepest_level" field controls whether subcategories will display: 1=only first subcats/2=first & second subcats/.../9=all levels down to 9.

To hide certain kinds of categories, like inactive, top or subs:

define('CAT_BOX_ACTIVE_LEVEL', '0|1|9');//hide top cats
or
define('CAT_BOX_ACTIVE_LEVEL', '1|0|1');//show only active cats, to first subcat level

Adjust the "active", "highest_level" and "deepest_level" field settings as shown above to display only the active top category and its subs, hide top cats, hide sub-subcats, or any combination.
Note that this can include "expanded categories" functionality, if the Uncollapsed Categories Tree mod in this package is installed.

Only uncomment and set this define if you want to hide cats based on active tree or level.

Since you would only want the current topcat's subs to show, you may be able to get your result with just this setting.

If you want all of the current top cat's subs to show whether in the current path or not, you will need to use the chcategories option. Install the chcategories folder and make changes as described in the readme for that.

23 Dec 2010, 4:13 PM
#1578
tcjay avatar

tcjay

Zen Follower

Join Date:
Jul 2010
Location:
Boston
Posts:
139
Plugin Contributions:
0

Re: Categories Dressing

Thanks for the info. One last question. How do I move the text> I have the background image but would like to center the text.

TIA Tom

gjh42:

Yes, if you want standard backgrounds for each type of category rather than a unique one for each category (and you don't need to use text images for fancy fonts), CSS is all you need.

#categories li a {
background-image: url(../buttons/english/catbg-top.gif);

will give a standard bg for all categories - you can call the bg image anything you want, but do not use the "official" catbg#.gif or else that category # will have its text replaced with the bg image.

If you then want a different bg, or no bg image, gor subcats, you need to specify

#categories li li a {
background-image: url(../buttons/english/catbg-sub.gif);
or
background-image: none;

23 Dec 2010, 6:34 PM
#1579
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Categories Dressing

Add to the rule

#categories li a {
background-image: url(../buttons/english/catbg-top.gif);
text-align: center;

27 Dec 2010, 2:22 PM
#1580
dutchy avatar

dutchy

Zen Follower

Join Date:
May 2010
Location:
London
Posts:
324
Plugin Contributions:
0

Re: Categories Dressing

Hi, sorry for being an idiot. I followed your instructions properly and got the desired effect!.. thank you for creating such an fantastic navigation zen cart app

gjh42:

First off, the relevant sections from the v2.7.3 readme:

The category display-limiting define takes this form:

define('CAT_BOX_ACTIVE_LEVEL', 'active|highest_level|deepest_level');

* The "active" field controls whether categories outside the current active tree will display: 0=all tops/1=full active tree only/2=active tree only (all tops when no cat selected)/3=full active tree, others limited per level controls/4=like 3, active branches only/5=like 1, no tops.
* The "highest_level" field controls whether top categories will display: 0=all levels/1=no topcats/etc.
* The "deepest_level" field controls whether subcategories will display: 1=only first subcats/2=first & second subcats/.../9=all levels down to 9.

To hide certain kinds of categories, like inactive, top or subs:

define('CAT_BOX_ACTIVE_LEVEL', '0|1|9');//hide top cats
or
define('CAT_BOX_ACTIVE_LEVEL', '1|0|1');//show only active cats, to first subcat level

Adjust the "active", "highest_level" and "deepest_level" field settings as shown above to display only the active top category and its subs, hide top cats, hide sub-subcats, or any combination.
Note that this can include "expanded categories" functionality, if the Uncollapsed Categories Tree mod in this package is installed.

Only uncomment and set this define if you want to hide cats based on active tree or level.

Since you would only want the current topcat's subs to show, you may be able to get your result with just this setting.

If you want all of the current top cat's subs to show whether in the current path or not, you will need to use the chcategories option. Install the chcategories folder and make changes as described in the readme for that.