Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Pop up image not being displayed


greysun

Recommended Posts

When I click the link to display a larger image of my product it pops up but doesnt display the image. My images work correctly. When I look at the status bar when mousing over the link it shows it is pointing to a valid picture ID. I verified that the picture does exist in the database under the ID shown.

 

 

Here is my popup_image.php

 

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');
?>

 

Her is my popup.tpl.php

 

 

<html <?php echo HTML_PARAMS; ?>>
<head>
<?php require(DIR_WS_INCLUDES . 'meta_tags.php'); ?>

?> 
 <title><?php echo META_TAG_TITLE; ?></title>
<?php

// EOF: WebMakers.com Changed: Header Tag Controller v1.0
?>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" />
<meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>" />
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<?php if ($javascript) {require(DIR_WS_JAVASCRIPT . $javascript);} ?>
</head>
<body <?php echo $body_attributes; ?>>
<?php require(DIR_WS_CONTENT . $content . '.tpl.php'); ?>
</body>
</html>

<?php

 

 

Can anyone help me figure out what is wrong

Link to comment
Share on other sites

Here is the source code formt he window that pops up

 

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="LTR" lang="en">
<head>
<title>Ericsson 1228d : osCommerce</title>
<base href="http://www.ez-cellular.com/catalog/">
<meta name="description" content="osCommerce : Ericsson 1228d - Activate Phone,Gift Certificates,Phones,Minutes," />
<meta name="keywords" content="Activate Phone,Gift Certificates,Phones,Minutes,Ericsson 1228d" />
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<script language="javascript"><!--
var i=0;
function resize() {
 if (navigator.appName == 'Netscape') i=10;
 if (document.images[0]) {
 imgHeight = document.images[0].height+65-i;
 imgWidth = document.images[0].width+30;
 var height = screen.height;
 var width = screen.width;
 var leftpos = width / 2 - imgWidth / 2;
 var toppos = height / 2 - imgHeight / 2; 
 window.moveTo(leftpos, toppos);  
 window.resizeTo(imgWidth, imgHeight);
 }
 self.focus();
}
//--></script></head>
<body  onload="resize();">
<div align="center">
<a href="javascript:;" onclick="javascript:top.window.close();">
</a>
</div></body>
</html>

Link to comment
Share on other sites

Now something different is happening. When I mouse over the link it still shows the correct URL and Product ID but when I click the link now the popup box displays a broken link. When I look at the propertis of the broken link it points to umm examples

 

 

What the link should be

 

http://www.ez-cellular.com/catalog/images/...bs/5160-big.gif

 

What displays is

 

http://www.ez-cellular.com/catalog/images/thumbs/160-big.gif

 

 

What should display

 

http://www.ez-cellular.com/catalog/images/thumbs/startac.gif

 

What displays

 

http://www.ez-cellular.com/catalog/images/thumbs/.gif

 

 

 

Does this give anyone a clue as to what is happening?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...