Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Images will not enlarge


jgarite

Recommended Posts

When viewing a product, I can not enlarge the image. When viewing in IE, I notice that there is a page error on Line 1, Char 1, Error: Object Unexpected, Code: 0, URL: the url of the product

 

I recently did alot of work to it fixing some major bugs (new images were not showing at all, sub categoried categories...meaning categories with a sub-category, woudl give a fatal error due to a featured product contribution which i turned off). Anyway, I don't see where the problem could be. Perhaps anyone can make some suggestions on files to check. I am using the STS template system and I am pretty sure that the only javascript is that of the enlarge image.

 

Also, I know the images are there in the full size becuase wehn I right click the link, copy the url (without the javascript pop up tag), it opens up to the full sized image.

 

My thoguths on this could be a conflict with another javascript, but I don't beleive I have anything else running javascript...immediate help would be grateful, but any help would be just as well. Thank you.

Link to comment
Share on other sites

from the html I checked seems you are missing the jscript definition. So check your catalog\product_info.php and make sure the popupWindow function is defined.

Link to comment
Share on other sites

is that in the root folder of the catalog or the sts template...my files have gotten so mixed up and mashed up that they dont make sense to me anymore. is there a javascript to placein the header for a replacement or does it need to be an exact script

Link to comment
Share on other sites

if you are using the sts module check the sts support thread. I remember seeing some questions about the jscript functions.

 

But for the default osc the jscript function is defined with the same file ie: product_info.php where your oscommerce root is.

Link to comment
Share on other sites

if you are using the sts module check the sts support thread. I remember seeing some questions about the jscript functions.

 

But for the default osc the jscript function is defined with the same file ie: product_info.php where your oscommerce root is.

 

thanks, i solved the issue, i didnt have the following in the head tag. thanks for your help:

 

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

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...