Zen Cart Logo
Forums / Addon Sideboxes / Categories Dressing

Categories Dressing

Views: 531,647

Results 1,101 to 1,120 of 2,268
18 Dec 2009, 7:15 AM
#1101
gjh42 avatar

gjh42

Black Belt

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

Categories Dressing

It looks like you have mixed up two kinds of background images, headings and categories.
Did you make defines like this for each category?

define ('CAT_BOX_HEADING_48','1|0|catbg48.gif|Cat 48 Heading');//image heading and alt text

Those defines are creating headings (non-linked) with the images you intended for the categories.

19 Dec 2009, 1:41 AM
#1102
tekne avatar

tekne

New Zenner

Join Date:
Dec 2009
Posts:
3
Plugin Contributions:
0

Re: Categories Dressing

Alright, I went back and reset all of the pages and then started fresh from the instructions. The images are still not linking and there are error text links showing up below them. What am I doing wrong?

19 Dec 2009, 6:01 AM
#1103
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

It looks like there are two problems. First, you are defining headings when you want category links. Do not use any of those defines - comment them all out.

Second, you are somehow getting the classname generated incorrectly. You should be getting output similar to this```

<li class="cat-top"><a class="cat-not-selected catBg25" href=" ```Note the space; this is two classnames, cat-not-selected and catBg25.

You are getting this```

<li class="cat-top"><a class="cat-not-selectedcatBg69" href="http://shoptekne.com/zencart/index.php?main_page=index&cPath=69"><img src="includes/templates/tekne_default/images/pixel_trans.gif" alt="" width="100%" height="100%" title="Necklaces" /></a></li> ```This is one classname, cat-not-selectedcatBg69, and .catBg69 in the stylesheet will have nothing to do with this name.

The space is created in categories_dressing_functions.php; did you do any editing of that file at all?

