Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Cannot get categories to show on Main Page???

Cannot get categories to show on Main Page???

Locked

Views: 3,368

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
7 Nov 2009, 5:47 AM
#1
shaneburton avatar

shaneburton

New Zenner

Join Date:
May 2009
Posts:
14
Plugin Contributions:
0

Cannot get categories to show on Main Page???

Zen Cart 1.3.8 - No Upgrades
ImageHandler and Column Grid Installed

Website: http://www.winchestergems.com

Issue 1:

I have done some CSS mods, but no code changes to the php files other than text here and there and whatever the addons have changed. I have an image setup for my categories and have turned on Categories - Always show on main page, but it isn't working. I am not sure how to fix it either as I am not a web developer. I did go into the Define Pages Editor and did some HTML code in the main page..could this be why? Also I have a couple of main categories and then sub categories. Can I just show the subcategories on the main page?

Issue 2:
How do I turn off the Category Icon on the product listing and product info pages? I can't seem to find the setting for it.

I appreciate any assistance you can offer. :frusty:

7 Nov 2009, 6:00 AM
#2
shaneburton avatar

shaneburton

New Zenner

Join Date:
May 2009
Posts:
14
Plugin Contributions:
0

Re: Cannot get categories to show on Main Page???

Thanks prettywish, but where would I put the php code at? Sorry I am really not a web developer.

7 Nov 2009, 7:12 AM
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: Cannot get categories to show on Main Page???

I would not mess with any PHP code without looking at the CSS_read_me.txt file in the css folder of your site AND doing a little more research on all the admin switches that would need to be flipped.

7 Nov 2009, 2:41 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Cannot get categories to show on Main Page???

@shaneburton

We can't see the php code that's on your server, but an initial look at the results on your site suggests to me that the normal content on the index categories page has been replaced by a table with your content in. Can you tell us more about how that table was inserted, as it may give us a clue as what's causing your problem.

For the product_info page the category image is on by default. So two things to check ...

Firstly that this setting is not zero

Admin > Configuration > Product Info > Previous Next - Navigation Includes Category Position

and then that when you look at a particular category page in the Admin, do you see your image towards the bottom. If not, your Zen Cart doesn't know its there and you would need to re-upload or edit the images filepath through this screen.

Product Listings are more complex as most don't relate to a specific category and will have products from multiple categories. Are you refering the category index pages?

Oh, and ignore prettywish's suggestion. It's not relevant to your issues.

7 Nov 2009, 5:56 PM
#5
shaneburton avatar

shaneburton

New Zenner

Join Date:
May 2009
Posts:
14
Plugin Contributions:
0

Re: Cannot get categories to show on Main Page???

Kuroi thanks for the help. Still not quite sure why nothing seems to be working. To answer your question...

  1. The table was created within the define pages editor. I selected the main page and just inserted some html code to create a table, tr, and td. Nothing major there.

  2. As for the category image, please see the attached jpg which shows what I am referring to. Also here is the code from firebug...perhaps that will help. I want to get rid of <div id="categoryImgListing" class="categoryImg"> in the productlistingheading. Does that make sense?

I also tried the settings that you referred to and it didn't seem to make any changes. Is there a chance that somehow one of the core php files got overwritten and that is why none of these settings seem to work?

<tbody> <tr> <td id="navColumnOne" class="columnLeft" style="width: 220px;"> </td> <td valign="top"> <div id="navBreadCrumb"> </div> <div id="indexProductList" class="centerColumn"> <h1 id="productListHeading" class="productListHeading">Earrings</h1> <div id="categoryImgListing" class="categoryImg"> </div> <form method="get" action="http://www.winchestergems.com/store/index.php?main_page=index" name="filter"> </form> <br class="clearBoth"/> <div id="productListing"> </div> </div> </td> </tr> </tbody>
8 Nov 2009, 5:29 PM
#6
shaneburton avatar

shaneburton

New Zenner

Join Date:
May 2009
Posts:
14
Plugin Contributions:
0

Re: Cannot get categories to show on Main Page???

I did miss one add-on that is installed on my site, BetterCategories. Would this cause the categories not to show up on the main page?

8 Nov 2009, 7:14 PM
#7
shaneburton avatar

shaneburton

New Zenner

Join Date:
May 2009
Posts:
14
Plugin Contributions:
0

Re: Cannot get categories to show on Main Page???

Ok perhaps I am misunderstanding what the "Always show categories on Main page" means. I just installed zen fresh with no add-ons or anything, created some categories and provided images for those categories and then enabled this setting. There are NO categories showing on the main page. My assumption was that this setting would show the category icons and the name of the category in some sort of grid pattern. Am I mistaken on this?

Thanks for the help.

9 Nov 2009, 12:27 AM
#8
shaneburton avatar

shaneburton

New Zenner

Join Date:
May 2009
Posts:
14
Plugin Contributions:
0

Re: Cannot get categories to show on Main Page???

GOT IT! In order to get this to work, you must also have the following set to 1:

Admin -> Configuration -> Product Listing -> Show SubCategories on Main Page while navigating

10 Jan 2010, 12:27 AM
#9
rivercity avatar

rivercity

Zen Follower

Join Date:
Jul 2009
Location:
Arkansas
Posts:
178
Plugin Contributions:
0

Re: Cannot get categories to show on Main Page???

I hate to ask this as I know it's been asked a hundred times and I've found most of those posts but I still can't get something right. I haven't worked with ZenCart in quite awhile and I know I've corrected this before.

I can't get the top categories to show on the main page on a site I'm working on. I've got the Always show categories on Main page set to 1, seems like there was a couple of other things I needed to do to fix this last time but I can't remember for sure, that's what old age does to you I guess.

Anyway, if anyone knows what else I can do to get these to show up if the normal process doesn't work I'd sure appreciate some help.

Thanks

13 Mar 2010, 8:43 PM
#10
derek53 avatar

derek53

Zen Follower

Join Date:
Jun 2009
Location:
uk
Posts:
111
Plugin Contributions:
0

Re: Cannot get categories to show on Main Page???

hi
i had this problem, but with your help the categories are showing on the main page. However i want to change how they are arranged - instead of vertical to be horizontal like the rest of the icons on the main page. i would like to make the images on the centre of the main page bigger, but cannot see where i can do this. Can anyone help ? The site is https://www.tarotexperience.co.uk

Thanks for reading this

14 Mar 2010, 11:50 AM
#11
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Cannot get categories to show on Main Page???

@derek53

Find the styling rule in your stylesheet that starts > .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .additionalImages, .centerBoxContentsSpecials, .centerBoxContentsAlsoPurch, .centerBoxContentsFeatured, .centerBoxContentsNewand this to it> float:left;

14 Mar 2010, 12:08 PM
#12
derek53 avatar

derek53

Zen Follower

Join Date:
Jun 2009
Location:
uk
Posts:
111
Plugin Contributions:
0

Re: Cannot get categories to show on Main Page???

kuroi:

@derek53

Find the styling rule in your stylesheet that starts and this to it

Just did it and want to say a MASSIVE THANK YOU. I have been hunting for the solution all weekend and you have now sorted it for me. I now need to know how i can make some of the images bigger and cannoit see in the admin/category/images how to do it - Any suggestions ?

Thanks again :-)