i my name is sagi.
i have a problem with the checkout.html when the user is clicking on submiy butoon.
the nopcart.js is not sending the amuont to the credit card company.
i get an error when i clicking on submiy butoon.
ERROR = "the amuont is not legal"
this is the code:
<HTML>
<HEAD>
<TITLE>
</TITLE>
<STYLE>
.frame {
float: right;
font-size: 1.2em;
margin: 0px 0;
padding: 0 0px;
width: 300px;
height: 50px;
background: url(images/pay.gif);
}
.greetext { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;color: #006600;}
.blacktext { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;color: #000000;}
.checkout {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #000000;}
.checkoutinput {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #000000;}
.nopcart {background: #46AC6F;border: 1px;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #ffffff;}
.nopheader {background: #46AC6F;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #FFFFFF;}
.nopentry {background: #FFFFFF;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #000000;}
.noptotal {background: #FFFFFF;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #000000;}
.nopbutton {background: #FFFFFF;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #000000;}
.style2 {font-size: 16px; font-family: Arial, Helvetica, sans-serif;}
a:link {
color: #000000;
text-decoration: none;
}
a:hover {
color: #009900;
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:active {
text-decoration: none;
}
</STYLE>
<SCRIPT SRC="language-il.js"></SCRIPT>
<SCRIPT SRC="nopcart.js">
//=====================================================================||
// NOP Design JavaScript Shopping Cart ||
// ||
// For more information on SmartSystems, or how NOPDesign can help you ||
// Please visit us on the WWW at http://www.nopdesign.com ||
// ||
// JavaScript Shop Module, V.4.4.0 ||
//=====================================================================||
</SCRIPT>
<script language="vbscript"> sub linka() if document.formi.chk.checked=true then document.getelementbyid("linka").style.display="block" else document.getelementbyid("linka").style.display="none" end if end sub </script>
<BODY BGCOLOR="White" TEXT="Black">
<div align="right">
<NOSCRIPT>
Whoops, we detected that your browser does not have JavaScript, or it is disabled. Our product catalog requires that you
have JavaScript enabled to order products. <a href="http://www.netscape.com">Netscape</a> and <a href="http://www.microsoft.com/ie">Microsoft</a>
offer free browsers which support JavaScript. If you are using a JavaScript compliant browser and still have problems, make sure you
have JavaScript enabled in your browser's preferences.
</NOSCRIPT>
<img src="images/reg.gif" align="right"><br/>
<br/>
<br/>
<br/><br/>
<br/>
<SCRIPT>
CheckoutCart();
</SCRIPT>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/><br/><br/><br/>
<span class="style2"> למעבר לתשלום יש לאשר את התקנון </span>
<form name="formi">
<br>
<div class="frame">
<div align="center"><br/>
<input type=checkbox name="chk" onClick="linka()">
<span class="style2"><strong>אני מאשר שקראתי והסכמתי עם <a href="policy.html" target="_blank">התקנון</a></strong><a href="policy.html" target="_blank"></a></span><br>
</div>
</div>
<br><br><br><br><br>
<div id="linka" style="display: none">
<!--<form action="/cgi-bin/checkout.pl" method="POST" onSubmit="return CheckForm(this)">
</FORM> -->
<form action="pelepayform" action="https://www.pelepay.co.il/pay/paypage.aspx" target="_top">
</FORM>
credit card company form:
<form name="pelepayform" action="https://www.pelepay.co.il/pay/paypage.aspx" target="_top" method="post">
<INPUT TYPE="hidden" value="info@barlogo.co.il" NAME="business">
<INPUT TYPE="hidden" value="" NAME="amount">
<INPUT TYPE="hidden" value="" NAME="orderid">
<INPUT TYPE="hidden" value="_chart_shopp" NAME="description">
<INPUT TYPE="hidden" value="12" NAME="max_payments"><input type="image" src="http://www.pelepay.co.il/btn_images/pay_button_6.gif" name="submit" alt="Make payments with pelepay"></form>
</div>
</body>
<SCRIPT SRC="nopcart.js">
document.pelepayform.amount.value=(strOutput);//put your chart total amount
document.pelepayform.orderid.value= "";//put your chart order id number
</script>
</html>
