Forums / Templates, Stylesheets, Page Layout / Blank category main page

Blank category main page

Views: 632

Results 1 to 4 of 4
20 Jan 2012, 12:10 AM
#1
ivanna avatar

ivanna

Zen Follower

Join Date:
Jan 2011
Location:
Texas, USA
Posts:
171
Plugin Contributions:
0

Blank category main page

I have barebones template and v1.3.9h

I have five categories with some sub-categories under each category.
On my Sidebar navigation, when I select a category, the sub-categories are shown in a drop down menu but the main page is empty.
When I select a sub-category, everything is correct. The main page shows the items.

I would like to show some images/links on each category page relative to the category/sub-category. Is there a way to do this?

I have a static front page.

I have checked with this page https://www.zen-cart.com/tutorials/index.php?article=82
I have checked "myDebug-xxxxxx.log". There is one error: /includes/functions/functions_general.php on line 1329
Which is this function:

// replacement for fmod to manage values < 1
function fmod_round($x, $y) {
$x = strval($x);
$y = strval($y);
$zc_round = ($x1000)/($y1000);
$zc_round_ceil = (int)($zc_round);
$multiplier = $zc_round_ceil * $y;
$results = abs(round($x - $multiplier, 6));
return $results;
}

line 1329 is red
I do not know what this code is and if it pertain to my problem.

thank you
Ivanna

20 Jan 2012, 1:12 AM
#2
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Blank category main page

Link to the site?

The best way to learn is to try stuff. But, back it up first.

20 Jan 2012, 3:32 AM
#3
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: Blank category main page

Barebones template does not have a dropdown menu. it is just a css change.

What other addons do you have installed that could cause this?


Play with it long enough and you will break it.
20 Jan 2012, 9:25 PM
#4
ivanna avatar

ivanna

Zen Follower

Join Date:
Jan 2011
Location:
Texas, USA
Posts:
171
Plugin Contributions:
0

Re: Blank category main page

thank you for your replies.

I have found what I must do.
I must insert text and/or a single image from the edit mode of the top level category. I did not see this one :blush:

Now it works, but I would like to format it better. At this moment, if I add text then select an image, the image is on top of the text. I assume this is because of the way PHP works. And also I can only insert one image.

Is it permissable to add an image directly into the html? or perhaps a rotation of images as on the front page? I do not know if it will affect PHP.

thank you
Ivanna