Forums / Addon Sideboxes / Categories Dressing

Categories Dressing

Views: 532,549

Results 2,221 to 2,240 of 2,268
1 Sep 2013, 2:08 AM
#2221
gjh42 avatar

gjh42

Black Belt

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

Categories Dressing

The defines you show are only the default ones; but you actually have defines customized for categories 1, 3 and 4. Category 42 is already a catGroup header because it is the first category in the list, so I can't tell if you have a define for it. You obviously don't have custom header content defined for it.

What does your actual current define list look like?

1 Sep 2013, 7:10 PM
#2222
rainbow_pixie_star avatar

rainbow_pixie_star

Zen Follower

Join Date:
Feb 2012
Posts:
427
Plugin Contributions:
0

Re: Categories Dressing

Hello,
Sorry, must have uploaded the wrong one. Here it is...

<?php /** * * @copyright Copyright 2009 Glenn Herbert * @copyright Portions Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.gnu.org/licenses/> GNU Public License V3.0 * Categories Dressing v2.7.3 - Glenn Herbert (gjh42) - 20090505 * includes/languages/english/extra_definitions/your_template/categories_dressing_defines.php */ //example defines - copy & modify for each category desired define ('CAT_BOX_HEADING_#','group|divider/class|[imgname]|[imgalt][|headcontent|headclass][|headcontent|headclass]...'); define ('CAT_BOX_HEADING_1','1|0|||Jewellery making|1');//new list - divider and- text headings - style 1 define ('CAT_BOX_HEADING_2','1|0|||Laser cut jewellery|1');//new list - text headings - style 1 define ('CAT_BOX_HEADING_3','1|0|||Scrapbooking and paper craft|1');//new list - text headings - style 1 define ('CAT_BOX_HEADING_4','1|0|||Custom celebration accessories|1');//new list - text headings - style 1 define ('CAT_BOX_HEADING_23','0|1|||Another Heading|2');//no list break - divider and text heading - style 2 define ('CAT_BOX_HEADING_33_34','0|0|||Subcat Heading|3');//simple text heading - style 3 define ('CAT_BOX_HEADING_48','1|0|cathead48.gif|Cat 48 Heading|Buy Now...|3');//image heading and alt text - can be followed by text heading(s) define ('CAT_BOX_HEADING_52','0|1||');//divider only - style 1 define ('CAT_BOX_HEADING_53','0|2||');//divider only - style 2 define ('CAT_BOX_HEADING_FEATURED','0|0|||Featured Heading|3');//no list break - text heading define ('CAT_BOX_SUBTEXT_23','Subtext for cat 23 escape apostrophe\'s|1');//subtext - style 1 // //display only the active top category and its subs, hide top cats, hide sub-subcats, or any combination. //only uncomment and set this define if you want to hide cats based on active tree or level // 'active|highest_level|deepest_level' //active: 0=all tops/1=full active tree only/2=active only (all tops when no cat selected)/ //3=full active tree, others per level/4=like 3, active branches only/5=like 1, no tops| //highest_level: 0=all levels/1=no topcats/etc.| //deepest_level: 1=only first subcats/2=first & second subcats/etc. // //define('CAT_BOX_ACTIVE_LEVEL', '0|1|9');//hide top cats //define('CAT_BOX_ACTIVE_LEVEL', '1|0|1');//show only active cats, to first subcat level ?>

Thanks
A

1 Sep 2013, 7:58 PM
#2223
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

It appears that you have set defines according to the heading you want first, second, third, etc. It doesn't work that way; you need to make the define refer to the category id or cPath of the first category in your desired group (after you have all the categories arranged in the order you want them). So "Jewellery Making" needs to be ```php
define ('CAT_BOX_HEADING_42','1|0|||Jewellery Making|1');

You need to use the category id number, not the URL rewrite you have set up for a category.
1 Sep 2013, 8:53 PM
#2224
rainbow_pixie_star avatar

