osCmax v2.5 User Manual
Results 1 to 3 of 3

Javascript & BTS

This is a discussion on Javascript & BTS within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; I am trying to add a contribution called 'conditions of use'. It only has two pieces of code that a ...

      
  1. #1
    New Member
    Join Date
    Mar 2004
    Posts
    11
    Rep Power
    0


    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
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default RE: Javascript & BTS

    Which version of AGB did you have? Can't see this code....
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  3. #3
    New Member
    Join Date
    Mar 2004
    Posts
    11
    Rep Power
    0


    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
  •