Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Customization from the Admin / I want to display all categories on home page

I want to display all categories on home page

Locked

Started by rayinblair on 11 Jun 2010, 11:14 AM · Views: 1,456

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
11 Jun 2010, 11:14 AM
#1
rayinblair avatar

rayinblair

New Zenner

Join Date:
Jun 2010
Posts:
1
Plugin Contributions:
0

Post #1 by rayinblair

I want to display all categories on home page . Can anybody help me out..

11 Jun 2010, 11:28 AM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #2 by schoolboy

In your Admin Panel for your shop:

ADMIN >>> CONFIGURATION >>> LAYOUT SETTINGS... Categories - Always Show on Main Page . . . . . . (set to 1)

20 years a Zencart User

23 Jun 2010, 12:08 AM
#3
wildwebwest avatar

wildwebwest

New Zenner

Join Date:
Dec 2009
Location:
Grangeville Idaho
Posts:
1
Plugin Contributions:
0

Post #3 by wildwebwest

Hey Schoolboy. My site is at https://www.johnglossa.com

My site was showing the 3 top level categories at the top of the home page. I disabled it the other day. Now I cannot get the top level categories to show again.

I did this in Admin, Layout Settings

admin > config > layout settings > Categories - Always Show on Main Page SET TO 1

Do you think by disabling it once that I screwed it up somehow?

Any help would be appreciated. I"m a web designer, so not a noob knucklehead. Used and setup zen cart many times.

thanks!

mary:blush:

20 Jul 2010, 2:33 AM
#4
flipperry avatar

flipperry

New Zenner

Join Date:
Feb 2009
Posts:
79
Plugin Contributions:
0

Post #4 by flipperry

:blink: I don't know what would make it so that your categories aren't displaying if you set the admin setting to "1" for Categories - Always Show on Main Page....
There is probably a problem with your code.

Look at this file: YOUR_STORE/includes/init_includes/init_category_path.php

Very close to the top of the file (right after the version info and such) is this batch of code:

}
$show_welcome = false;
if (isset($_GET['cPath'])) {
  $cPath = $_GET['cPath'];
} elseif (isset($_GET['products_id']) && !zen_check_url_get_terms()) {
  $cPath = zen_get_product_path($_GET['products_id']);
} else {
  if (SHOW_CATEGORIES_ALWAYS == '1' && !zen_check_url_get_terms()) {
    $show_welcome = true;
    $cPath = (defined('CATEGORIES_START_MAIN') ? CATEGORIES_START_MAIN : '');
  } else {
    $show_welcome = false;
    $cPath = '';
  }
}

This code has not been changed directly (through the code itself), but I have the "Categories - Always Show" setting in my admin set to 0 (hence the "false" settings?). Hope this helps you figure out what's wrong.

Flip Perry
S~Scents