rainbow_pixie_star

Zen Follower

Join Date:
Feb 2012
Posts:
427
Plugin Contributions:
0

Re: Categories Dressing

Fantastic! That seems to have worked. Which part do I need to alter for the heading for each section as I want them all to look like the header for Jewellery supplies.

Thankou
Amy

2 Sep 2013, 12:49 AM
#2225
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

'1|0|||Jewellery Making|1' specifies a type "1" heading, and if the others have this same syntax, they will have the same kind of heading.

If you want to change the heading styling, edit .catBoxHeading1 {} or whatever rule is applicable in stylesheet_categories_dressing.css.

2 Sep 2013, 8:06 AM
#2226
rainbow_pixie_star avatar

rainbow_pixie_star

Zen Follower

Join Date:
Feb 2012
Posts:
427
Plugin Contributions:
0

Re: Categories Dressing

:hug: T H A N K Y O U !:clap:

4 Oct 2013, 7:26 PM
#2227
amandavz avatar

amandavz

Zen Follower

Join Date:
Mar 2009
Location:
Crockett, Texas
Posts:
139
Plugin Contributions:
0

Re: Categories Dressing

Hi everyone...

Can you tell me how I might be able to incorporate Images for Titles with Categories Dressing? Maybe it's been posted here and I overlooked it.

I installed both, and both work well...i just can't seem to get them to work together. If I use the basic categories side box, I get my image but need to heavily modify the css to have the right look for the categories tree...but I don't really like it.

I can use the chcategories sidebox and I really like the look but can't seem to find my image header. I tried this: http://www.zen-cart.com/showthread.php?141491-Step-by-step-instructions-for-categories-dressing-and-images-as-titles but that didn't work either.

I named the image boxhead-categories.png (which I set to png) and added it to every place I could add images and it will not show up with the chcategories box. Any clue? Am I naming it wrong since I'm using the ch categories sidebox and if so...what should I name it?

Thanks so much for your help!!! :)

Amanda Vande Zande
AllClipART.info
Lonestar Princess

4 Oct 2013, 10:19 PM
#2229
amandavz avatar

amandavz

Zen Follower

Join Date:
Mar 2009
Location:
Crockett, Texas
Posts:
139
Plugin Contributions:
0

Re: Categories Dressing

Hey gjh...YOU ARE THE BEST!!! I knew it was a simple solution but sometimes the answer is so obvious we don't even see it. Thank you so much!!! :)

Amanda Vande Zande
AllClipART.info
Lonestar Princess

15 Jan 2014, 6:27 PM
#2230
debbie2014 avatar

debbie2014

New Zenner

Join Date:
Jul 2012
Location:
AZ USA
Posts:
59
Plugin Contributions:
0

Re: Categories Dressing

Is this plugin compatible with 1.5.1 ? I would like to set up several category boxes for different things ..

http://dezertdezinez.com/workspace

The categories would be as follows:

Photogrphy under this we want
1
2
3

Scrap kits
1
2
3
4

Greeting Cards
1
2
3
4
5
6
7

Scrap Books
1
2
3
4

Insperational Photos
1
2
3
Post cards

Is this possible with this plug in ..

thank you

15 Jan 2014, 6:46 PM
#2231
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

Yes, Categories Dressing works with any version of Zen Cart within the last 6 or 7 years - older than anyone should be using:) - up to the latest, and will work with v1.5.2 when it is released.

The setup you show should be possible with the chcategories option, and "category groups" for each top category.

15 Jan 2014, 9:16 PM
#2232
debbie2014 avatar

debbie2014

New Zenner

Join Date:
Jul 2012
Location:
AZ USA
Posts:
59
Plugin Contributions:
0

Re: Categories Dressing

Thank you for all your help can I come and ask questions if problems come up

18 Jan 2014, 6:55 PM
#2234
debbie2014 avatar

debbie2014

New Zenner

