-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanage_order.php
34 lines (34 loc) · 942 Bytes
/
manage_order.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php session_start() ?>
<div class="container-fluid">
<div class="col-lg-12">
<p>This transaction accept only cash on delivery. Please wait for verification email or call from the management after checking out</p>
<form id="manage-order">
<div class="form-group">
<label for="" class="control-label">Delivery Address</label>
<textarea name="address" id="" cols="30" rows="4" class="form-control" required=""><?php echo $_SESSION['login_address'] ?></textarea>
</div>
</form>
</div>
</div>
<script>
$('#manage-order').submit(function(e){
e.preventDefault()
start_load()
$.ajax({
url:'admin/ajax.php?action=save_order',
method:'POST',
data:$(this).serialize(),
error:err=>{
console.log(err)
},
success:function(resp){
if(resp == 1){
alert_toast('Order successfully submitted.',"success");
setTimeout(function(){
location.reload()
},2000)
}
}
})
})
</script>