Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

demon_510

Archived
  • Posts

    18
  • Joined

  • Last visited

Posts posted by demon_510

  1. ok got this working,

     

    turns out you need the <!-- $headcontent --> in your template which i didnt have.

     

    anyone,

     

    does anyone know what would cause the pages to all have js errors on the page. i got the popups etc to work but it still has js errors.

     

    any ideas?

    I had <!-- $headcontent --> in my html page and nothing. As a matter of fact non of my other js on my pages worked right either, then i just added the js from the source it was calling on and added it to my page and it worked.

  2. 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=150,screenY=150,top=150,le
    ft=150')
    }
    
    var selected;
    var submitter = null;
    function submitFunction() {
      submitter = 1;
      }
    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;
    
    // one button is not an array
     if (document.checkout_payment.payment[0]) {
       document.checkout_payment.payment[buttonSelect].checked=true;
     } else {
       document.checkout_payment.payment.checked=true;
     }
    }
    
    function rowOverEffect(object) {
     if (object.className == 'moduleRow') object.className = 'moduleRowOver';
    }
    
    function rowOutEffect(object) {
     if (object.className == 'moduleRowOver') object.className = 'moduleRow';
    }
    
    function check_form() {
     var error = 0;
     var error_message = "Errors have occured during the process of your form.\n\nPlease make the following corrections:\n\n";
     var payment_value = null;
     if (document.checkout_payment.payment.length) {
       for (var i=0; i<document.checkout_payment.payment.length; i++) {
         if (document.checkout_payment.payment[i].checked) {
           payment_value = document.checkout_payment.payment[i].value;
         }
       }
     } else if (document.checkout_payment.payment.checked) {
       payment_value = document.checkout_payment.payment.value;
     } else if (document.checkout_payment.payment.value) {
       payment_value = document.checkout_payment.payment.value;
     }
    
     if (payment_value == "cc") {
       var cc_owner = document.checkout_payment.cc_owner.value;
       var cc_number = document.checkout_payment.cc_number.value;
       var cvvnumber = document.checkout_payment.cvvnumber.value;
       if (cc_owner == "" || cc_owner.length < 3) {
         error_message = error_message + "* The owner's name of the credit card must be at least 3 characters.\n";
         error = 1;
       }
       if (cc_number == "" || cc_number.length < 10) {
         error_message = error_message + "* The credit card number must be at least 10 characters.\n";
         error = 1;
       }
       if (cvvnumber.length > 4) {
         error_message = error_message + "*** The credit card validation number must be 4 digits or less. \n";
         error = 1;
       }
       if (cvvnumber == ""|| cvvnumber.length < 3) {
         error_message = error_message + "*** The credit card validation number must be at least 3 digits . \n";
         error = 1;
       }
     }
    
     if (payment_value == null && submitter != 1) {
       error_message = error_message + "* Please select a payment method for your order.\n";
       error = 1;
     }
    
     if (error == 1 && submitter != 1) {
       alert(error_message);
       return false;
     } else {
       return true;
     }
    }
    
    function couponpopupWindow(url) {
     window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,re
    sizable=yes,copyhistory=no,width=450,height=280,screenX=150,screenY=150,top=150,l
    eft=150')
    }

    I entered the code that was located in mysite into the actual sts_template.html and then saved it and voilla no problem.

  3. Hi everyone,

     

    I've been struggling with the layout for my site since a couple of weeks and have now decided to install STS 2.0

     

    After I copied the files to the catalog/includes folder and changed the configure.php I now have a completely blank page. I have done the simple installation because I reinstalled OsCommerce on my site.

     

    For your information, I haven't manually installed OsC, My webhost has done this for me. Could this have to do anything with the STS not working?

     

    Thanx for your help,

     

    Irma

     

    I just downloaded this contrib and set it up on a new osc install and the same thing is happening for me. I was just using the sts_template.html that comes with the download just to see what is looks like and nadda. I have even linked the stylesheet to its absolute path.

×
×
  • Create New...