function cat_name_display($cat_name_display, $current_path) {
//...
  //display background image if exists for category name in current language - with title tag
  } elseif (file_exists(DIR_WS_TEMPLATE . 'buttons/' . $_SESSION['language'] . '/catbg' . $current_path . CAT_NAME_IMG_EXT)) {
    $cat_name_display = zen_image(DIR_WS_TEMPLATE_IMAGES . 'pixel_trans.gif', '', '100%', '100%', 'title="' . $cat_name_display . '"');
    $cat_img_bg = ' catBg' . $current_path;

' catBg' has a space before cat, which is necessary for the function to work.
What does that line in your copy of categories_dressing_functions.php look like?

19 Dec 2009, 7:28 AM
#1104
tekne avatar

tekne

New Zenner

Join Date:
Dec 2009
Posts:
3
Plugin Contributions:
0

Re: Categories Dressing

Weirdly enough when I deleted and replaced the functions page it started working fine. I guess it was a dreamweaver issue. Thanks for all of your help!

19 Dec 2009, 4:39 PM
#1105
amandavz avatar

amandavz

Zen Follower

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

Re: Categories Dressing

Can someone tell me how to remove this thing from my zen cart? I wanted banner images for my sideboxes and I ended up with a mess of stuff I don't understand or have time to figure out. I do not need images in my category box, just images to add in place of the text for my sideboxes. If someone could explain how to implement this or tell me how to remove without crashing my site, I would greatly appreciate it. :lamo:

http://www.allclipart.info/store

Thank You...amandavz

19 Dec 2009, 5:07 PM
#1106
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

Categories Dressing will let you have images in place of text in your categories sidebox, but it does not affect other sideboxes.
The readme.html has complete instructions for substituting images, as well as bold notes for turning off the features you don't need.

If you want to uninstall it, just delete the files in the mod (the readme has a complete file list).

19 Dec 2009, 5:19 PM
#1107
amandavz avatar

amandavz

Zen Follower

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

Re: Categories Dressing

Hi Glen,

Thanks for the quick response. Maybe I am a total moron, but I would have to be college degreed to understand your instructions. I was looking for zen cart for dummies instructions. I did try to delete the files in the mod once already and I lost all side boxes and content for my site, I was left with only a background, header and "HOME / LOGIN" buttons at the top.

19 Dec 2009, 6:06 PM
#1108
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

None of the mod files overwrites any existing file, so deleting them would have no effect on the rest of the site. First try deleting /includes/templates/your_template/sideboxes/tpl_categories.php. Without that one, the rest just sit there and do nothing.

There are many options in this mod, so the readme needs to have a lot of text. The basic information for replacing category names with images is just this:

To display images in place of selected category names:

Make your images with names like catimg#.gif (or catbg#.gif and catbg#hover.gif), and save in /includes/templates/your_template/buttons/english/. ...
Replace the # with the category cPath.

20 Dec 2009, 2:01 PM
#1109
adi2009 avatar

adi2009

New Zenner

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

Re: Categories Dressing

gjh42:

For help with Cat Dressing, please post in its support thread so the info stays in one place.
This kind of customization will require a good grasp of CSS, so the more you know about that the easier it will be to help you.

@Glenn

regarding my problem described in this thread I am switching to support thread :smartalec:

I have followed installation instructions for Categories Dressing and installed it successfully. Problem for me is where to start and what is the first step, so I could achieve my subcategories listing looks like this:

http://img138.imageshack.us/img138/6494/28265514.jpg

instead of this

http://img138.imageshack.us/img138/5663/41595109.jpg

also, in last post you have mentioned that I must have good knowledge of CSS, no problem I think I will be able to handle it :bigups:

21 Dec 2009, 6:38 PM
#1110
weber avatar

weber

Zen Follower

Join Date:
Nov 2005
Posts:
157
Plugin Contributions:
0

Re: Categories Dressing

find a hard time playing with the parameter. can you suggest any combination?

for example, i want all the tree when any cate or sub cate or sub sub cate is select

21 Dec 2009, 8:08 PM
#1111
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

adi2009 -
If all your client wants is to have the current category's subcategories listed as you show, you can do it with one rule change in your regular stylesheet - something like this.```
.categoryListBoxContents {
width: 100% !important;
float: none;
border: 2px solid #224466;
background: #aabbcc;
text-align: left;
}

But I had the impression that they wanted a bunch more customization. If you want the "Parts" sidebox on the right at the last subcat level, you would use the #chcategories sidebox for the main (left) menu and the #categories sidebox on the right with code to let it show only at the right level.
21 Dec 2009, 8:11 PM
#1112
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

weber -
By "all the tree" do you mean the active top cat and all its subs? And what do you want to show when no category is active?

21 Dec 2009, 9:15 PM
#1113
adi2009 avatar

adi2009

New Zenner

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

Re: Categories Dressing

first, code you suggested worked like charm:bigups::bigups:

regarding my client: he gaved me to links of websites which have subcategories listing that are acceptable for him,

  1. http://kejparts.katalogazja.pl

This is is the first one and most acceptable for him (because there will be ton of products and categories so it is important that listings are simple and easy for use).

  1. http://www.milneroffroad.com

This one is also acceptable for him but he primarly would like to have listing system like on link I have mentioned on number one position. With your help, I have acomplished to have listing similar to this link on second position.

As I have mention in text above, my goal is primarly to create subcategories listing similar to link on number one position, so now I will try to customize it following your tips/suggestions:

use the #chcategories sidebox for the main (left) menu

for this part, no problem, I used #chcategories sidebox as the main menu

#categories sidebox on the right with code to let it show only at the right level

do I have to set #categories sidebox on the riht column or main midlle column cause I have disabled "Column Right Status - Global" under Admin>Configuration>Layout Settings ? I am not sure what exactly have to and also how to change code to let it show only at right level?

23 Dec 2009, 7:22 PM
#1114
karkar avatar

karkar

New Zenner

Join Date:
Nov 2009
Posts:
15
Plugin Contributions:
0

Re: Categories Dressing

gjh42:

You want a different bullet for each category? That would require the "special category" classname as described in the tpl_categories.php comments, for each category. Then you could address each cat with a unique list-style-image: property to set its bullet.

I'm glad it's not an impossible thing. but unfortunately, my level of expertise isn't good enough to figure out what u said and bring it to life. a brief step-by-step and file-by-file description would be a great help. I have all the corresponding gif images for the categories that I want to be highlighted when a visitor is viewing the corresponding content.

also, please help me remove 'all products' underneath the categories

THANKSSS!

23 Dec 2009, 8:07 PM
#1115
adi2009 avatar

adi2009

New Zenner

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

Re: Categories Dressing

@Glenn

just to inform you: I presented subcategorie listing similar to milneroffroad.com and he aprooved it, so thanks man! right now I am working little on design and its going OK

Cheers! :smile:

23 Dec 2009, 8:31 PM
#1116
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

karkar - The All Products link can be turned off in Configuration > Layout Settings.
I can go into more detail after Christmas for the special categories.

adi2009 - Glad the client is happy so far! The #categories sidebox would go in the right column, and you would need to do the custom coding to make the right column and sidebox only show in the correct conditions. This is a common bit of code which is described elsewhere in the forum.
You would probably want to make the left sidebox show only top categories, and the right sidebox show the subcategories of the current top or selected sub.This could be done with a stylesheet rule for the left, or a bit of code changed if processing time matters. The right will be in the define settings. A more sophisticated control might require some new code for that too.
I'll get into that after Christmas.

23 Dec 2009, 9:40 PM
#1117
karkar avatar

karkar

New Zenner

Join Date:
Nov 2009
Posts:
15
Plugin Contributions:
0

Re: Categories Dressing

[QUOTE=gjh42;821401]karkar - The All Products link can be turned off in Configuration > Layout Settings.
I can go into more detail after Christmas for the special categories.

Great, we'll get to that after Christmas. as for the 'all products' i removed it, but the spot remains, i.e. a divider and borders surrounding the absence of all products... :(

23 Dec 2009, 9:43 PM
#1118
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

Try turning off Featured, New and Specials as well. The links will only show if there is content, but the section will show if any of them are enabled.

23 Dec 2009, 10:40 PM
#1119
karkar avatar

karkar

New Zenner

Join Date:
Nov 2009
Posts:
15
Plugin Contributions:
0

Re: Categories Dressing

gjh42:

Try turning off Featured, New and Specials as well. The links will only show if there is content, but the section will show if any of them are enabled.

It worked great, thanks! I know it's kinda irrelevant... but you will know better. do you have a clue how i can incorporate a schedule-a-service-call form in my page? do you know any such customizable add-on made specifically for a zen-cart? thanks

24 Dec 2009, 8:38 AM
#1120
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

Not as such, but you can add your own form code to a Blank Sidebox or Editable Sidebox from Free Addons.