Zen Cart Logo

Sub-Category

Locked

Views: 1,512

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
23 Mar 2007, 4:38 PM
#1
margecc avatar

margecc

Zen Follower

Join Date:
Feb 2007
Location:
Ontario, Canada
Posts:
234
Plugin Contributions:
0

Sub-Category

http://www.actionforms.ca/index_officesupplies.html is the site I am working on.

I am trying to turn of the images for the sub category menu:

I went to Admin -> Config -> Product List and set "Include Product Listing Sub Categories Image" to false, but the images are still appearing.

I would also like to list them vertically, rather than horizontally. Is this a setting in admin or is it through the CSS.

Thanks
Colleen

23 Mar 2007, 5:38 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Sub-Category

For giggles and grins ... switch to the Classic Template ... does it work properly now?

How about if you lose the Frames ... Zen Cart is really not made for Frames and it weakens your search engine potential as well ...

23 Mar 2007, 5:44 PM
#3
margecc avatar

margecc

Zen Follower

Join Date:
Feb 2007
Location:
Ontario, Canada
Posts:
234
Plugin Contributions:
0

Re: Sub-Category

Smiles and Chuckles....I switched to Classic and when I click on hardware the icons are still showing.

I actually had just put the frames there to see how it looked. Unfortunately it has to mesh with my current site and I'm not sure of a better way to do it. Most of my traffic is through paid advertising, so I specify the link. I would love any suggestions if you have any to better mesh it!!

Thanks
Colleen

28 Mar 2007, 7:34 PM
#4
margecc avatar

margecc

Zen Follower

Join Date:
Feb 2007
Location:
Ontario, Canada
Posts:
234
Plugin Contributions:
0

Re: Sub-Category

These images are still appearing when you click on a category (ie, when you click on hardware, the icon for CDROM drives, etc comes up.

My site address changed and it is now at https://www.actionforms.ca/officesupplies

29 Mar 2007, 4:16 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Sub-Category

Good grief ... we are talking about two different things ... :eek:

You mean the Sub Category images when in a Category with subcategories before you get to the actual Products ...

The one I was talking about controls whether or not you see the Categories Image when you see the List of Products when in a Top Level Category or in a SubCategory ...

What you need to do is copy the file:
/includes/modules/category_row.php

to your templates and overrides directory:
/includes/modules/your_template_dir/category_row.php

And customize the code at about lines 39 to 40:

    $list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"',
                                           'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br />' . $categories->fields['categories_name'] . '</a>');

To not include the image:

    $list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"',
                                           'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . '<br />' . $categories->fields['categories_name'] . '</a>');

Hate when I lose my mind ... :cool:

29 Mar 2007, 5:11 PM
#6
margecc avatar

margecc

Zen Follower

Join Date:
Feb 2007
Location:
Ontario, Canada
Posts:
234
Plugin Contributions:
0

Re: Sub-Category

And I was trying to be such a good girl and not touch the code!

Sorry I have a very bad habit of explaining myself very poorly.

I'll try it tomorrow and I'll be back whining if I have problems.

Appreciate the help!!

P.S. Back on the frame subject started earlier, other than the pure annoyance of frames, are they likely to give me any problems with Zen Cart. Or do other have a better way of doing it.