I need to make my "more information page" pop up into a new window when the product photo is clicked. I have seen several suggestions, most of which are for pop-up image windows, which is not what I need. Currently, I just have the automated "create a more info page" checkbox checked in the product info section, and defined a specific URL for each more info page.
Robm suggested this:
[-- IF PRODUCT.DisplayMoreInformationPage --]
<!--
function popup() {
window.open( "[-- PRODUCT.MoreInfoURL --]",
"[-- PRODUCT.MoreInformationTitle --]", "status = 1, height = 400, width = 400, resizable = 1" );
}
-->
</script>
<a href="#" onClick="popup()">[-- PRODUCT.Name --]</a>
[-- END_IF --]
I put this with my "define product graphic" code, and it did not work. So I figured the script should go up with the head. I put it there, and still no go.
So I started trying to customize it for my needs. Here's my code as is, which still does not work:
-->
</style>
<script>
<!--
function popup() {
window.open( "[-- PRODUCT.MoreInfoURL --]",,"status = 1, height = 600, width = 600, resizable = 1" );
}
-->
</script>
Then here's my define product image code, with the code from Frank retro-fitted:
[-- DEFINE PRODUCT --]
<td width="485" align="left" valign="top">
<table width="450" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="216" valign="top"><img src="http://www.pogapparel.com/Website Graphic Folder/Cleardot.gif" width="216" height="15" />
<table width="216" border="0" cellspacing="0" cellpadding="0">
<tr>
<th width="216" scope="col"><span class="style1">[-- IF PRODUCT.DisplayGraphic --]
[-- IF PRODUCT.Graphic --][-- PRODUCT.Graphic --]
[-- IF PRODUCT.DisplayMoreInformationPage --]
<a href="#" onClick="popup()"></a>
[-- END_IF --]
[-- END_IF --]
[-- END_IF --]</span></th>
</tr>
<tr>
Here's the url to check:
http://pogapparel.com/shopsite_sc/cashm ... 30305.html
Any help would be most appreciated.
PS: For the heck of it, I tried putting the [-- PRODUCT.MoreInfoURL --] between the () next to popup, but that didn't work either.
Thank you.
Vernon