Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Would Like NO image in product info page, but do want image in list of items. Suggestions?


Rachael w.

Recommended Posts

I use html to enter my descriptions so I have removed the thumbnail in the product description by making the display product image '0' and image required 'false' through the admin panel.

 

I am very happy with the results for the product description page. However, when viewing the list of items available (click a category -or subcategory) I am only seeing a long list of items with no 'gallery' view.

 

Is it possible to have a little thumbnail beside the title in the item list without also having it show up on the item description page?

Link to comment
Share on other sites

It is. Take a look in the contributions for 3 Images or Ultra Images. Either will allow you to set a separate image for the small, medium and large images. Ultra Images will allow you to specify as many more as you need.

 

Oh, another less intrusive way would be to just remove the image from the product_info.php page entirely.

 

Take a look for this hunk of code around line 102

 

<?php
if (tep_not_null($product_info['products_image'])) {
?>
	  <table border="0" cellspacing="0" cellpadding="2" align="right">
		<tr>
		  <td align="center" class="smallText">
<script language="javascript"><!--
document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
//--></script>
<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>
		  </td>
		</tr>
	  </table>
<?php
}
?>

 

HTH,

Iggy

Everything's funny but nothing's a joke...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...