osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 11-05-2005, 02:18 PM
New Member
 
Join Date: Mar 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
gamerigs
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 -->
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 11-06-2005, 09:52 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,584
Thanks: 1
Thanked 84 Times in 71 Posts
Rep Power: 10
jpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of light
Default RE: Javascript & BTS

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 11-06-2005, 12:20 PM
New Member
 
Join Date: Mar 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
gamerigs
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 10:35 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax