Forums / Templates, Stylesheets, Page Layout / Show subcategories on main page?

Show subcategories on main page?

Locked

Views: 12,046

Results 1 to 20 of 26
This thread is locked. New replies are disabled.
3 Feb 2007, 6:07 PM
#1
silverbitz avatar

silverbitz

New Zenner

Join Date:
Feb 2007
Posts:
22
Plugin Contributions:
0

Show subcategories on main page?

This must be areally stupid thing, but I can't seem to grasp it. How do you show a list of subcategories, along with their images when you click on a category, insde the main content?

Like on this site:

http://www.dotcomtoolsuk.com/store/index.php?main_page=index&cPath=4

My sub-categories only show in the sidebox :(

3 Feb 2007, 6:12 PM
#2
louis avatar

louis

Zen Follower

Join Date:
Jul 2006
Location:
Johannesburg
Posts:
408
Plugin Contributions:
0

Re: Show subcategories on main page?

Look for "Categories - Always Show on Main Page" under Configuration>Layout Settings

3 Feb 2007, 6:49 PM
#3
silverbitz avatar

silverbitz

New Zenner

Join Date:
Feb 2007
Posts:
22
Plugin Contributions:
0

Re: Show subcategories on main page?

It's set to true. The main categories show on top (only the names, in grey) but if I click on them, the subcategories only appear in the sidebox.

3 Feb 2007, 7:01 PM
#4
louis avatar

louis

Zen Follower

Join Date:
Jul 2006
Location:
Johannesburg
Posts:
408
Plugin Contributions:
0

Re: Show subcategories on main page?

And "Always Show Categories and SubCategories" in same section?

3 Feb 2007, 7:26 PM
#5
silverbitz avatar

silverbitz

New Zenner

Join Date:
Feb 2007
Posts:
22
Plugin Contributions:
0

Re: Show subcategories on main page?

Those are my setting for that menu:


Column Width - Left Boxes 150px
Column Width - Right Boxes 150px
Bread Crumbs Navigation Separator  :: 
Define Breadcrumb Status 1
Bestsellers - Number Padding  
Bestsellers - Truncate Product Names 35
Bestsellers - Truncate Product Names followed by ... true
Categories Box - Show Specials Link true
Categories Box - Show Products New Link true
Shopping Cart Box Status 1
Categories Box - Show Featured Products Link true
Categories Box - Show Products All Link true
Column Left Status - Global 1
Column Right Status - Global 1 Column Width - Left 150px
Column Width - Right 150px
Categories Separator between links Status 1
Categories Separator between the Category Name and Count ->
Categories Separator between the Category Name and Sub Categories |_ 
Categories Count Prefix  (
Categories Count Suffix )
Categories SubCategories Indent   
Categories with 0 Products Status 0 Split Categories Box True
Shopping Cart - Show Totals 1
Customer Greeting - Show on Index Page 1
Categories - Always Show on Main Page 1
Main Page - Opens with Category 0
Categories - Always Open to Show SubCategories 1
Banner Display Groups - Header Position 1

Banner Display Groups - Header Position 2

Banner Display Groups - Header Position 3

Banner Display Groups - Footer Position 1

Banner Display Groups - Footer Position 2

Banner Display Groups - Footer Position 3 Wide-Banners
Banner Display Groups - Side Box banner_box SideBox-Banners
Banner Display Groups - Side Box banner_box2 SideBox-Banners Banner Display Group - Side Box banner_box_all BannersAll
Footer - Show IP Address status 1
Product Discount Quantities - Add how many blank discounts? 5
Product Discount Quantities - Display how many per row? 5
Categories/Products Display Sort Order 0
Option Names and Values Global Add, Copy and Delete Features Status 1
Categories-Tabs Menu ON/OFF 1
Site Map - include My Account Links? No Skip 1-prod Categories True
Use split-login page False
CSS Buttons No




3 Feb 2007, 7:53 PM
#8
louis avatar

louis

Zen Follower

Join Date:
Jul 2006
Location:
Johannesburg
Posts:
408
Plugin Contributions:
0

Re: Show subcategories on main page?

Try adding more products. Single product category goes straight to product.

3 Feb 2007, 7:57 PM
#9
silverbitz avatar

silverbitz

New Zenner

Join Date:
Feb 2007
Posts:
22
Plugin Contributions:
0

Re: Show subcategories on main page?

I did.. still sub categories won't show :(

3 Feb 2007, 7:59 PM
#10
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Show subcategories on main page?

silverbitz:

Sure: http://www.menfusion.com/zencart/

LOL! Look at your source.... the categories are there... but you've put this in your css:

#logo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
float: left;
display:none;
}
Get rid of that display:none;

3 Feb 2007, 10:01 PM
#11
silverbitz avatar

silverbitz

New Zenner

Join Date:
Feb 2007
Posts:
22
Plugin Contributions:
0

Re: Show subcategories on main page?

Lol.. I knew I did something stupid.. I wanted it not to show the Logo in the header.. :)

THANKS!

7 Apr 2010, 6:29 PM
#12
darnaez avatar

darnaez

Zen Follower

Join Date:
Jun 2009
Location:
Miami, Fl
Posts:
138
Plugin Contributions:
0

Re: Show subcategories on main page?

I have the same problem but in my CSS there are not Display: None. What is wrong ?? I will continue searching in the web.

This is my link: http://ohmyicons.com/index.php?main_page=index&cPath=16

7 Apr 2010, 8:39 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: Show subcategories on main page?

Using the Tools ... Developers Tool Kit ...

in the bottom input box enter:
Display grid of available sub-categories

Select CATALOG ... click SEARCH ...

Check the file(s) that come up and see if the code between:
the BOF: and EOF: is removed or commented out ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

7 Apr 2010, 8:46 PM
#14
darnaez avatar

darnaez

Zen Follower

Join Date:
Jun 2009
Location:
Miami, Fl
Posts:
138
Plugin Contributions:
0

Re: Show subcategories on main page?

The result was two files. One of the is the current purchased templates.
/includes/templates/premium2a/templates/tpl_index_categories.php

Line #64 : <!-- BOF: Display grid of available sub-categories, if any -->

Line #66 : <!-- EOF: Display grid of available sub-categories, if any -->

What I need to put in the middle?

Thanks for your help!!

7 Apr 2010, 8:48 PM
#15
ajeh avatar

ajeh

Oba-san

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

Re: Show subcategories on main page?

Open the file:
/includes/templates/premium2a/templates/tpl_index_categories.php

with a good text editor and look what is in between the two lines ... is it commented out?

The comments would look like two forward slashes:
//

If you see the two slashes ... what happens if you remove the two slashes ... does it start to work?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

7 Apr 2010, 9:00 PM
#16
darnaez avatar

darnaez

Zen Follower

Join Date:
Jun 2009
Location:
Miami, Fl
Posts:
138
Plugin Contributions:
0

Re: Show subcategories on main page?

Thanks a lot!!! I did this.. The new template had no code in the middle, just>

<!-- BOF: Display grid of available sub-categories, if any --> <!-- EOF: Display grid of available sub-categories, if any -->

I saw the second file from the search result that was:
/includes/templates/template_default/templates/tpl_index_categories.php

I selected the lines in the middle and paste in the template code. So now look like this:

<!-- BOF: Display grid of available sub-categories, if any --> <?php if (PRODUCT_LIST_CATEGORY_ROW_STATUS == 0) { // do nothing } else { // display subcategories /** * require the code to display the sub-categories-grid, if any exist */ require($template->get_template_dir('tpl_modules_category_row.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_row.php'); } ?> <!-- EOF: Display grid of available sub-categories, if any -->

It works? Now.. I was thinking that I need to add the files "tpl_modules_category_row.php" ... but is working anyway!

Thanks for your support buddy!

7 Apr 2010, 9:06 PM
#17
ajeh avatar

ajeh

Oba-san

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

Re: Show subcategories on main page?

Thanks for the update that the code was removed from your template and putting the code into it was able to resolve the problems ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

8 Apr 2010, 12:35 AM
#18
darnaez avatar

darnaez

Zen Follower

Join Date:
Jun 2009
Location:
Miami, Fl
Posts:
138
Plugin Contributions:
0

Re: Show subcategories on main page?

Ok.. now a new problem. It seems the file added "tpl_modules_category_row.php" is not well configured or I don't know... but the thing is the wider than the template limits. Look.

LINK

Do you have any idea where I can fix it?

8 Apr 2010, 1:06 AM
#19
ajeh avatar

ajeh

Oba-san

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

Re: Show subcategories on main page?

Perhaps one of the designer types can help you out ... not my forte ... :unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

8 Apr 2010, 1:09 AM
#20
darnaez avatar

darnaez

Zen Follower

Join Date:
Jun 2009
Location:
Miami, Fl
Posts:
138
Plugin Contributions:
0

Re: Show subcategories on main page?

Actually the problem is only in one subcategory... Wallpapers/ 1 Monitor.

THe other categories and sub look fine. I can't understand. I already reset the column boxes.. but nothing.