Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Click to Enlarge on product info page


zia

Recommended Posts

When I click on the link Click to Enlarge in the product information pages, only a small empty window is accessed. What do I do to make an enlarged copy of the product graphic appear in a larger window. The empty window that appears is the same size as the small graphic on the product page.

Link to comment
Share on other sites

Here is the Javascript from the head:

 

<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>

and here is the Javascript from the area that activates it:

 

<table border="0" cellspacing="0" cellpadding="2" align="right">

<tr>

<td align="center" class="smallText">

<script language="javascript"><!--

document.write('<a href="java script:popupWindow(\'http://mail.bankersonline.com/catalog/popup_image.php?pID=34\')"><img src="images/wheremoneyis.jpg" border="0" alt="Where the Money Is" title=" Where the Money Is " width="100" height="90" hspace="5" vspace="5"><br>Click to enlarge</a>');

//--></script>

<noscript>

<a href="http://mail.bankersonline.com/catalog/images/wheremoneyis.jpg" target="_blank"><img src="images/wheremoneyis.jpg" border="0" alt="Where the Money Is" title=" Where the Money Is " width="100" height="90" hspace="5" vspace="5"><br>Click to enlarge</a></noscript>

</td>

</tr>

 

</table>

Link to comment
Share on other sites

Your catalog/popup_image.php seems to not be creating the img tag, but does create a href with some javascript in it.

 

Looks like a contribution has also modified it. (meta tags etc.).....MS2 MAX.....

 

It's a small file, 39 lines can you post it so we can see what it has in it.

 

Tom

Link to comment
Share on other sites

Here is the catalog/popup_imagae.php

<?php

/*

$Id: popup_image.php,v 1.18 2003/06/05 23:26:23 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

$navigation->remove_current_page();

 

$products_query = tep_db_query("select pd.products_name, p.products_image from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "' and pd.language_id = '" . (int)$languages_id . "'");

$products = tep_db_fetch_array($products_query);

 

$content = CONTENT_POPUP_IMAGE;

$javascript = $content . '.js';

$body_attributes = ' onload="resize();"';

 

require(DIR_WS_TEMPLATES . TEMPLATENAME_POPUP);

 

require('includes/application_bottom.php');

?>

Link to comment
Share on other sites

Hi Zia,

 

Between MS2 MAX and what appears to a "Template System" I can't help out here.

This looks nothing like the standard MS2 distribution.

 

The "require(DIR_WS_TEMPLATES . TEMPLATENAME_POPUP);", will need examination

and trouble shooting to get this going.

 

If you what distribution of osc your running that would probably help someone

out in debugging the templates. It's just too difficult for me to solve this

with blinder's on. Access to your code and more time will be required

by someone, unless they see it right away.

 

Good Luck

Tom

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...