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
 Cart problems on new template
Author « Topic »  

Fingertech
Advanced Member

Canada
318 Posts

Posted - 02/07/2020 :  14:10:20  
Hi, we've just gone live with our new template and the Cart.php page isn't showing boxes to input the addresses any more.
https://www.fingertechrobotics.com/cart.php

Classes billformrow and shipformrow are all showing as display:none;

Worked fine prior to the new template, so what have I missed?

Edited by - Fingertech on 02/07/2020 14:12:19

dbdave
ECT Moderator

USA
10468 Posts

Posted - 02/07/2020 :  14:46:32  
I do see a javascript error on your page - the text below cannot be wrapped like you have it, at least not without some additional code.
Fixing that may solve the problem.
quote:
if(frm.wantinsurance.selectedIndex==0){
alert("Please choose if you would like to add shipping insurance (4.0% of product total)
Claims for late, lost or damaged shipments can only be filed if insurance was purchased.
Do NOT choose insurance for Small Packet Air because it is NOT available.");
frm.wantinsurance.focus();
return(false);
}


If fixing that does not fix the problem, I would download the latest updater and apply it to the website.
Be sure to apply the latest ectcart.css and ectcart.js files included with the update package.

Thanks,
David

Fingertech
Advanced Member

Canada
318 Posts

Posted - 02/07/2020 :  14:54:03  
Hi David, thanks for the quick reply!
So what's actually wrong there and how do I fix it?
I've got the newest updater uploaded, and all I've done to get that alert text is add the language for $GLOBALS['xxChoIns'] in my includes.php.

dbdave
ECT Moderator

USA
10468 Posts

Posted - 02/07/2020 :  16:08:22  
Hi, first, take that out of includes and let's confirm that the site works.

Then, let's look at your change to get it sorted.

David

Fingertech
Advanced Member

Canada
318 Posts

Posted - 02/07/2020 :  18:50:33  
Hi David,
Vince emailed me and turns out the issue was from specifically the line breaks in that chunk of code. Never had a problem with them before, but there must be something different in the new template javascript that doesn't like it. Anyway, up and running again; thanks for your attention! (I will probably have other questions before it's smooth sailing, but this was a biggie.)

dbdave
ECT Moderator

USA
10468 Posts

Posted - 02/08/2020 :  09:52:03  
Hi, yes, I had pinpointed that as the problem too

quote:
I do see a javascript error on your page - the text below cannot be wrapped like you have it, at least not without some additional code.


Typically once you have a javascript error on the page, all other javascript stops working.
The address fields that expand there are controlled by javascript.


If you have a string in javascript and you wrap your code on multiple lines, you need to add some code for that.
https://www.w3schools.com/js/js_strings.asp

\n New Line

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