-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspecial.php
More file actions
53 lines (47 loc) · 2.06 KB
/
special.php
File metadata and controls
53 lines (47 loc) · 2.06 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
define('ROOT',$_SERVER['DOCUMENT_ROOT']);
$title='Tools for Shaping Glass';
$description='Special custom oreders payment page - Sundance Art Glass!';
$keywords='Custom stands,custom tools,special projects';
$abstract='Payment for custom orders';
require_once(ROOT .'/mobile/includes/header.php');
$setPay = (isset($_GET['pay'])) ? $_GET['pay'] : 1 ;
?>
<div class="row">
<div class="col">
<div class="h1">Special Order Payment Page</div>
<p>
Here, you can process the payment for your custom orders or international shipping.
</p>
<form class="form-inline">
<label for="ProcessPayment" class="sr-only">Process Payment</label>
<div class="input-group mb-2 mr-sm-2">
<div class="input-group-prepend">
<div class="input-group-text">Payment: $</div>
</div>
<input type="number" name="ProcessPayment" id="payment" min="1" step="1" placeholder="Payment" class="form-control"
style="margin:0;" value="<?=$setPay;?>">
</div>
</form>
<a href='http://www.1shoppingcart.com/SecureCart/SecureCart.aspx?mid=/*private*/&pid=6dfc703e2f2446bf8dbe8be8a1773733&qty=<?=$setPay;?>' id="pay">
<img src='/mobile/images/cart_button_1.png' alt="click here to purchase" class="img-fluid"/></a>
</div>
</div>
<script>
$(document).ready(function () {
$('#payments').on('keyup', function (e) {
if (e.which == 13) {
location.assign(
'http://www.1shoppingcart.com/SecureCart/SecureCart.aspx?mid=/*private*/&pid=6dfc703e2f2446bf8dbe8be8a1773733&qty=' +
$('#payments').val())
}
});
$('#payments').on('change', function (e) {
$('#pay').attr('href',
'http://www.1shoppingcart.com/SecureCart/SecureCart.aspx?mid=/*private*/&pid=6dfc703e2f2446bf8dbe8be8a1773733&qty=' +
$('#payments').val())
});
})
</script>
<?php
require_once ROOT.'/mobile/includes/rightcol.php';