Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

"Click to Enlarge" link does not work


gnuffo1

Recommended Posts

The images appear fine, the link appears there, it even changes colour like a normal link would, and the address appears on the status bar, but it just doesn't work. The text it displays in the status bar is:

 

java script:popupWindow('http://www.shopname.com/productname.html')

 

and that text also is the same if you right click on the link and go to properties.

 

The javascript section for it in product_info.php is as follows:

 

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

//--></script>

 

Is there anything wrong with this?

Link to comment
Share on other sites

you may be missing this just above your </head> tag in 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>

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

It still doesn't work. Also, I tried doing that contribution where you can have the name of the product as the title of the page, instead of a title for the whole site, and that didn't work either, and of course <title> tags are in the head tag. The main title for the site is stored in includes/languages/english.php so should I try inserting the javascript image head tag in there?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...