Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

adding border to product image on product info page


chessman

Recommended Posts

Posted

how do I add a border to the products thumbnail image on the product info page? Im assuming I have to add some code in "catalog/product_info.php" but I am unsure of what to add and where.

 

Is it also possible (when product thumbnail image is clicked on) to force the image to popup in a non resizable window with no address bar and no status bar?

 

Thanks in advance to anyone who can help :)

Posted
how do I add a border to the products thumbnail image on the product info page? Im assuming I have to add some code in "catalog/product_info.php" but I am unsure of what to add and where.

 

Is it also possible (when product thumbnail image is clicked on) to force the image to popup in a non resizable window with no address bar and no status bar?

 

Thanks in advance to anyone who can help :)

 

in catalog/product_info.php look for

 

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']), 200, 150, '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'], 200, 150, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>

 

change the table border as 1. border=1

 

For your second part of the question look for the following on top of your page "product_info.php"

 

<script language="javascript"><!--
function popupWindow(url) {
 window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res
izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le
ft=150')
}
//--></script>

 

change according to your choice. There are many contribs for popup.... search for something that meets ur requirements

Archived

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

×
×
  • Create New...