I have done the following:
To begin, you must define a function in the HTML headers of each page of the store that will control the pop-up windows. To do this, open up Act_Primary.html ('Primary' button in the 'Main' tab of Template Manager) and insert the following code somewhere within the <HEAD></HEAD> tags:
<script language="JavaScript">
<!--// beginning of Javascript script
function popUp(url) {
window.open(url, 'newwindow',
'width=620,height=510,menubar=off,directories=off,toolbar=off');
}
// end of script -->
</script>
Now close and save this template and go into 'Advanced | Define Custom Properties'. Create a new custom property called 'URL'.
Now open up 'Act_ProductLine.html' (or whatever Product Layout template(s) you are using) and replace
NETQUOTEVAR:PRODUCTIMAGE
with
<A HREF="javascriptopUp('CUSTOMVAR:URL')">NETQUOTEVAR:PRODUCTIMAGE</A>
And on my test server feeling.intothenet.co.uk when you click on a product image the pop up window comes up with the picture in it, but on the live server it pops up a window looking for the file in the cgi bin. I presume that this is a problem with one of the urls in the Network Setup under advanced, anyone know what is causing this?
To begin, you must define a function in the HTML headers of each page of the store that will control the pop-up windows. To do this, open up Act_Primary.html ('Primary' button in the 'Main' tab of Template Manager) and insert the following code somewhere within the <HEAD></HEAD> tags:
<script language="JavaScript">
<!--// beginning of Javascript script
function popUp(url) {
window.open(url, 'newwindow',
'width=620,height=510,menubar=off,directories=off,toolbar=off');
}
// end of script -->
</script>
Now close and save this template and go into 'Advanced | Define Custom Properties'. Create a new custom property called 'URL'.
Now open up 'Act_ProductLine.html' (or whatever Product Layout template(s) you are using) and replace
NETQUOTEVAR:PRODUCTIMAGE
with
<A HREF="javascriptopUp('CUSTOMVAR:URL')">NETQUOTEVAR:PRODUCTIMAGE</A>
And on my test server feeling.intothenet.co.uk when you click on a product image the pop up window comes up with the picture in it, but on the live server it pops up a window looking for the file in the cgi bin. I presume that this is a problem with one of the urls in the Network Setup under advanced, anyone know what is causing this?
Comment