Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Product Image and Attributes Not Showing

Product Image and Attributes Not Showing

Locked

Views: 1,555

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
23 Jul 2009, 7:48 PM
#1
kelcey avatar

kelcey

New Zenner

Join Date:
Jun 2009
Posts:
10
Plugin Contributions:
0

Product Image and Attributes Not Showing

Good afternoon,
I am having problems with my website: https://www.bowgraceous.com/zencart

The product image shows on the product list page, but when you select a product the next page does not show the image or list out the attributes. I am not sure if I did something wrong with the admin site or with my CSS. When I switch over to the Classic template, both the picture and attributes appear.

On another note, how do I remove the option of previewing a larger image? This option shows up when I switch over to the Classic template.

I appreciate any help on this. I have spent a lot of time searching for the problem but cannot seem to find it! Very frustrating.

Thanks again

23 Jul 2009, 8:00 PM
#2
bunyip avatar

bunyip

Totally Zenned

Join Date:
Sep 2004
Location:
Western Massachusetts
Posts:
2,361
Plugin Contributions:
1

Re: Product Image and Attributes Not Showing

If the problem disappears when you switch back to the Classic template, then the problem is almost certainly in one of your custom template files.
Switch back to your custom template - then remove/rename each of these files (if they exist) one by one, checking to see if the problem is still there after each removal:
includes/templates/your_template/templates/tpl_product_info_display_default.php
includes/templates/your_template/templates/tpl_modules_main_product_image.php
includes/templates/your_template/templates/tpl_modules_attributes.php
includes/modules/your_template/main_product_image.php
includes/modules/your_template/attributes.php

If the problem disappears while you do this, you know the error is in the file you just deleted/renamed on the server

23 Jul 2009, 8:10 PM
#3
kelcey avatar

kelcey

New Zenner

Join Date:
Jun 2009
Posts:
10
Plugin Contributions:
0

Re: Product Image and Attributes Not Showing

Thank you bunyip. I checked and do not have any of these files for my template.
Should I open these from the classic template, save and make changes into my custom template?
I have switched back to the custom template online so you can see what I am talking about.

23 Jul 2009, 8:23 PM
#4
bunyip avatar

bunyip

Totally Zenned

Join Date:
Sep 2004
Location:
Western Massachusetts
Posts:
2,361
Plugin Contributions:
1

Re: Product Image and Attributes Not Showing

Your problem is in the stylesheet:

.back {
	display: none;
	float: left;
	}

delete the line
display: none
and everything should work just fine....

23 Jul 2009, 8:26 PM
#5
kelcey avatar

kelcey

New Zenner

Join Date:
Jun 2009
Posts:
10
Plugin Contributions:
0

Re: Product Image and Attributes Not Showing

Bless your heart!! That worked! Thanks so much for your help with this!

Not to press my luck, but do you know how to take away the option for the larger image?

You rock!
Thanks again

23 Jul 2009, 8:41 PM
#6
bunyip avatar

bunyip

Totally Zenned

Join Date:
Sep 2004
Location:
Western Massachusetts
Posts:
2,361
Plugin Contributions:
1

Re: Product Image and Attributes Not Showing

Copy includes/templates/template_default/templates/tpl_modules_main_product_image.php into your includes/templates/your_template/templates folder.

then edit that override copy:
replace this entire section of code:

<div id="productMainImage" class="centeredContent back">
<script language="javascript" type="text/javascript"><!--
document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>'; ?>');
//--></script>
<noscript>
<?php
  echo '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '" target="_blank">' . zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>';
?>
</noscript>
</div>

with this:

<div id="productMainImage" class="centeredContent back">
<?php
  echo zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT);
?>
</div>
23 Jul 2009, 9:08 PM
#7
kelcey avatar

kelcey

New Zenner

Join Date:
Jun 2009
Posts:
10
Plugin Contributions:
0

Re: Product Image and Attributes Not Showing

Bunyip, I tried that code, but it still shows up. Please take a look and see if I entered it wrong, but I simply copied and pasted your code.
Thank you!

23 Jul 2009, 9:22 PM
#8
bunyip avatar

bunyip

Totally Zenned

Join Date:
Sep 2004
Location:
Western Massachusetts
Posts:
2,361
Plugin Contributions:
1

Re: Product Image and Attributes Not Showing

hmmm... the page I see no longer has any trace of the larger image link or the javascript for the popup larger image window, so the new code seems to me to be functioning perfectly. Perhaps you need to clear your cache, close your browser and look again.

29 Jul 2009, 7:00 PM
#9
kelcey avatar

kelcey

New Zenner

Join Date:
Jun 2009
Posts:
10
Plugin Contributions:
0

Re: Product Image and Attributes Not Showing

Here is a quick way to make sure no additional images appear: (I found it in another thread)

turn off all extra-image functionality via Admin->Catalog->Product Types->Product General->Edit Layout->Show Additional Images = 0