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?
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.
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.
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.)
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