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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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
| ||||
| ||||
| Which version of AGB did you have? Can't see this code....
__________________ JPF - osCMax Fourm Moderator 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
| |||
| |||
| Quote:
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? |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Javascript Error | cherven | osCMax v2 Installation issues | 2 | 02-04-2007 11:30 PM |
| Inserting a javascript in mainpage.php | aalex | osCMax v1.7 Discussion | 0 | 02-05-2004 06:38 PM |
| Bizrate Javascript Code | Anonymous | osCMax v1.7 Discussion | 0 | 11-08-2003 04:19 AM |
| Javascript Error | jgkiefer | osCMax v1.7 Discussion | 0 | 09-23-2003 05:55 AM |
| javascript integration | bushman | osCMax v1.7 Discussion | 3 | 09-16-2003 10:12 AM |