Join Date:
Jul 2012
Location:
AZ USA
Posts:
59
Plugin Contributions:
0

Re: Categories Dressing

Hi

I have installed the add on . though the read me file does not make sense to me .. I know what I want to do yet not sure how to change the defines to make it work .

I want to set up the categories as follows :
Photography as a top header then the names ( artists underneath)
Greeting Cards as a top header then the names ( categories underneath)
Scrap Kits as a top header then the names ( categories underneath)
and so on

I don't understand the defines file enough to change to how I would like .

Can you help me just a little with explaining some about how to set up like I would want?

Any help would be great

Debbie

19 Jan 2014, 2:48 AM
#2235
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

Unless you don't want the top categories to be clickable, you would just style them to look like the headings you want. You would first need to install the chcategories option so that the subcats would all show.
To style only the top categories, add a new rule just below the #chcategories ul a {/top categories/ rule, like```
#chcategoriesContent>ul>li>a {/top categories only/
whatever styling: you want;
}

In any case, you will need to make a define for each top category id, setting it to start a new category group.```php
define ('CAT_BOX_HEADING_1','1|0||');//new list - no headings

How do you want the sub-subcategories to behave? All visible always, or sub-subcats only visible when their parent is active? The first will require a define for CAT_ACTIVE_LEVEL, the second requires no action.

19 Jan 2014, 3:06 AM
#2236
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

Oops, forgot...> The first will require a define for CAT_ACTIVE_LEVEL, the second requires no action.It's the other way around:
The first requires no action, the second will require a define for CAT_ACTIVE_LEVEL... as I originally typed, then thought I was mistaken... but I was wrong;)

19 Jan 2014, 2:19 PM
#2237
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Re: Categories Dressing

Is it possible to hide one top category and show all others?

19 Jan 2014, 2:45 PM
#2238
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Re: Categories Dressing

Well, I answered my own question. Here's my workaround in case anyone else wants to know. I'm selling e-books on my site and wanted to hide the "series" categories. This is what I did:

  1. Created a top category called SERIES. Turn it OFF (red button beside it in the Admin instead of green).

  2. Move all my series categories into the top category SERIES. Make sure the categories are turned ON (green button instead of red).

  3. Create an EZ-Page with all my series links in it. Link to the new subcategories directly (with a cPath=CATEGORY_ID link instead of the cPath=TOPCAT_CATID).

I hope this makes sense!

26 Jan 2014, 10:58 AM
#2239
debbie2014 avatar

debbie2014

New Zenner

Join Date:
Jul 2012
Location:
AZ USA
Posts:
59
Plugin Contributions:
0

Re: Categories Dressing

gjh42:

Unless you don't want the top categories to be clickable, you would just style them to look like the headings you want. You would first need to install the chcategories option so that the subcats would all show.
To style only the top categories, add a new rule just below the #chcategories ul a {/top categories/ rule, like```
#chcategoriesContent>ul>li>a {/top categories only/
whatever styling: you want;
}

> In any case, you will need to make a define for each top category id, setting it to start a new category group.```php
define ('CAT_BOX_HEADING_1','1|0||');//new list - no headings

How do you want the sub-subcategories to behave? All visible always, or sub-subcats only visible when their parent is active? The first will require a define for CAT_ACTIVE_LEVEL, the second requires no action.

I would like them to behave like the second as then it keeps the sidebar neat.

Sorry for taking so long to reply I had forgotten about asking and was doing other things

Debbie

28 Feb 2014, 5:19 PM
#2240
bobuma avatar

bobuma

New Zenner

Join Date:
Feb 2014
Location:
Florida
Posts:
1
Plugin Contributions:
0

Re: Categories Dressing

I've begun working on a truck accessory website and was hoping for some help on the coding. I want to format the website in X-cart and use a template similar to this:

http://www.hitchanything.com/

I really like how this company formatted the site and want to base my site off this model. I'm good on the html, but need a programmer to get some stuff done.