Zen Cart Logo
Forums / Addon Sideboxes / Categories Dressing

Categories Dressing

Views: 531,669

Results 1,181 to 1,200 of 2,268
5 Feb 2010, 4:22 PM
#1181
gjh42 avatar

gjh42

Black Belt

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

Categories Dressing

"Apart from hard-coding it in the tpl_categories.php, is there other way to have a group of links (around 10 manufacturer links) to show as a category sidebox without creating the folders in admin?"

You can code the links into a "heading" for a category or link in categories_dressing_defines.php, or hard-code them in tpl_categories.php.

You might be able to use the manufacturers sidebox, remove its heading, and make it stick tight to the bottom of the categories box so it looks continuous (all with CSS), or put the mfr links in the ez-page sidebox and do the same.

5 Feb 2010, 4:46 PM
#1182
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Re: Categories Dressing

gjh42:

"Apart from hard-coding it in the tpl_categories.php, is there other way to have a group of links (around 10 manufacturer links) to show as a category sidebox without creating the folders in admin?"

You can code the links into a "heading" for a category or link in categories_dressing_defines.php, or hard-code them in tpl_categories.php.

You might be able to use the manufacturers sidebox, remove its heading, and make it stick tight to the bottom of the categories box so it looks continuous (all with CSS), or put the mfr links in the ez-page sidebox and do the same.

We wont be able to use the manufacturer sidebox as we have over 50 manufacturers and we are only picking the top 10 most popular to show on a sidebox.

Im not sure how to code the links into a heading in categories_dressing_defines.php. Could you please give me an example. I thought all the headings are just static. Below is what we have in the categories_dressing_defines.php

define ('CAT_BOX_HEADING_309','1|0|||Popular Phone Brands|1||');
define ('CAT_BOX_HEADING_19','1|0|||Popular Series|1||');

Thanks...

5 Feb 2010, 5:07 PM
#1183
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

The headings will be output as HTML, so you can code a link into a heading text section.

