Results 1 to 3 of 3

Thread: Javascript & BTS

  1. #1
    gamerigs
    Guest


    Default Javascript & BTS

    I am trying to add a contribution called 'conditions of use'. It only has two pieces of code that a added to the /catalog/checkout_confirmation.php in a oscommerce install. I am trying to add it to osmax install and can't get the Javascript check to work. I do not know where to locate it in a osmax
    install. I have tried main_page.tpl.php, checkout_confirmation.tpl.php and checkout_confirmation.php but the javascipt doesn't do its check? Where do you store Javascript with a BTS install?

    It says to add this to checkout_confirmation.php

    <!--Start AGB confirmation script -->

    <SCRIPT LANGUAGE="JavaScript">
    function checkCheckBox(f){
    if (f.agree.checked == false )
    {
    alert('<?php echo CONDITION_AGREEMENT_WARNING; ?>');
    return false;
    }else
    return true;
    }
    </script>

    <!--Start AGB confirmation script -->


    <!--Start AGB Agreement form -->

    <?php echo CONDITION_AGREEMENT; ?> <input type="checkbox" value="0" name="agree">

    <!--Ende AGB Agreement form -->

  2. #2
    jpf
    Guest


    Default RE: Javascript & BTS

    Which version of AGB did you have? Can't see this code....

  3. #3
    gamerigs
    Guest


    Default Re: RE: Javascript & BTS

    Quote Originally Posted by jpf
    Which version of AGB did you have? Can't see this code....
    It is this contribution here

    http://www.oscommerce.com/community/...arch,Maik+Caro

    It makes a check box in checkout_confirmation and has a piecei of javascript validate it has be ticked. I don't know where to put the javascript becuase it is oscmax not oscommerce. Do you know where I should put the javacript so that the warning message will come up if they do not tick the box?

Similar Threads

  1. Javascript Error
    By cherven in forum osCmax v2 Installation issues
    Replies: 2
    Last Post: 02-04-2007, 10:30 PM
  2. Inserting a javascript in mainpage.php
    By aalex in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 02-05-2004, 05:38 PM
  3. Bizrate Javascript Code
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 11-08-2003, 03:19 AM
  4. Javascript Error
    By jgkiefer in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 09-23-2003, 05:55 AM
  5. javascript integration
    By bushman in forum osCmax v1.7 Discussion
    Replies: 3
    Last Post: 09-16-2003, 10:12 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •