Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

simple question


heaven_shall_burn

Recommended Posts

Posted

dear community,

 

unfortunately i'm a newbie with oscommerce, so i think i have a very simple problem which i can't solve..

 

i don't want pictures for the categories in my shop. but if i don't upload pictures the shop still displays that there SHOULD be pictures.. where can i remove the pics in the php-code? i also don't need the three pics in the upper right corner.. thanks for every hint! :thumbsup:

Posted

For the images, you could remove this code in product_info.php

<?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="javascript: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
}
?>

Although if the entry for the image in the products listing is left empty, it should be skipped anyway. As for the three images, that is in includes/header.php.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

no you missunderstood me..

 

the pictures for the products don't have to be removed! :D

 

I mean the pictures (or call it "icons") which stand before the categories. For example: If i have a computer shop I click on one category for example Processors. Then there is in front of the word "Processors" a small picture of a CPU. And those pictures I want remove. ;)

Posted

In admin, under configuration, then images I believe... set Require Images false. Then if there is no image you will not see the red X.

If you have images defined in admin but you do not want them any more try http://www.oscommerce.com/community/contributions,1845 and http://www.oscommerce.com/community/contributions,1846

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Archived

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

×
×
  • Create New...