define ('CAT_BOX_HEADING_23','1|0|||<a href="your desired address1">Manufacturer 1</a>|2|<a href="your desired address2">Manufacturer 2</a>|2|<a href="your desired address3">Manufacturer 3</a>|2');
```All of these links will appear above category 23, and can be styled using .catBoxHeading2 {} and .catBoxHeading2 a {}.
For internal links, use href="index.php?main_page=whatever&manufacturerId=whatever", or however the URL looks when you are on the desired page.
5 Feb 2010, 5:26 PM
#1184
neha avatar

neha

New Zenner

Join Date:
Feb 2010
Posts:
4
Plugin Contributions:
0

Re: Categories Dressing

Hello there,
Greeings!!

I have installed Categories Dressing to show the subcategories always in the sidebox. I used 'CAT_ACTIVE_LEVEL' to show the categories and subctegories at level one. Problem is with it hides the 2nd level subcategory. I don't want to hide it.

Instead

I need to always show master categories and subactegory level 1 and by click on subactegory1 it shows me subcategories at level 2 in the sidebox.

It doesn't meant to hide the level 2 subcategories. i need to show 2 level categories on the click of its parent category.

Please help me to resolve this problem.

Hope u understand my need to complete this and help me.

hope to see the response soon,
Many Thanks.

5 Feb 2010, 5:50 PM
#1185
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

You will want the define to read

define('CAT_BOX_ACTIVE_LEVEL', '4|0|1');

This will use case 4 to show the active tree, active branches only, and others per level (0|1 = top and first sub).

Note: if this doesn't work correctly, let me know and post a link to see your site. I am working from the as yet unreleased v2.8 copy of the file, and might have changed something relevant from the latest released version.

5 Feb 2010, 6:00 PM
#1186
zubenubi avatar

zubenubi

New Zenner

Join Date:
Jan 2010
Location:
Ireland
Posts:
88
Plugin Contributions:
0

Re: Categories Dressing

Hi Glenn, thanks for replying, Unfortunately I'm doing this all on my laptop so I can't give you a link.

I'll attach my css files if your game for taking a look but at least I know that it is possible! So I'll keep plugging away.

Really cant think what the problem is i dont think i've done anything weird, I'm sure I'm not missing semicolons or anything, I can change other variables of a group but just not margin, padding or anything to do with background.

5 Feb 2010, 6:20 PM
#1187
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Re: Categories Dressing

gjh42:

The headings will be output as HTML, so you can code a link into a heading text section.

define ('CAT_BOX_HEADING_23','1|0|||<a href="your desired address1">Manufacturer 1</a>|2|<a href="your desired address2">Manufacturer 2</a>|2|<a href="your desired address3">Manufacturer 3</a>|2');

> For internal links, use href="index.php?main_page=whatever&manufacturerId=whatever", or however the URL looks when you are on the desired page.

Thanks for the reply. 
The code above works but I can't seem to get it where I want it to be. I need these group of links between "Top Phone Brands" and "Popular Series" category groups and need this to have a heading as well. Link to the site is <https://www.playnippon.com>
5 Feb 2010, 6:43 PM
#1188
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

That is doable.
Add another heading "|Manufacturers|1|" in front of the manufacturers list "headings" described above, and put the whole series in front of the existing heading for category 19 (Ah My Goddess).```php
define ('CAT_BOX_HEADING_19','1|0|||Manufacturers|1|<a href="...'

5 Feb 2010, 6:55 PM
#1189
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Re: Categories Dressing

When I add the above code, the Manufacturers heading appears but the "Popular Series" heading disappears because it is being replaced by the links. Below is what we have in the file.

define ('CAT_BOX_HEADING_19','1|0|||Manufacturers|1|<a href="your desired address1">Manufacturer 1</a>|2|<a href="your desired address2">Manufacturer 2</a>|2|<a href="your desired address3">Manufacturer 3</a>|2');
define ('CAT_BOX_HEADING_309','1|0|||Top Phone Brands|1||');
define ('CAT_BOX_HEADING_19','1|0|||Popular Series|1||');

5 Feb 2010, 7:14 PM
#1190
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

You need to merge the two defines for category 19.```php
define ('CAT_BOX_HEADING_19','1|0|||Manufacturers|1|<a href="your desired address1">Manufacturer 1</a>|2|<a href="your desired address2">Manufacturer 2</a>|2|<a href="your desired address3">Manufacturer 3</a>|2|Popular Series|1||');

5 Feb 2010, 7:18 PM
#1191
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Re: Categories Dressing

That did it!!! Thanks so much!!!
Appreciate the help!!!

5 Feb 2010, 7:27 PM
#1192
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Re: Categories Dressing

Uhmm...sorry for the trouble.

Another question, can you only add 1 group of links? Or can I duplicate the above and have another group of links below or above the Manufacturers?

5 Feb 2010, 8:15 PM
#1193
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

There is theoretically no limit to the number of different link "heading" groups you can add to a category in this manner. They just all have to be in the one define statement.

That is a very nice implementation of the heading function... it's satisfying to see some of the features I built being used to their fullest.

5 Feb 2010, 8:36 PM
#1194
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Re: Categories Dressing

I see...so you can only have 1 define per category number.
Just wondering, how do I get hover effect for the headings the same as normal category links? At the moment, we are only getting text-hover effect.
Lastly, how do I add white space at the bottom of each group?

Thanks for this great mod! :)

5 Feb 2010, 8:47 PM
#1195
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Re: Categories Dressing

Managed to get the space issue done by changing the style for the Popular Series heading.
Only issue left is the hover effect. Need the hover to be the whole block instead of just the text link.

5 Feb 2010, 10:27 PM
#1196
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

Add to
.catBoxHeading2 a {
display: block;
}

5 Feb 2010, 10:41 PM
#1197
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Re: Categories Dressing

Added the above but the hover still only affect the text instead of the whole block like in the "popular series" sidebox. I also added code below but didn't made any difference.

.catBoxHeading2 a:hover {background:#ffffff url(../images/bc_cat_no_sub_hover.gif) no-repeat;}

5 Feb 2010, 11:55 PM
#1198
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

...holding...

6 Feb 2010, 12:20 AM
#1199
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

Your compressed CSS seems to have eliminated a lot of the stylesheet_categories_dressing.css entries, and I don't see the .catBoxHeading2 a:hover {} rule at all, unless that is somewhere else in the compressed mass of code.```

  • html #categories li, * html #categories li a{height:1em;background-image:url(/includes/templates/custom/images/pixel_trans.gif)}
    .catBoxHeading1{font-family:tahoma,arial,helvetica,verdana;font-weight:bold;color:#fff;background-image:url(/includes/templates/custom/images/sideheader_bg.gif);padding:5px 0 8px 19px;margin:0}
    .catBoxHeading2{font-family:tahoma,arial,helvetica,verdana;color:#fff;padding:0;margin:0}
    .catBoxHeading3{font-family:tahoma,arial,helvetica,verdana;font-weight:bold;color:#fff;background-image:url(/includes/templates/custom/images/sideheader_bg.gif);padding:5px 0 8px 19px;margin-top:9px}
    .catBoxHeadingImg{padding:0;margin:0}
    #categories ul{list-style:none;background:none;border:none;margin:0 0 9px 0;padding:0}
    #categories ul a{display:block;background:#f0f0f0 url(/includes/templates/custom/images/bc_cat_no_sub.gif) no-repeat;border-top:2px solid #fff;border-bottom:1px solid #cfd9e2;padding:1px 0 4px 20px}
    #categories li.cat-top a:hover{background:#fff url(/includes/templates/custom/images/bc_cat_no_sub_hover.gif) no-repeat}
6 Feb 2010, 12:34 AM
#1200
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Re: Categories Dressing

I removed the entries that are not being used (i.e. subcategories).
I have entered the .catBoxHeading2 a:hover now but still nothing happens. No changes in the hover effect.