Forums / Templates, Stylesheets, Page Layout / Category Images Not Showing Up

Category Images Not Showing Up

Views: 3,220

Results 1 to 13 of 13
11 Nov 2011, 3:20 AM
#1
atomiksteve avatar

atomiksteve

New Zenner

Join Date:
Jul 2008
Posts:
43
Plugin Contributions:
0

Category Images Not Showing Up

Hello all-

I have uploaded category images through the admin tool for our store. I can see the images fine in the admin tool, but they do not show up on the category pages on the site.

I can see that the div is there in the source code, but it is showing as this:

<div class="catgeoryimg"> </div>

This is what is on my tpl_index_categories.php page (if I am looking in the right place):

<?php if (PRODUCT_LIST_CATEGORIES_IMAGE_STATUS_TOP == 'true') { // categories_image if ($categories_image = zen_get_categories_image($current_category_id)) { ?> <div id="categoryImgListing" class="categoryImg"><?php echo zen_image(DIR_WS_IMAGES . $categories_image, '', SUBCATEGORY_IMAGE_TOP_WIDTH, SUBCATEGORY_IMAGE_TOP_HEIGHT); ?></div> <?php } } // categories_image ?>

Any ideas are much appreciated! I am sure I am probably missing something obvious...:(

11 Nov 2011, 7:57 AM
#2
usernamenone avatar

usernamenone

Totally Zenned

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

Re: Category Images Not Showing Up

When you upload your images to your server you need only add the path to the box that says

Or, select an existing image file from server, filename: images/yourimage.gif

There is no code to change on any of you files.


Play with it long enough and you will break it.
11 Nov 2011, 7:21 PM
#3
rescoccc avatar

rescoccc

Totally Zenned

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

Re: Category Images Not Showing Up

What is your setting for admin/configuration/product listing/include product listing top categories image? Should be set to true.

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

15 Nov 2011, 1:53 AM
#4
atomiksteve avatar

atomiksteve

New Zenner

Join Date:
Jul 2008
Posts:
43
Plugin Contributions:
0

Re: Category Images Not Showing Up

RescoCCC:

What is your setting for admin/configuration/product listing/include product listing top categories image? Should be set to true.

@RescoCCC
Settings are:
Include Product Listing Sub Categories Image true
Include Product Listing Top Categories Image true

Also @usernamenone, I don't think it's a path problem, as I am able to see the image in the admin tool. However, when I examine the source code of the page, it is not showing any image or src:
<div class="catgeoryimg"> </div>

Any other suggestions? I am really at a loss here...:(

15 Nov 2011, 2:05 AM
#5
rescoccc avatar

rescoccc

Totally Zenned

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

Re: Category Images Not Showing Up

A link to your site would make it much easier to figure out.

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

15 Nov 2011, 2:17 AM
#6
atomiksteve avatar

atomiksteve

New Zenner

Join Date:
Jul 2008
Posts:
43
Plugin Contributions:
0

Re: Category Images Not Showing Up

PM sent, thanks!

15 Nov 2011, 2:55 AM
#7
rescoccc avatar

rescoccc

Totally Zenned

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

Re: Category Images Not Showing Up

Responded.

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

15 Nov 2011, 5:42 AM
#8
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,684
Plugin Contributions:
0

Re: Category Images Not Showing Up

... and the cure was?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

15 Nov 2011, 2:39 PM
#9
atomiksteve avatar

atomiksteve

New Zenner

Join Date:
Jul 2008
Posts:
43
Plugin Contributions:
0

Re: Category Images Not Showing Up

Kim:

... and the cure was?

None yet... the source code of the page is not showing any image inside the "catgeoryimg" div, which implies that it is not an image path problem, but maybe something wrong with the template file...?

<div class="catgeoryimg">** **</div>
15 Nov 2011, 7:07 PM
#10
usernamenone avatar

usernamenone

Totally Zenned

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

Re: Category Images Not Showing Up

the source page of what page? and what does you style sheet say about catgeoryimg and what is the link to your site?


Play with it long enough and you will break it.
15 Nov 2011, 8:45 PM
#11
atomiksteve avatar

atomiksteve

New Zenner

Join Date:
Jul 2008
Posts:
43
Plugin Contributions:
0

Re: Category Images Not Showing Up

usernamenone:

the source page of what page? and what does you style sheet say about catgeoryimg and what is the link to your site?

The source code I was referring to was for the category page. I will send you a PM in a moment with the link. It is not ready for public view yet, so I'd rather not post it here.

Also, thanks to everyone who has chimed in so far... hoping to reach a solution soon!

16 Nov 2011, 1:22 AM
#12
usernamenone avatar

usernamenone

Totally Zenned

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

Re: Category Images Not Showing Up

First log into admin and Configuration and then product listing

Make sure these are set to true (they are at the bottom)

Include Product Listing Sub Categories Image true
Include Product Listing Top Categories Image true

Then open your

includes/templates/the name of your template/templates/tpl_index_categories.php

locate this code

<h1 id="indexCategoriesHeading"><?php echo $breadcrumb->last(); ?></h1> <?php } ?>

and just below that make sure this code is there just like this

<?php if (PRODUCT_LIST_CATEGORIES_IMAGE_STATUS_TOP == 'true') { // categories_image if ($categories_image = zen_get_categories_image($current_category_id)) { ?>

<br /><br />

<div id="categoryImgListing" class="categoryImg"><?php echo zen_image(DIR_WS_IMAGES . $categories_image, '', SUBCATEGORY_IMAGE_TOP_WIDTH, SUBCATEGORY_IMAGE_TOP_HEIGHT); ?></div> <?php } } // categories_image ?>

Play with it long enough and you will break it.
16 Nov 2011, 3:27 AM
#13
atomiksteve avatar

atomiksteve

New Zenner

Join Date:
Jul 2008
Posts:
43
Plugin Contributions:
0

Re: Category Images Not Showing Up

Ok, GOT IT!

When I pasted in usernamenone's script and reloaded the page, I noticed that I had the "categoryImgListing" div in there twice, but one was in my category description for some reason, and the other was hidden via CSS (my fault!). So I deleted the extra one, adjusted the CSS and there it was!

Thanks to usernamenone and RescoCCC for your help!