Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Author « Topic »  

ross.fraser
Advanced Member

451 Posts

Pre-sales questions only
(More Details...)

Posted - 05/24/2020 :  01:42:23  
Hi,

I'm getting this error in chrome (inspector) when viewing the product page (proddetail.php)

Uncaught ReferenceError: pIM is not defined

</script><script type="text/javascript">/* <![CDATA[ */
pIM[0]=['images/coaster.jpg','images/coaster.jpg'];
/* ]]> */</script>

when I have 2 small and 2 large images (or more), BUT this doesn't happen with just 1 small and 1 large image.



This error occurs when I have one small and one large image, but have a product option:

Uncaught ReferenceError: ot is not defined

Uncaught ReferenceError: optacpc is not defined
at setvals0 (proddetail.php?prod=monitor001:220)
at updateprice0 (proddetail.php?prod=monitor001:223)
at proddetail.php?prod=monitor001:233

I have deleted and recreated the database and the same errors occur.

I have connected it to my existing database (from wordpress) and the errors occur.

I have also stripped down the javascripts to jquery and the 4 supplied by ect.

Any ideas?

Ross Fraser
sales@fraserross.com.au
https://fraserross.com.au

Edited by - ross.fraser on 05/24/2020 03:44:33

Vince
Administrator

42451 Posts

Posted - 05/24/2020 :  07:20:20  
Hi Ross
I don't get this on my test site here, and I tried the jewellry site you referenced and don't have a problem there either. Can you let me know the link to a page that is giving this problem and I'll try there.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

ross.fraser
Advanced Member

451 Posts

Pre-sales questions only
(More Details...)

Posted - 05/24/2020 :  22:44:59  
Hi Vince,

the issue is caused when the include line to the incproducts.php or incproddetail.php in products.php or proddetail.php is above the call to jquery.

This is how bootstrap studio creates the html pages. All js scripts are loaded just before the </body> tag.

cheers
Ross


Ross Fraser
sales@fraserross.com.au
https://fraserross.com.au

Vince
Administrator

42451 Posts

Posted - 05/25/2020 :  01:41:53  
Hi Ross
So do you have a workaround? Or do you still need me to help here?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

ross.fraser
Advanced Member

451 Posts

Pre-sales questions only
(More Details...)

Posted - 05/25/2020 :  05:22:11  
Sorry Vince,

the solution to "uncaught reference error" messages is to make sure that jquery is loaded before the call to the include line.

Everything now works fine.

Cheers


Ross Fraser
sales@fraserross.com.au
https://fraserross.com.au

kkelso
Starting Member

USA
14 Posts

Pre-sales questions only
(More Details...)

Posted - 07/05/2020 :  15:27:54  
Hi all,

Now I'm getting this same error also. I have not modified any of the php pages in /vsadmin. How do I confirm jquery is loaded before the include line Ross notes?

products.php?cat=LED+Flashlights:606 Uncaught ReferenceError: ot is not defined
at products.php?cat=LED+Flashlights:606
(anonymous) @ products.php?cat=LED+Flashlights:606
products.php?cat=LED+Flashlights:616 Uncaught ReferenceError: optacpc is not defined
at setvals0 (products.php?cat=LED+Flashlights:616)
at updateprice0 (products.php?cat=LED+Flashlights:620)
at products.php?cat=LED+Flashlights:732

page is at: https://www.tek-tite.com/products.php?cat=LED+Flashlights

Karl Kelso
kkelso@tek-tite.com
https://www.tek-tite.com

Edited by - kkelso on 07/05/2020 15:37:21

Vince
Administrator

42451 Posts

Posted - 07/06/2020 :  04:19:42  
Hi Karl
You need to have the ectcart.js javascript file referenced in all pages and that doesn't seem to be on that page. Can you see the details here about how to reference it?

https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=107040

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

kkelso
Starting Member

USA
14 Posts

Pre-sales questions only
(More Details...)

Posted - 07/07/2020 :  09:21:45  
DOH! Thought I had all the bases covered and just missed that one. Working perfectly now... Thanks Vince!
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000