-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsock-subscription-testing.php
More file actions
executable file
·212 lines (167 loc) · 6.16 KB
/
sock-subscription-testing.php
File metadata and controls
executable file
·212 lines (167 loc) · 6.16 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<?php
$PageTitle="Sockscribe Me - Awesome Socks Delivered to Your Door Monthly";
$page = "";
function customPageHeader(){?>
<!--Arbitrary HTML Tags-->
<?php }
include_once('header.php');
?>
<!-- begin page content -->
<div class="container">
<div class="row text-center">
<h1>Customize Your Order <p class="lead"> Everyone is special</p><h1>
</div>
<div class="col-md-10 col-md-offset-1">
<form action="https://sockscribemetest.foxycart.com/cart" method="post">
<div class="col-md-12">
<h3>Step 1: Select a Subscription Duration</h3>
</div>
<div class="row duration-container">
<label class="col-sm-4">
<div class="tile radio-duration">
<div class="information">
<input type="radio" name="name" value="Month to Month" required>
<h3>Month to Month</h3>
<div class="price-block">
$<strong>12</strong>/month + shipping
</div>
<p>Great for the Uncomitted</p>
<p>1 pair of socks every month</p>
<p>Cancel anytime</p>
</div>
<div class="btn btn-inverse duration-button">Select<span class="fui-arrow-right"></span></div>
</div>
</label>
<label class="col-sm-4">
<div class="tile radio-duration">
<div class="information">
<input type="radio" name="name" value="Six Months Subscription" required>
<h3>Six Months</h3>
<div class="price-block">
$<strong>72</strong>/up-front
</div>
<p>Best way to get started</p>
<p>Free shipping</p>
<p>Monthly delivery for 6 months</p>
</div>
<div class="btn btn-inverse duration-button">Select<span class="fui-arrow-right"></span></div>
</div>
</label>
<label class="col-sm-4">
<div class="tile radio-duration">
<div class="information">
<input type="radio" name="name" value="Twelve Months Subscription" required>
<h3>Twelve Months</h3>
<div class="price-block">
$<strong>144</strong>/up-front
</div>
<p>Sweet sock drawer</p>
<p>Free shipping</p>
<p>Monthly delivery for 12 months</p>
</div>
<div class="btn btn-inverse duration-button">Select<span class="fui-arrow-right"></span></div>
</div>
</label>
</div>
<div class="row gender-container">
<div class="col-md-12">
<h3>Step 2: Select a Gender</h3>
</div>
<div class="row">
<label class="col-xs-6">
<div class="tile radio-gender">
<div class="information">
<input type="radio" name="gender" value="Dudes" required><h3>Dudes</h3></input >
<lead>Shoe size 8-12 US</lead>
</div>
<div class="btn btn-inverse gender-button">Select<span class="fui-arrow-right"></span></div>
</div>
</label>
<label class="col-xs-6">
<div class="tile radio-gender">
<div class="information">
<input type="radio" name="gender" value="Chicks" required><h3>Chicks</h3></input>
<lead>Shoe size 5-10 US</lead>
</div>
<div class="btn btn-inverse gender-button">Select<span class="fui-arrow-right"></span></div>
</div>
</label>
</div>
</div>
<div class="row style-container">
<div class="col-md-12">
<h3>Step 3: Select a Style of Socks</h3>
</div>
<div class="row">
<label class="col-xs-6">
<div class="tile radio-style shapes">
<div class="information">
<input type="radio" name="style" value="Patterns" required><h3>Patterns</h3></input>
<p><strong>Examples of Socks</strong></p>
<p><small>Stripes</small></p>
<p><small>Checks</small></p>
<p><small>Polka-dots</small></p>
</div>
<div class="btn btn-inverse style-button">Select<span class="fui-arrow-right"></span></div>
</div>
</label>
<label class="col-xs-6">
<div class="tile radio-style shapes">
<div class="information">
<input type="radio" name="style" value="Graphics" required><h3>Graphics</h3></input>
<p><strong>Examples of Socks</strong></p>
<p><small>Sushi</small></p>
<p><small>Dogs</small></p>
<p><small>Flying Toast</small></p>
</div>
<div class="btn btn-inverse style-button">Select<span class="fui-arrow-right"></span></div>
</div>
</label>
</div>
</div>
<div class="row">
<div class="col-md-12 continue-button text-center">
<input type="hidden" name="empty" value="true" />
<input type="hidden" name="cart" value="checkout" />
<button type="submit" id="checkout-button" class="btn continue-checkout-btn" >Checkout <span class="glyphicon glyphicon-chevron-right"></span></button>
</div>
</div>
</form>
<div class="dates hidden">
<input type="hidden" name="twelveMonthsDate" id="twelveMonthsDate" value="<?php
echo date('Ymd', strtotime("+12 month +1 day"));
?>" />
<input type="hidden" name="sixMonthsDate" id="sixMonthsDate"value="<?php
echo date('Ymd', strtotime("+6 month +1 day"));
?>" />
</div>
</div>
</div>
<!-- end page content -->
<?php
include_once('footer.php');
?>
<script type="text/javascript" charset="utf-8">
fcc.events.cart.preprocess.add(function(e, arr) {
if (arr['cart'] == 'checkout' || arr['cart'] == 'updateinfo' || arr['output'] == 'json') {
return true;
}
if (arr['cart'] == 'checkout_paypal_express') {
_gaq.push(['_trackPageview', '/paypal_checkout']);
return true;
}
_gaq.push(['_trackPageview', '/cart']);
return true;
});
fcc.events.cart.process.add_pre(function(e, arr) {
var pageTracker = _gat._getTrackerByName();
jQuery.getJSON('https://' + storedomain + '/cart?' + fcc.session_get() + '&h:ga=' + escape(pageTracker._getLinkerUrl('', true)) + '&output=json&callback=?', function(data){});
return true;
});
</script>
<script>
var twelveMonthsDate;
var sixMonthsDate;
var twelveMonthsDate = $("#twelveMonthsDate").val();
var sixMonthsDate = $("#sixMonthsDate").val();
</script>