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
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Product Options - updateoptimage() function
Author « Topic »  

koolwebdezign
Starting Member

USA
5 Posts

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

Posted - 03/28/2019 :  16:03:49  
I am running PHP v6.9.6 and I am having problems with the updateoptimage() javascript function on my product details pages.

http://new2.newenglandcustomgun.com/proddetail.php?prod=8194

When I select a product option, the text on the page for all of the options changes to 'undefined'. This appears to be a problem with the HTML rendering on the page only (after the onclick action). The product option value is properly selected and added to the shopping cart when I click the 'Add to Cart' button.

Can someone advise if there is a bug in the javascript contained within this release?

Jack - Contract Developer for New England Custom Gun


John C Welch Jr

dbdave
ECT Moderator

USA
10468 Posts

Posted - 03/28/2019 :  18:25:50  
You are calling <script src="/js/ectcart.js"></script> at the bottom of the page.
Try it in the head <head> section of the page and see if that sorts it out...

koolwebdezign
Starting Member

USA
5 Posts

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

Posted - 03/29/2019 :  06:29:35  
dbdave, Thank you so much for this tip. As soon as I read this I had the DAH moment. I made this change and pulled jQuery and other calls to the javascript files to the HEAD and it works fine. I am very grateful for your contribution.





John C Welch Jr

dbdave
ECT Moderator

USA
10468 Posts

Posted - 03/29/2019 :  07:12:12  
Great news. Glad you got it sorted.

Thanks,
David
  « 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