Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Image problem


Guest

Recommended Posts

Posted

Hi,

I have a little problem with the image and i'm very new to the whole php thingy :)

How do i do to take away the click to enlarge part? I don't wan't the product image to be thumbnail and clicked to be enlarged but i wan't it to be fullsize and centered over the product description... Any ideas?

 

Thanks in advance!

Posted

Or, how do i delete the image part totally from the productinfo?

Because it might be easier to just put the image in with html...

Posted

Look for the following code in your product_info.php file

 

<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, 'sts_template=0&sts_normal=1&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>

 

You can remove it, move it, comment it out or otherwise modify it to give you what you want.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Archived

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

×
×
  • Create New...