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..
Started by rayinblair on 11 Jun 2010, 11:14 AM · Views: 1,456
New Zenner
I want to display all categories on home page . Can anybody help me out..
Totally Zenned
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
New Zenner
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:
New Zenner
: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
Tell staff why this post should be reviewed.