Zen Cart Logo
Forums / Addon Sideboxes / Categories Dressing

Categories Dressing

Views: 531,610

Results 701 to 720 of 2,268
7 Apr 2009, 2:56 PM
#701
ben_harry avatar

ben_harry

Zen Follower

Join Date:
Mar 2007
Location:
Cornwall - uk
Posts:
462
Plugin Contributions:
0

Categories Dressing

Ive figured it out now, it was in languages/english/extra_definitions/custom/categories_dressing_defines.php and i just put // in front of the code.

7 Apr 2009, 3:00 PM
#702
ben_harry avatar

ben_harry

Zen Follower

Join Date:
Mar 2007
Location:
Cornwall - uk
Posts:
462
Plugin Contributions:
0

Re: Categories Dressing

What folder do you add coding to enable divider lines, i used the code from an older version of this mod and placed it in the stylesheet but it didnt work.

7 Apr 2009, 3:20 PM
#703
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

The readme describes the process for adding dividers. For example:

define ('CAT_BOX_HEADING_52','0|1||');//divider only - style 1
define ('CAT_BOX_HEADING_53','0|2||');//divider only - style 2

7 Apr 2009, 3:25 PM
#704
ben_harry avatar

ben_harry

Zen Follower

Join Date:
Mar 2007
Location:
Cornwall - uk
Posts:
462
Plugin Contributions:
0

Re: Categories Dressing

I can see that but, but i dont know what file that is in to edit,

7 Apr 2009, 3:34 PM
#705
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

it was in languages/english/extra_definitions/custom/categories_dressing_defines.php

I thought you knew that defines were here.

7 Apr 2009, 6:52 PM
#706
ben_harry avatar

ben_harry

Zen Follower

Join Date:
Mar 2007
Location:
Cornwall - uk
Posts:
462
Plugin Contributions:
0

Re: Categories Dressing

Ive been looking at this now since you replied, and i really cant work it out, in my other copy the is a line where you put the page id seperated by a comma e.g 1,2,3,4,5 etc etc but i cant see that line in this version. im sure its a very easy fix, but i cant work it out.

7 Apr 2009, 7:01 PM
#707
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

That method is completely replaced by the "define" file method. Forget about the comma-separated numbers, and make new copies of the define for each category where you want a divider.

7 Apr 2009, 7:21 PM
#708
ben_harry avatar

ben_harry

Zen Follower

Join Date:
Mar 2007
Location:
Cornwall - uk
Posts:
462
Plugin Contributions:
0

Re: Categories Dressing

I tried adding
define ('CAT_BOX_HEADING_2','1|1||');//divider only - style 1
define ('CAT_BOX_HEADING_3','1|1||');//divider only - style 1
define ('CAT_BOX_HEADING_4','0|1||');//divider only - style 1
define ('CAT_BOX_HEADING_5','0|1||');//divider only - style 1
define ('CAT_BOX_HEADING_6','0|1||');//divider only - style 1
define ('CAT_BOX_HEADING_7','0|1||');//divider only - style 1
define ('CAT_BOX_HEADING_8','0|1||');//divider only - style 1

But that was obviously wrong as it didnt work, what should i be writing to get divider lines between category ID 2 - 9

7 Apr 2009, 8:03 PM
#709
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

And you added that to /includes/languages/english/extra_definitions/custom/categories_dressing_defines.php?

If so, it should work. Did you make any changes in tpl_categories.php, or any other mod files beside the stylesheet?

Note that the dividers go above the selected category, so you would get dividers between categories 1 - 8 with the defines you show.

7 Apr 2009, 8:39 PM
#710
ben_harry avatar

ben_harry

Zen Follower

Join Date:
Mar 2007
Location:
Cornwall - uk
Posts:
462
Plugin Contributions:
0

Re: Categories Dressing

I refreshed a few times and it has worked :smile:

Do you know what code i should add to make the hover color fill the complete space between the dividers.

Thanks

7 Apr 2009, 8:49 PM
#711
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

You would want to edit the hr.catBoxDivider1 {} rule in the stylesheet to make its height or line-height only 1 pixel... experiment.

7 Apr 2009, 9:16 PM
#712
ben_harry avatar

ben_harry

Zen Follower

Join Date:
Mar 2007
Location:
Cornwall - uk
Posts:
462
Plugin Contributions:
0

Re: Categories Dressing

Is this the correct code

hr.catBoxDivider1 {
color: #aabbcc;
line-height: 1px;
}

12 Apr 2009, 9:17 PM
#713
newagekat avatar

newagekat

