Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.



Recommended Posts

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:

<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) {
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 =
win = window.open(mypage,myname,settings)


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

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


This topic is now archived and is closed to further replies.

  • Create New...