Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

"Click to Enlarge" Javascript Error


Guest

Recommended Posts

I'm at the proverbial brickwall here.

 

I can't seem to get the "Click to Enlarge" link to work when viewing a product, with the error saying:

 

Error: popupWindow is not defined

Source File: java script:popupWindow('http://limeandsoda.com.au/osCommerce/popup_image.php?pID=51&osCsid=448a9bb48ee9542f14b07765d35e1543')

Line: 1

 

I have tried the STS contribution fix by updating product_info.php.html and sts_product_info.php, and I have read through all the forum entries that I could find and still can't fix it.

 

I haven't gone live with my site yet as I'm still trying out all the bits and pieces of osCommerce, but the link to it starts at http://www.limeandsoda.com.au/osCommerce/index.php

 

Cheers.

 

Jeff.

Link to comment
Share on other sites

well I cannot see the popupwindow function in the document I only see the call. And you have errors with the js inclusion it shows this

<script lang="javascript" src="Site31.js">

should read language=

Link to comment
Share on other sites

well I cannot see the popupwindow function in the document I only see the call. And you have errors with the js inclusion it shows this

<script lang="javascript" src="Site31.js">

should read language=

 

 

Thanks,

 

I have fixed the language=

 

However, in regards to your comment 'I cannot see the popup window function and only seeing the call', what do I do to fix it?

 

Cheers

Link to comment
Share on other sites

This is because you have not inserted the <!--$headcontent--> call for the sts engine to inject the javascript on each page. I have pasted the relevant section in the readme file.

 

$headcontent: Put this string in your <head> section so that it can insert

the dynamic head content and javascript on pages that require it.  This will

probably require putting the $headcontent in the <head> section in the source

code.  It's a pain to do it this way, but it was the only way I could get it

working. Sorry!

 

<!--$headcontent--> : You can use this commented format of $headcontent to

keep the word "$headcontent" from displaying in your web authoring software.

 

NOTE: Do not put <title>...</title> tags in your header.  It will be added

as part of the $headcontent variable, along with the Description and Keywords

meta tags if you have the WebMakers.com's Header Tag Controller contribution

installed.

Link to comment
Share on other sites

This is because you have not inserted the <!--$headcontent--> call for the sts engine to inject the javascript on each page.  I have pasted the relevant section in the readme file.

 

Does this go in the sts_template.html only?

Link to comment
Share on other sites

Yes.

 

However, if you are using productinfo templates as well as the main template then I am sure I read about an issue and a fix for that combination.

 

I have found this in the contributions section if you are using productinfo templates

 

How to use pop up or click to enlarge with the product_info.php.html file

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...