Zen Follower

Join Date:
Nov 2005
Location:
Vancouver, Canada
Posts:
151
Plugin Contributions:
0

Re: Categories Dressing

Hello Glenn:

Maybe I should PM you on this as it is not strictly a questions.

In my discussion with Website Rob and our past conversations, I know you are working on modifying the code so that the list meets standards. Not meaning to rush you, but can you give me an ETA as to when you anticipate having this complete? Do you require assistance? I have a php programmer that could help you out on my $$. Let me know.

thanks.

13 Apr 2009, 11:39 PM
#714
poconos avatar

poconos

New Zenner

Join Date:
Apr 2009
Posts:
4
Plugin Contributions:
0

Re: Categories Dressing

Hi
This mod offers what I am looking for in order to customize my category box but I am hoping for a little help. I installed it on my site https://www.poconogiftbaskets.com/catalog I have gone over the readme file several time but am having trouble editing the code within the categories_dressing_defines.php to make the changes I want. I am using zencart 1.38a Basically, I would like to remove the black bullets in front of each category listing. I also wanted my list of categories to be organized in 3 seperate groups, each with its own non-linking header and seperated by a divider. To look something like this.

Special Occasions
Administrative Professionals
Holiday & Seasonal
Wedding & Anniversary
Baby
Birthday
Get Well
Thank You
Housewarming
Sympathy
Congratulations
Thinking of You


Theme Designs
Care Packages
Gifts for Him
Gourmet Delight
Snacks & Sweets
Romance
Fine Chocolate
Coffee & Tea
Gift Towers
Sports & Leisure
Spa


Corporate Collection
Client Appreciation
Employee Recognition
Real Estate Gifts
Gifts at Marketing Tools

Any help with this would be greatly appreciated.
Thanks
Lisa

14 Apr 2009, 7:53 AM
#715
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

The bullets are handled by CSS - look in stylesheet_categories_dressing.css for the comments about removing bullets (you will want to use list-style: none;).

For the groups, you want to specify in categories_dressing_defines.php that the category id of the first category in each group (Administrative Professionals, Care Packages, Client Appreciation) begins a new group, has a text heading with content as shown, and the second and third have dividers above them.```php
define ('CAT_BOX_HEADING_23','1|0|||Special Occasions|1');//new list - text heading - style 1
define ('CAT_BOX_HEADING_24','1|1|||Theme Designs|1');//new list - divider and text heading - style 1
define ('CAT_BOX_HEADING_25','1|1|||Corporate Collection|1');//new list - divider and text heading - style 1

Replace 23, 24 and 25 with the correct category ids.
14 Apr 2009, 4:52 PM
#716
poconos avatar

poconos

New Zenner

Join Date:
Apr 2009
Posts:
4
Plugin Contributions:
0

Re: Categories Dressing

Glenn,
Thanks so much for your help with the php code for the categories_dressing_define file. Now, I can just experiment with the styling in the css file which I am more familiar with doing.
Thanks again,
Lisa

16 Apr 2009, 8:43 AM
#717
krazey avatar

krazey

New Zenner

Join Date:
Apr 2009
Posts:
32
Plugin Contributions:
0

Re: Categories Dressing

Hi Glen,
I have installed the mod and want to modify mine so it looks like this:

GIRLS
Dresses
Tops
Bottoms
Outerwear

GUYS
Tops
Bottoms
Outerwear

ACCESSORIES
jewellery
Sunnies
Bags
Shoes
Home & Lifestyle

I dont want to have any bullets or decoration just rollovers. Thank you!!!

16 Apr 2009, 4:38 PM
#718
gjh42 avatar

gjh42

Black Belt

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

Re: Categories Dressing

Your process would be the same as in post 714 above, with the names changed to fit your situation.

If you don't want any dividers, make sure all of the defines start like this:

'1|0|||

16 Apr 2009, 10:30 PM
#719
krazey avatar

krazey

New Zenner

Join Date:
Apr 2009
Posts:
32
Plugin Contributions:
0

Re: Categories Dressing

Great it worked perfectly but how do i add a 'GUYS' image as a title and a "ACCESSORIES" image as a title like the GIRLS one i have???

16 Apr 2009, 11:27 PM
#720
krazey avatar

krazey

New Zenner

Join Date:
Apr 2009
Posts:
32
Plugin Contributions:
0

Re: Categories Dressing

Sorry i found it:
define ('CAT_BOX_HEADING_2','1|1|cathead2.gif|||1');//new list - divider and text heading - style 1
Thanks for the help!!!:clap: