GlebeCS Posted February 10, 2005 Share Posted February 10, 2005 Hello again, I posted threads earlier today having problems with scripts not working (popup, rowover etc) I have managed to sort these out by modifying the head area of sts_template.htm as follows: <head> //--></script> <!--$headcontent--> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <script language="javascript"><!-- var height = screen.height; var width = screen.width; var leftpos = width / 2 - 50; var toppos = height / 2 - 50; function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res izable=yes,copyhistory=no,width=100,height=100,screenX=' + leftpos + ',screenY=' + toppos + ',top=' + toppos + ',left=' + leftpos) } function rowOverEffect(object) { if (object.className == 'moduleRow') object.className = 'moduleRowOver'; } function rowOutEffect(object) { if (object.className == 'moduleRowOver') object.className = 'moduleRow'; } var selected; function selectRowEffect(object, buttonSelect) { if (!selected) { if (document.getElementById) { selected = document.getElementById('defaultSelected'); } else { selected = document.all['defaultSelected']; } } if (selected) selected.className = 'moduleRow'; object.className = 'moduleRowSelected'; selected = object; } function check_agree(TheForm) { if (TheForm.agree.checked) { return true; } else { alert(unescape('You must agree to our terms and conditions ')); return false; } } var win = null; function NewWindow(mypage,myname,w,h,scroll){ LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; TopPosition = (screen.height) ? (screen.height-h)/2 : 0; settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable' win = window.open(mypage,myname,settings) } //--></script> </head> ALMOST everything is working well now, in fact it all works great, the only snag I have is on the checkout_payment.php section, when you click continue there is a script error shown briefly in the bottom left of IE6, this happens whether correct card details are eneteed or not. I have made a test account for anyone who would be so kind as to have a look for me: Email: test@test.com Password: test1 If you go through placing an order and then continue with nothing in the credit card number field you will see the error. Actually after you have clicked this i see a second less significant problem, the OSC error at the top says "The first four digits of the number entered are: <br>If that number is correct, we do not accept that type of credit card.<br>If it is wrong, please try again." where do I change this text? Thanks in advance Link to comment Share on other sites More sharing options...
GlebeCS Posted February 10, 2005 Author Share Posted February 10, 2005 Nobody got any ideas? Link to comment Share on other sites More sharing options...
GlebeCS Posted February 17, 2005 Author Share Posted February 17, 2005 Nobody got any ideas? <{POST_SNAPBACK}> Quick bump here, still cant find what the annoying but brief error is. Link to comment Share on other sites More sharing options...
burt Posted February 17, 2005 Share Posted February 17, 2005 Becuase you use STS, you have severely limited your Support Options. The vast majority of STS users have a very vague understanding of osCommerce "under the hood" - so when things go wrong, they generally stay wrong. For your error message, it's in one of the Language files, do a search for it (using Windows Search or other search tool). Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.