Jump to content

add postage payment


pcmarket

Recommended Posts

I use this payment form

I want to add that as a part of postage
When a customer chose the option position amounted to 7,000 or 10,000 deposit to be added
For example, deposit + postage
please guide me
Thanks

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>فرم پرداخت انلاین فروشگاه پی سی مارکت </title>
<style type="text/css">
.tahoma {
font-family: Tahoma, Geneva, sans-serif;
}
.Tahoma {
font-family: Tahoma, Geneva, sans-serif;
font-size: 12px;
}
</style>
</head>

<body background="bg.jpg">
<p align="center"><img src="logo.png" width="610" height="102" longdesc="http://tabpcmarket.ir" />
<p align="center">
<font face="Tahoma">
<style>
.tbl{
direction:rtl;
font-family:Tahoma;
font-size:12px
}
table{
border:1px black solid;


}
.right{
background-color:#F2F8FF;
width:150px;
line-height:25px;
font-size:12px;
color:#003D59
}
input,select,option,textarea{
font-family:Tahoma;
font-size:11px;

}
#sent{
display:block;
background-color:#EEFBEE;
border:1px green dashed;
font-family:Tahoma;
width:580px;
margin:20px auto 20px auto;
font-size:12px;
text-align:center;
padding:10px;
box-shadow: -10px -10px 0px yellow;
border-radius: 5px;
}
#err{
display:block;
background-color:#FFF8F4;
border:1px maroon dashed;
font-family:Tahoma;
width:580px;
margin:20px auto 20px auto;
font-size:12px;
text-align:center;
padding:10px
}
</style>
</head>
</font>
<font size=2 face=Tahoma color=blue>فرم پرداخت آنلاین فروشگاه پی سی مارکت (امکان واریز توسط کلیه کارتهای عضو شبکه شتاب) <br /></font>
<font size=2 face=Tahoma color=blue>پر کردن موارد ستاره دار الزامی می باشد <br /></font>
<body>

<font face="Tahoma">

<script type="text/javascript" src="epay.js"></script>
</font>
<form method="post" action="#" id="paymentform_page45">

<table width="570" align="center" class="tbl" >

<tr>

<td class="right">نام و نام خانوادگی *: </td>
<td class="left"><input name="username"/></td>
</tr>
<tr>
<td class="right">پست الکترونیکی : </td>
<td class="left"><input name="email"/></td>
</tr>
<tr>
<td class="right">شماره تماس *: </td>
<td class="left"><input name="tel"/></td>
</tr>
<tr>
<td class="right" style="width: 150px" valign="top">علت پرداخت یا کد محصول *: </td>
<td class="left"><input name="payfor"/></td>
</tr>
<tr>
<td class="right">مبلغ واریزی به ریال*: </td>
<td class="left"><input name="cost"/></td>
</tr>
<tr>
</td>
<tr>

</tr>
<tr>
<td class="right">روش ارسال :</td>
<td class="left">
<select name="data[روش ارسال]">
<option value="value 0" > بدون نیاز به ارسال پستی</option>
<option value="cost+100000" >>پست پیشتاز (10 هزار تومان)</option>
<option value="value 7000" >>پست سفارشی (7 هزار تومان)</option>

</select>
</td>
</tr>
<tr>
<td class="right" style="width: 150px" valign="top"></td>
<td class="left"><input type="submit" value="پرداخت" /><input type="reset" value="بارگزاری مجدد" /></td>
</tr>
</table>
</form>
<p>

<p dir="rtl" align="right"><font size=2 face=Tahoma color=red> لطفا در صورت انتخاب ارسال پستی حتما هزینه پستی را هم به همراه مبلغ سفارش واریز کنید
<p>
<p dir="rtl" align="right">
برای پست پیشتاز : 10 هزار تومان
<p>
<p dir="rtl" align="right">

برای پست سفارشی:7 هزار تومان <br /></font>
</p>




<font face="Tahoma">
<script type="text/javascript">
epay_jscript.pageroot='';

epay_jscript.initpayform('paymentform_page45',{username:'every',payfor:'every',email:'mail',tel:'code'},function(frm){
var err='';

if(frm.username.value==''){err+='\nوارد کردن نام الزامی است.'}else if(!frm.username.inputreg.ok()) err+='\nنام وارد شده معتبر نمی باشد.';
if(!frm.email.inputreg.ok()) err+='\nایمیل وارد شده معتبر نمی باشد. (می توانید این بخش را خالی رها کنید)';
if(frm.tel.value==''){err+='\nوارد کردن شماره تماس الزامی است.'}else if(!frm.tel.inputreg.ok()) err+='\nشماره تماس وارد شده معتبر نمی باشد.';
if(frm.payfor.value==''){err+='\nوارد کردن علت پرداخت الزامی است.'}else if(!frm.payfor.inputreg.ok()) err+='\nلطفا در وارد کردن علت پرداخت از حروف مجاز استفاده کنید.';

if(err==''){
return true;
}else{
epay_jscript.alert('خطاهای زیر رخ داده اند:'+err);
return false;
};
});

</script>
</font>
</div>
<div id="main-inner-right"><font face="Tahoma">
<div class="clear"></div>
</div>
<div id="footer">
<p align="center" class="Tahoma">


</p></div>
</body>
</html>














Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...