Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

STS "click to enlarge images"


kelly34

Recommended Posts

Posted

Hi,

 

I have installed STS over a new copy of MS2.2 and for some reason when I click to enlarge images no popup image displays. Can anyone help me with this or have any ideas what the problem would be?

 

Thanks for your help

 

Kelly

Posted

Look in the contributions section. There is a file you must change. The popup .php file has a mistake in it where it defines the window to link to the author's webpage, you must change it to yours. :thumbsup:

 

 

 

 

Hi,

 

I have installed STS over a new copy of MS2.2 and for some reason when I click to enlarge images no popup image displays. Can anyone help me with this or have any ideas what the problem would be?

 

Thanks for your help

 

Kelly

Posted

Hi,

 

Thanks for your help but I have tried all the bug fixes in the contribs section and nothing works. I have now installed STS Plus and I have the same problem. I have no idea what I am doing wrong.

Posted

If I set $display_normal_output = 1; the image popups work fine. However I see the STS version and the normal layout of osc directly under that so I get double sites coming up. Does anyone know how to fix this?

Posted

Finally worked it out.

 

Add the following to STS version 3.0

 

STEP 1

open catalog/includes/sts_product_info.php

Change the file so it looks like this:
$template['productsid'] = $product_info['products_id']; // Just for consistende with osC names
$template['product_popup_url'] = FILENAME_POPUP_IMAGE . "?pID=" . $product_info['products_id'];

Here I have just added one line which returns the url required for the products popup.

STEP2

open catalog/includes/sts_templates/product_info.php.html

Add the following between the <head> </head> tags:

<script language="javascript" type="text/javascript">
<!--
function popupWindow(url)
{
newwindow=window.open(url,'name','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');
if (window.focus) {newwindow.focus()}
return false;
}

// -->
</script>


STEP3
Add these lines further down in the same file where you want the popups to be:

<a href="$product_popup_url" onClick="return popupWindow('$product_popup_url')">$imagesmall</a>
<a href="$product_popup_url" onClick="return popupWindow('$product_popup_url')">Click to Enlarge</a>

  • 2 months later...
Posted

i tried that and it doesn't open up a new window. it just resizes the current one, displaying the image.

 

does anyone know where the contribution is? i can't seem to find it.

  • 1 month later...
  • 9 months later...

Archived

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

×
×
  • Create New...