-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheckout-page2.php
More file actions
executable file
·1603 lines (1455 loc) · 111 KB
/
checkout-page2.php
File metadata and controls
executable file
·1603 lines (1455 loc) · 111 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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
$PageTitle="Checkout Page - Sockscribe Me - Awesome Socks Delivered to Your Door Monthly";
$page = "Checkout";
function customPageHeader(){?>
<!--Arbitrary HTML Tags-->
<?php }
include_once('header.php');
?>
<!-- begin page content -->
<div class="container">
<div class="page-header">
<h1>Checkout <small>You are 1 step away for happiness</small></h1>
</div>
{% block checkout %}
{# BEGIN CHECKOUT TWIG TEMPLATE #}
<!-- ###########################################################################
BEGIN checkout
########################################################################### -->
<!-- *********** fc_checkout_container ************* -->
<div id="fc_checkout_container">{{ html_messages|raw }}
<form id="fc_form_checkout" method="post" action="https://{{ store_domain }}{{ post_url }}" onsubmit="return false;">
<div class="col-sm-8 col-sm-offset-2" id="fc_login_register_container">
{% block checkout_error %}
<div id="fc_form_checkout_error" class="fc_error" style="display:none">{{ lang.checkout_required_info_missing|raw }}</div>
{% endblock checkout_error %}
{% block required_hidden_fields %}
<div id="fc_required_hidden_fields">
<input type="hidden" id="ThisAction" name="ThisAction" value="checkout" />
<input type="hidden" id="customer_id" name="customer_id" value="{{ customer_id_encoded }}" />
<input type="hidden" name="{{ session_name }}" value="{{ session_id }}" />
{{ csrf_hidden_input|raw }}
{% if auth_token_is_valid %}
<input type="hidden" name="fc_auth_token" value="{{ fc_auth_token }}" />
<input type="hidden" name="timestamp" value="{{ timestamp }}" />
<input type="hidden" name="fc_customer_id" value="{{ fc_customer_id }}" />
{% endif %}
{# preserve paypal express variables #}
{% if token != '' and payer_id != '' %}
<input type="hidden" id="token" name="token" value="{{ token }}" />
<input type="hidden" id="PayerID" name="PayerID" value="{{ payer_id }}" />
{% endif %}
{% for var_name, var_value in hosted_gateway_vars %}
<input type="hidden" name="{{ var_name }}" value="{{ var_value }}" />
{% endfor %}
</div>
{% endblock required_hidden_fields %}
{% block noscript_warning %}
<noscript>
<div id="fc_error_noscript" class="fc_error">
<h3>{{ lang.checkout_warning|raw }}</h3>
<p>{{ lang.checkout_missing_message|raw }}</p>
</div><!-- #fc_errorNoScript -->
</noscript>
{% endblock noscript_warning %}
</div>
{% block login_register %}
<!-- *********** login_register : Login or Register ************* -->
<div class="form-group col-sm-8 col-sm-offset-2" id="fc_login_register_container">
<div class="shaded-form col-md-8 col-md-offset-2">
<fieldset id="fc_login_register">
<legend>{% if checkout_type == 'guest_only' %}{{ lang.checkout_as_guest|raw }}{% else %}{{ lang.checkout_login_or_register|raw }}{% endif %}</legend>
<div class="fc_inner">
<ol id="fc_login_register_list">
{% if not customer_is_authenticated %}
<li id="li_customer_email" class="row fc_customer_email">
<label class="fc_pre" for="customer_email">{{ lang.checkout_email|raw }}<span class="fc_ast">*</span></label>
<input type="text" value="{{ email }}" autocomplete="off" class="form-control fc_text_long fc_required" id="customer_email" name="customer_email">
<label style="display:none;" class="fc_error" for="customer_email">{{ lang.checkout_error_email|raw }}</label>
<p class="fc_account_message" id="fc_account_message_status">
{{ lang.checkout_instructions_email|raw }}
</p>
<span style="display:none" id="login_ajax"><img alt="{{ lang.checkout_loading|raw }}" src="//cdn.foxycart.com/static{{ base_directory }}/images/ajax-loader.gif?ver=1"></span>
<p style="display:none;" class="fc_account_message" id="fc_account_message_explanation"></p>
</li>
{% if not is_updateinfo and checkout_type != 'guest_only' and checkout_type != 'account_only' %}
<li class="row fc_row_radio fc_guest_checkout">
<label for="is_anonymous_1" class="fc_radio">
<input type="radio" name="is_anonymous" value="1" id="is_anonymous_1" class="fc_radio"{% if default_to_guest %} checked="checked"{% endif %} autocomplete="off"/>
<span>{{ lang.checkout_as_guest|raw }}</span>
</label>
</li>
<li class="row fc_row_radio fc_guest_checkout">
<label for="is_anonymous_0" class="fc_radio">
<input type="radio" name="is_anonymous" value="0" id="is_anonymous_0" class="fc_radio"{% if not default_to_guest %} checked="checked"{% endif %} autocomplete="off" />
<span>{{ lang.checkout_as_customer|raw }}</span>
</label>
</li>
{% else %}
{% if checkout_type == 'guest_only' %}
<input type="hidden" name="is_anonymous" id="is_anonymous" value="1" />
{% else %}
<input type="hidden" name="is_anonymous" id="is_anonymous" value="0" />
{% endif %}
{% endif %}
{% else %}
<li class="row fc_customer_email" id="li_customer_email">
<span class="fc_pre">{{ lang.checkout_email|raw }}<span class="fc_ast">*</span></span>
<span id="customer_email_authenticated" class="form-control">{{ email }}</span>
<input type="hidden" name="customer_email" id="customer_email" value="{{ email }}" />
<label for="customer_email" class="fc_error" style="display:none;">{{ lang.checkout_error_email|raw }}</label>
<p id="fc_account_message_sso" class="fc_account_message">{{ lang.checkout_sso_already_logged_in|raw }}</p
</li>
{% endif %}
<li id="li_customer_password" style="display:none;" class="row fc_customer_password">
<p style="display:none;" class="fc_account_message" id="fc_account_message_password"></p>
<label class="fc_pre" for="customer_password">{{ lang.checkout_password|raw }}</label>
<input type="password" value="{{ customer_password }}" autocomplete="off" class="form-control fc_text_long" id="customer_password" name="customer_password">
<label style="display:none;" class="fc_error" for="customer_password">{{ lang.checkout_error_password|raw }}</label>
</li>
<li id="li_customer_password2" style="display:none;" class="row fc_customer_password2">
<label class="fc_pre" for="customer_password2">{{ lang.checkout_retype_password|raw }}</label>
<input type="password" value="{{ customer_password }}" autocomplete="off" class="form-control fc_text_long" onchange="FC.checkout.checkPasswords()" id="customer_password2" name="customer_password2">
<label style="display:none;" class="fc_error" for="customer_password2">{{ lang.checkout_error_retype_password|raw }}</label>
</li>
<li id="li_customer_email_password" class="row" style="display:none">
<label for="fc_email_password" class="fc_error"><a id="fc_email_password" href="javascript:;" onclick="FC.checkout.emailPassword()">{{ lang.checkout_email_my_password|raw }}</a></label>
</li>
<li id="li_customer_new_password" class="row" style="display:none">
<label for="fc_new_password"><a id="fc_new_password" href="javascript:;" onclick="FC.checkout.newPassword()">{{ lang.checkout_change_my_password|raw }}</a></label>
</li>
</ol>
<input type="hidden" name="email_found" id="email_found" value="{{ email_found }}" />
<div id="fc_continue" class="row fc_row_actions center"><a href="#" onclick="FC.checkout.checkLogin(); return false;" class="btn btn-default">{{ lang.checkout_continue|raw }}</a></div>
<span class="fc_clear"> </span>
</div><!-- .fc_inner -->
</fieldset><!-- #fc_login_register -->
<span class="fc_clear"> </span>
</div>
</div><!-- #fc_login_register_container -->
{% endblock login_register %}
<div class="col-sm-7">
{% if not is_subscription_cancel %}
<div id="fc_data_entry_container">
<div id="fc_customer_info_container">
{% block customer_billing %}
<!-- *********** customer_billing : Billing Address ************* -->
<div class="form-group" id="fc_customer_billing_container">
<fieldset id="fc_customer_billing">
<legend>{{ lang.checkout_billing_address|raw }}</legend>
<div class="fc_inner">
<ol id="fc_customer_billing_list">
<li class="row fc_row_select fc_foxycomplete fc_customer_country_name hide">
<label class="fc_pre" for="customer_country_name">{{ lang.checkout_country|raw }}<span class="fc_ast">*</span></label>
<select class="form-control fc_text_long fc_required fc_location" data-default-value="{{ country_code }}" id="customer_country" name="customer_country">
{{ country_options|raw }}
</select>
<input value="US" type="text" style="display:none;" class="fc_foxycomplete_input form-control fc_text_long fc_required fc_location" id="customer_country_name" name="customer_country_name">
<label style="display:none;" class="fc_error" for="customer_country_name">{{ lang.checkout_error_country|raw }}</label>
</li>
<div class="row">
<div class="col-sm-6 form-group">
<li class="fc_customer_first_name">
<!-- <label class="fc_pre" for="customer_first_name">{{ lang.checkout_first_name|raw }}<span class="fc_ast">*</span></label>
--> <input type="text" value="{{ first_name }}" class="form-control fc_text_long fc_required" id="customer_first_name" name="customer_first_name" autocomplete="billing given-name" placeholder="{{ lang.checkout_first_name|raw }}">
<label style="display:none;" class="fc_error" for="customer_first_name">{{ lang.checkout_error_first_name|raw }}</label>
</li>
</div>
<div class="col-sm-6 form-group">
<li class="fc_customer_last_name">
<!-- <label class="fc_pre" for="customer_last_name">{{ lang.checkout_last_name|raw }}<span class="fc_ast">*</span></label>
--> <input type="text" value="{{ last_name }}" class="form-control fc_text_long fc_required" id="customer_last_name" name="customer_last_name" autocomplete="billing family-name" placeholder="{{ lang.checkout_last_name|raw }}">
<label style="display:none;" class="fc_error" for="customer_last_name">{{ lang.checkout_error_last_name|raw }}</label>
</li>
</div>
</div>
<div class="row">
<div class="col-sm-8 form-group">
<li class="fc_customer_address1">
<!-- <label class="fc_pre" for="customer_address1">{{ lang.checkout_address1|raw }}<span class="fc_ast">*</span></label>
--> <input type="text" value="{{ address1 }}" class="form-control fc_text_long fc_required" id="customer_address1" name="customer_address1" autocomplete="billing address-line1" placeholder="{{ lang.checkout_address1|raw }}">
<label style="display:none;" class="fc_error" for="customer_address1">{{ lang.checkout_error_address1|raw }}</label>
</li>
</div>
<div class="col-sm-4 form-group">
<li class="fc_customer_address2">
<!-- <label class="fc_pre" for="customer_address2">{{ lang.checkout_address2|raw }}</label>
--> <input type="text" value="{{ address2 }}" class="form-control fc_text_long" id="customer_address2" name="customer_address2" autocomplete="billing address-line2" placeholder="{{ lang.checkout_address2|raw }}">
</li>
</div>
</div>
<div class="row">
<div class="col-sm-5 form-group">
<li class="fc_customer_city">
<!-- <label class="fc_pre" for="customer_city">{{ lang.checkout_city|raw }}<span class="fc_ast">*</span></label>
--> <input type="text" value="{{ city }}" class="form-control fc_text_long fc_required" id="customer_city" name="customer_city" autocomplete="billing locality" placeholder="{{ lang.checkout_city|raw }}">
<label style="display:none;" class="fc_error" for="customer_city">{{ lang.checkout_error_city|raw }}</label>
</li>
</div>
<div class="col-sm-4 form-group">
<li class="fc_row_select fc_foxycomplete fc_customer_state_name">
<!-- <label class="fc_pre" for="customer_state_name">{{ lang.checkout_state|raw }}<span class="fc_ast">*</span></label>
--> <select class="form-control fc_text_long fc_required" data-default-value="{{ region_name }}" id="customer_state_name" name="customer_state_name">
<option value="" selected="selected">Select a State</option>
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
<option value="CA">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
<option value="DE">Delaware</option>
<option value="DC">District Of Columbia</option>
<option value="FL">Florida</option>
<option value="GA">Georgia</option>
<option value="ID">Idaho</option>
<option value="IL">Illinois</option>
<option value="IN">Indiana</option>
<option value="IA">Iowa</option>
<option value="KS">Kansas</option>
<option value="KY">Kentucky</option>
<option value="LA">Louisiana</option>
<option value="ME">Maine</option>
<option value="MD">Maryland</option>
<option value="MA">Massachusetts</option>
<option value="MI">Michigan</option>
<option value="MN">Minnesota</option>
<option value="MS">Mississippi</option>
<option value="MO">Missouri</option>
<option value="MT">Montana</option>
<option value="NE">Nebraska</option>
<option value="NV">Nevada</option>
<option value="NH">New Hampshire</option>
<option value="NJ">New Jersey</option>
<option value="NM">New Mexico</option>
<option value="NY">New York</option>
<option value="NC">North Carolina</option>
<option value="ND">North Dakota</option>
<option value="OH">Ohio</option>
<option value="OK">Oklahoma</option>
<option value="OR">Oregon</option>
<option value="PA">Pennsylvania</option>
<option value="RI">Rhode Island</option>
<option value="SC">South Carolina</option>
<option value="SD">South Dakota</option>
<option value="TN">Tennessee</option>
<option value="TX">Texas</option>
<option value="UT">Utah</option>
<option value="VT">Vermont</option>
<option value="VA">Virginia</option>
<option value="WA">Washington</option>
<option value="WV">West Virginia</option>
<option value="WI">Wisconsin</option>
<option value="WY">Wyoming</option>
</select>
<label style="display:none;" class="fc_error" for="customer_state_name">{{ lang.checkout_error_state|raw }}</label>
</li>
</div>
<div class="col-sm-3 form-group">
<li class="fc_customer_postal_code">
<!-- <label class="fc_pre" for="customer_postal_code">{{ lang.checkout_postal_code|raw }}<span class="fc_ast">*</span></label>
--> <input type="text" value="{{ postal_code }}" class="form-control fc_text_short fc_required" id="customer_postal_code" name="customer_postal_code" autocomplete="billing postal-code" placeholder="{{ lang.checkout_postal_code|raw }}">
<label style="display:none;" class="fc_error" for="customer_postal_code">{{ lang.checkout_error_postal_code|raw }}</label>
<label style="display:none;" class="fc_error fc_error_invalid_postal_code" for="customer_postal_code">{{ lang.checkout_error_invalid_postal_code|raw }}</label>
</li>
</div>
</div>
</ol>
{% if has_shippable_products and not has_multiship %}
<div class="checkbox fc_row_checkbox" id="fc_use_different_address">
<label class="fc_checkbox" for="use_different_addresses">
<input{% if use_alternate_shipping_address %} checked="checked"{% endif %} type="checkbox" onclick="FC.checkout.displayShippingAddress(this)" class="checkbox" value="1" id="use_different_addresses" name="use_different_addresses">
{{ lang.checkout_use_shipping_address|raw }}
</label>
</div>
{% endif %}
</div><!-- .fc_inner -->
</fieldset><!-- #fc_customer_billing -->
</div>
{% endblock customer_billing %}
{% if not has_multiship %}
{% block customer_shipping %}
<!-- *********** address_shipping : Shipping Address ************* -->
<div style="display: none;" class="form-group" id="fc_address_shipping_container">
<fieldset id="fc_shipping_address">
<legend>{{ lang.checkout_shipping_address|raw }}</legend>
<div class="fc_inner">
<ol id="fc_address_shipping_list">
<li class="row fc_row_select fc_foxycomplete fc_shipping_country_name hide">
<label class="fc_pre" for="shipping_country_name">{{ lang.checkout_country|raw }}<span class="fc_ast">*</span></label>
<select class="form-control fc_text_long fc_required fc_location" data-default-value="{{ country_code }}" id="shipping_country" name="shipping_country">
{{ shipping_country_options|raw }}
</select>
<input value="US" type="text" style="display:none;" class="fc_foxycomplete_input form-control fc_text_long fc_required fc_location" id="shipping_country_name" name="shipping_country_name">
<label style="display:none;" class="fc_error" for="shipping_country_name">{{ lang.checkout_error_country|raw }}</label>
</li>
<div class="row">
<div class="col-sm-6">
<li class="fc_shipping_first_name">
<label class="fc_pre" for="shipping_first_name">{{ lang.checkout_first_name|raw }}<span class="fc_ast">*</span></label>
<input type="text" value="{{ shipping_first_name }}" class="form-control fc_text_long fc_required" id="shipping_first_name" name="shipping_first_name" autocomplete="shipping given-name">
<label style="display:none;" class="fc_error" for="shipping_first_name">{{ lang.checkout_error_first_name|raw }}</label>
</li>
</div>
<div class="col-sm-6">
<li class="fc_shipping_last_name">
<label class="fc_pre" for="shipping_last_name">{{ lang.checkout_last_name|raw }}<span class="fc_ast">*</span></label>
<input type="text" value="{{ shipping_last_name }}" class="form-control fc_text_long fc_required" id="shipping_last_name" name="shipping_last_name" autocomplete="shipping family-name">
<label style="display:none;" class="fc_error" for="shipping_last_name">{{ lang.checkout_error_last_name|raw }}</label>
</li>
</div>
</div>
<div class="row">
<div class="col-sm-8">
<li class="fc_shipping_address1">
<label class="fc_pre" for="shipping_address1">{{ lang.checkout_address1|raw }}<span class="fc_ast">*</span></label>
<input type="text" value="{{ shipping_address1 }}" class="form-control fc_text_long fc_required" id="shipping_address1" name="shipping_address1" autocomplete="shipping address-line1">
<label style="display:none;" class="fc_error" for="shipping_address1">{{ lang.checkout_error_address1|raw }}</label>
</li>
</div>
<div class="col-sm-4">
<li class="fc_shipping_address2">
<label class="fc_pre" for="shipping_address2">{{ lang.checkout_address2|raw }}</label>
<input type="text" value="{{ shipping_address2 }}" class="form-control fc_text_long" id="shipping_address2" name="shipping_address2" autocomplete="shipping address-line2">
</li>
</div>
</div>
<div class="row">
<div class="col-sm-5">
<li class="fc_shipping_city">
<label class="fc_pre" for="shipping_city">{{ lang.checkout_city|raw }}<span class="fc_ast">*</span></label>
<input type="text" value="{{ shipping_city }}" class="form-control fc_text_long fc_required" id="shipping_city" name="shipping_city" autocomplete="shipping locality">
<label style="display:none;" class="fc_error" for="shipping_city">{{ lang.checkout_error_city|raw }}</label>
</li>
</div>
<div class="col-sm-4">
<li class="fc_row_select fc_foxycomplete fc_shipping_state_name">
<label class="fc_pre" for="shipping_state_name">{{ lang.checkout_state|raw }}<span class="fc_ast">*</span></label>
<select class="form-control" data-default-value="{{ shipping_region_name }}" id="shipping_state_name" name="shipping_state_name">
<option value="" selected="selected">Select a State</option>
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
<option value="CA">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
<option value="DE">Delaware</option>
<option value="DC">District Of Columbia</option>
<option value="FL">Florida</option>
<option value="GA">Georgia</option>
<option value="ID">Idaho</option>
<option value="IL">Illinois</option>
<option value="IN">Indiana</option>
<option value="IA">Iowa</option>
<option value="KS">Kansas</option>
<option value="KY">Kentucky</option>
<option value="LA">Louisiana</option>
<option value="ME">Maine</option>
<option value="MD">Maryland</option>
<option value="MA">Massachusetts</option>
<option value="MI">Michigan</option>
<option value="MN">Minnesota</option>
<option value="MS">Mississippi</option>
<option value="MO">Missouri</option>
<option value="MT">Montana</option>
<option value="NE">Nebraska</option>
<option value="NV">Nevada</option>
<option value="NH">New Hampshire</option>
<option value="NJ">New Jersey</option>
<option value="NM">New Mexico</option>
<option value="NY">New York</option>
<option value="NC">North Carolina</option>
<option value="ND">North Dakota</option>
<option value="OH">Ohio</option>
<option value="OK">Oklahoma</option>
<option value="OR">Oregon</option>
<option value="PA">Pennsylvania</option>
<option value="RI">Rhode Island</option>
<option value="SC">South Carolina</option>
<option value="SD">South Dakota</option>
<option value="TN">Tennessee</option>
<option value="TX">Texas</option>
<option value="UT">Utah</option>
<option value="VT">Vermont</option>
<option value="VA">Virginia</option>
<option value="WA">Washington</option>
<option value="WV">West Virginia</option>
<option value="WI">Wisconsin</option>
<option value="WY">Wyoming</option>
</select>
<label style="display:none;" class="fc_error" for="shipping_state_name">{{ lang.checkout_error_state|raw }}</label>
</li>
</div>
<div class="col-sm-3">
<li class="fc_shipping_postal_code">
<label class="fc_pre" for="shipping_postal_code">{{ lang.checkout_postal_code|raw }}<span class="fc_ast">*</span></label>
<input type="text" value="{{ shipping_postal_code }}" class="form-control fc_text_short fc_required" id="shipping_postal_code" name="shipping_postal_code" autocomplete="shipping postal-code">
<label style="display:none;" class="fc_error" for="shipping_postal_code">{{ lang.checkout_error_postal_code|raw }}</label>
<label style="display:none;" class="fc_error fc_error_invalid_postal_code" for="shipping_postal_code">{{ lang.checkout_error_invalid_postal_code|raw }}</label>
</li>
</div>
</div>
</ol>
<div class="row" id="fc_copy_billing_address">
<p><a href='#' onclick='FC.checkout.copyBillingToShipping(); return false;'>{{ lang.checkout_copy_billing_address_to_shipping|raw }}</a></p>
</div>
<span class="fc_clear"> </span>
</div><!-- .fc_inner -->
</fieldset><!-- #fc_address_shipping -->
<span class="fc_clear"> </span>
</div>
{% endblock customer_shipping %}
{% else %}{# If the store has multiship enabled #}
{% block multiship_shipping %}
<!-- *********** fc_shipto_# : Ship To: ************* -->
<div id="fc_address_multiship_container">
{% for multiship in multiship_data %}
<div class="form-group" id="fc_shipto_{{ multiship.number }}_container">
<fieldset id="fc_shipto_{{ multiship.number }}">
<legend>{{ lang.checkout_shipto|raw }} <span class="fc_shipto_name">{{ multiship.address_name }}</span></legend>
<div style="display:none;" class="fc_inner fc_shipto_display" id="fc_shipto_{{ multiship.number }}_display"></div>
<div class="fc_inner fc_shipto_entry" id="fc_shipto_{{ multiship.number }}_entry">
<ol id="fc_shipto_{{ multiship.number }}_list">
<div class="row">
<div class="col-sm-6 form-group">
<li id="li_shipto_{{ multiship.number }}_select" class="row li_shipping_select">
<!-- <label for="shipto_{{ multiship.number }}_select" class="fc_pre">{{ lang.checkout_multiship_use_address|raw }}</label>
--> <select id="shipto_{{ multiship.number }}_select" class="form-control" name="shipto_{{ multiship.number }}_select" onchange="FC.checkout.selectAddress({{ multiship.number }},this)">
<option value="" selected="selected">{{ lang.checkout_multiship_new_address|raw }}</option>
<option value="-1">{{ lang.checkout_multiship_use_billing_address|raw }}</option>
</select>
</li>
</div>
</div>
<li class="row fc_row_select fc_foxycomplete fc_shipto_{{ multiship.number }}_country_name hide">
<label class="fc_pre" for="shipto_{{ multiship.number }}_country_name">{{ lang.checkout_country|raw }}<span class="fc_ast">*</span></label>
<select class="form-control fc_text_long fc_required fc_location" data-default-value="" id="shipto_{{ multiship.number }}_country" name="shipto_{{ multiship.number }}_country">
{{ multiship.country_options|raw }}
</select>
<input value="US" type="text" style="display:none;" class="fc_foxycomplete_input form-control fc_text_long fc_required fc_location" id="shipto_{{ multiship.number }}_country_name" name="shipto_{{ multiship.number }}_country_name">
<label style="display:none;" class="fc_error" for="shipto_{{ multiship.number }}_country_name">{{ lang.checkout_error_country|raw }}</label>
</li>
<div class="row">
<div class="col-sm-6 form-group">
<li class="fc_shipto_{{ multiship.number }}_first_name">
<!-- <label class="fc_pre" for="shipto_{{ multiship.number }}_first_name">{{ lang.checkout_first_name|raw }}<span class="fc_ast">*</span></label>
--> <input type="text" value="{{ multiship.first_name }}" class="form-control fc_text_long fc_required" id="shipto_{{ multiship.number }}_first_name" name="shipto_{{ multiship.number }}_first_name" autocomplete="section-{{ multiship.number }} shipping given-name" placeholder="{{ lang.checkout_first_name|raw }}">
<label style="display:none;" class="fc_error" for="shipto_{{ multiship.number }}_first_name">{{ lang.checkout_error_first_name|raw }}</label>
</li>
</div>
<div class="col-sm-6 form-group">
<li class="fc_shipto_{{ multiship.number }}_last_name">
<!-- <label class="fc_pre" for="shipto_{{ multiship.number }}_last_name">{{ lang.checkout_last_name|raw }}<span class="fc_ast">*</span></label>
--> <input type="text" value="{{ multiship.last_name }}" class="form-control fc_text_long fc_required" id="shipto_{{ multiship.number }}_last_name" name="shipto_{{ multiship.number }}_last_name" autocomplete="section-{{ multiship.number }} shipping family-name" placeholder="{{ lang.checkout_last_name|raw }}">
<label style="display:none;" class="fc_error" for="shipto_{{ multiship.number }}_last_name">{{ lang.checkout_error_last_name|raw }}</label>
</li>
</div>
</div>
<div class="row">
<div class="col-sm-8 form-group">
<li class="fc_shipto_{{ multiship.number }}_address1">
<!-- <label class="fc_pre" for="shipto_{{ multiship.number }}_address1">{{ lang.checkout_address1|raw }}<span class="fc_ast">*</span></label>
--> <input type="text" value="{{ multiship.address1 }}" class="form-control fc_text_long fc_required" id="shipto_{{ multiship.number }}_address1" name="shipto_{{ multiship.number }}_address1" autocomplete="section-{{ multiship.number }} shipping address-line1" placeholder="{{ lang.checkout_address1|raw }}">
<label style="display:none;" class="fc_error" for="shipto_{{ multiship.number }}_address1">{{ lang.checkout_error_address1|raw }}</label>
</li>
</div>
<div class="col-sm-4 form-group">
<li class="fc_shipto_{{ multiship.number }}_address2">
<!-- <label class="fc_pre" for="shipto_{{ multiship.number }}_address2">{{ lang.checkout_address2|raw }}</label>
--> <input type="text" value="{{ multiship.address2 }}" class="form-control fc_text_long" id="shipto_{{ multiship.number }}_address2" name="shipto_{{ multiship.number }}_address2" autocomplete="section-{{ multiship.number }} shipping address-line2" placeholder="{{ lang.checkout_address2|raw }}">
</li>
</div>
</div>
<div class="row">
<div class="col-sm-5 form-group">
<li class="fc_shipto_{{ multiship.number }}_city">
<!-- <label class="fc_pre" for="shipto_{{ multiship.number }}_city">{{ lang.checkout_city|raw }}<span class="fc_ast">*</span></label>
--> <input type="text" value="{{ multiship.city }}" class="form-control fc_text_long fc_required" id="shipto_{{ multiship.number }}_city" name="shipto_{{ multiship.number }}_city" autocomplete="section-{{ multiship.number }} shipping locality" placeholder="{{ lang.checkout_city|raw }}">
<label style="display:none;" class="fc_error" for="shipto_{{ multiship.number }}_city">{{ lang.checkout_error_city|raw }}</label>
</li>
</div>
<div class="col-sm-4 form-group">
<li class="fc_row_select fc_foxycomplete fc_shipto_{{ multiship.number }}_state_name">
<!-- <label class="fc_pre" for="shipto_{{ multiship.number }}_state_name">{{ lang.checkout_state|raw }}<span class="fc_ast">*</span></label>
--> <select class="form-control fc_text_long fc_required" data-default-value="{{ multiship.region_name }}" id="shipto_{{ multiship.number }}_state_name" name="shipto_{{ multiship.number }}_state_name">
<option value="" selected="selected">Select a State</option>
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
<option value="CA">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
<option value="DE">Delaware</option>
<option value="DC">District Of Columbia</option>
<option value="FL">Florida</option>
<option value="GA">Georgia</option>
<option value="ID">Idaho</option>
<option value="IL">Illinois</option>
<option value="IN">Indiana</option>
<option value="IA">Iowa</option>
<option value="KS">Kansas</option>
<option value="KY">Kentucky</option>
<option value="LA">Louisiana</option>
<option value="ME">Maine</option>
<option value="MD">Maryland</option>
<option value="MA">Massachusetts</option>
<option value="MI">Michigan</option>
<option value="MN">Minnesota</option>
<option value="MS">Mississippi</option>
<option value="MO">Missouri</option>
<option value="MT">Montana</option>
<option value="NE">Nebraska</option>
<option value="NV">Nevada</option>
<option value="NH">New Hampshire</option>
<option value="NJ">New Jersey</option>
<option value="NM">New Mexico</option>
<option value="NY">New York</option>
<option value="NC">North Carolina</option>
<option value="ND">North Dakota</option>
<option value="OH">Ohio</option>
<option value="OK">Oklahoma</option>
<option value="OR">Oregon</option>
<option value="PA">Pennsylvania</option>
<option value="RI">Rhode Island</option>
<option value="SC">South Carolina</option>
<option value="SD">South Dakota</option>
<option value="TN">Tennessee</option>
<option value="TX">Texas</option>
<option value="UT">Utah</option>
<option value="VT">Vermont</option>
<option value="VA">Virginia</option>
<option value="WA">Washington</option>
<option value="WV">West Virginia</option>
<option value="WI">Wisconsin</option>
<option value="WY">Wyoming</option>
</select>
<label style="display:none;" class="fc_error" for="shipto_{{ multiship.number }}_state_name">{{ lang.checkout_error_state|raw }}</label>
</li>
</div>
<div class="col-sm-3 form-group">
<li class="fc_shipto_{{ multiship.number }}_postal_code">
<!-- <label class="fc_pre" for="shipto_{{ multiship.number }}_postal_code">{{ lang.checkout_postal_code|raw }}<span class="fc_ast">*</span></label>
--> <input type="text" value="{{ multiship.postal_code }}" class="form-control fc_text_short fc_required" id="shipto_{{ multiship.number }}_postal_code" name="shipto_{{ multiship.number }}_postal_code" autocomplete="section-{{ multiship.number }} shipping postal-code" placeholder="{{ lang.checkout_postal_code|raw }}">
<label style="display:none;" class="fc_error" for="shipto_{{ multiship.number }}_postal_code">{{ lang.checkout_error_postal_code|raw }}</label>
<label style="display:none;" class="fc_error fc_error_invalid_postal_code" for="shipto_{{ multiship.number }}_postal_code">{{ lang.checkout_error_invalid_postal_code|raw }}</label>
</li>
</div>
</div>
</ol>
<ol{% if multiship_data|length == 1 %} style="display:none;"{% endif %} class="fc_shipto_subtotal">
<li class="row fc_shipto_{{ multiship.number }}_subtotal">
<label class="fc_pre" for="shipto_{{ multiship.number }}_subtotal">{{ lang.checkout_shipment_subtotal|raw }}</label>
<span id="shipto_{{ multiship.number }}_subtotal_formatted">{{ multiship.checkout_sub_total|money_format }}</span>
<input type="hidden" value="{{ multiship.checkout_sub_total }}" id="shipto_{{ multiship.number }}_subtotal" name="shipto_{{ multiship.number }}_subtotal" />
</li>
{% if multiship.has_shipping_or_handling_cost %}
<li class="row fc_shipto_{{ multiship.number }}_shipping_total">
<label class="fc_pre" for="shipto_{{ multiship.number }}_shipping_total">{{ multiship.shipping_and_handling_label|raw }}</label>
<span id="shipto_{{ multiship.number }}_shipping_total_formatted">{{ multiship.shipping_total|money_format }}</span>
<input type="hidden" value="{{ multiship.shipping_total }}" class="fc_shipping" id="shipto_{{ multiship.number }}_shipping_total" name="shipto_{{ multiship.number }}_shipping_total" />
</li>
{% else %}
<input type="hidden" name="shipto_{{ multiship.number }}_shipping_total" id="shipto_{{ multiship.number }}_shipping_total" class="fc_shipping" value="0" />
{% endif %}
<li class="row fc_shipto_{{ multiship.number }}_tax_total">
<label class="fc_pre" for="shipto_{{ multiship.number }}_tax_total">{{ lang.checkout_shipment_tax|raw }}</label>
<span id="shipto_{{ multiship.number }}_tax_total_formatted">{{ multiship.checkout_tax_total|money_format }}</span>
<input type="hidden" value="{{ multiship.checkout_tax_total }}" class="fc_taxes" id="shipto_{{ multiship.number }}_tax_total" name="shipto_{{ multiship.number }}_tax_total" />
</li>
<li class="row fc_shipto_{{ multiship.number }}_total">
<label class="fc_pre" for="shipto_{{ multiship.number }}_total">{{ lang.checkout_shipment_total|raw }}</label>
<span id="shipto_{{ multiship.number }}_total_formatted">{{ multiship.total|money_format }}</span>
<input type="hidden" value="{{ multiship.total }}" id="shipto_{{ multiship.number }}_total" name="shipto_{{ multiship.number }}_total">
</li>
</ol>
<legend>Gift Options</legend>
<fieldset class="form-group">
<div class="radio gift-toggle">
<label>
<input type="radio" name="Is_this_a_gift" id="1" value="Nope it is for me" tabindex=400 data-toggle="radio" checked>
<p>This is for me</p>
</label>
</div>
<div class="radio gift-toggle">
<label>
<input type="radio" name="Is_this_a_gift" data-toggle="radio" id="2" value="2">
<p>This is a gift</p>
</label>
</div>
</fieldset>
<div class="fc_inner" id="gift_fields" style="display: none;">
<ol>
<div class="row">
<div class="form-group col-sm-7">
<li>
<input type="text" class="form-control" name="Recipients Email" id="recipients_email" placeholder="Recipients Email">
</li>
</div>
<div class="form-group col-sm-5">
<li>
<select class="form-control" name="Occasion" id="occasion">
<option value="" selected="selected">Select an Occasion</option>
<option value="Birthday">Birthday</option>
<option value="Thank You">Thank You</option>
<option value="Anniversary">Anniversary</option>
<option value="Graduation">Graduation</option>
<option value="Congratulations">Congratulations</option>
<option value="Workplace">Workplace</option>
<option value="Get Well">Get Well</option>
<option value="Good Luck">Good Luck</option>
<option value="Other">Other</option>
</select>
</li>
</div>
</div>
<div class="row">
<div class="form-group col-sm-12">
<li>
<textarea rows="3" placeholder="Message for Recipient" name="Gift Message" id="gift_message" class="col-xs-12 form-control"></textarea>
</li>
</div>
</div>
</ol>
</div>
^^multiship_custom_fields_{{ multiship.number }}^^
{% if multiship.has_live_rate_shippable_products %}
<div class="row fc_shipping_methods_container">
<label for="fc_shipto_{{ multiship.number }}_shipping_methods" class="fc_pre fc_shipping_methods">{{ lang.checkout_shipping_methods|raw }}</label>
<div id="fc_shipto_{{ multiship.number }}_shipping_methods" class="fc_radio_group_container row fc_shipping_methods">
<div id="fc_shipto_{{ multiship.number }}_shipping_result" class="fc_shipping_result">{{ lang.checkout_update_shipping_message|raw }}</div>
<span id="shipto_{{ multiship.number }}_shipping_ajax" class="fc_shipping_ajax" style="display:none">{{ lang.checkout_updating_shipping_options|raw }}<img src="//cdn.foxycart.com/static{{ base_directory }}/images/ajax-loader.gif?ver=1" alt="{{ lang.checkout_loading|raw }}" /></span>
<textarea rows="1" cols="1" name="shipto_{{ multiship.number }}_shipping_options" id="shipto_{{ multiship.number }}_shipping_options" style="display:none;">{{ multiship.shipping_options }}</textarea>
<input type="hidden" name="shipto_{{ multiship.number }}_shipping_service_id" id="shipto_{{ multiship.number }}_shipping_service_id" value="{{ multiship.shipping_service_id }}" />
<input type="hidden" name="shipto_{{ multiship.number }}_shipping_service_description" id="shipto_{{ multiship.number }}_shipping_service_description" value="{{ multiship.shipping_service_description }}" />
<div id="fc_shipto_{{ multiship.number }}_shipping_methods_inner" class="fc_shipping_methods_inner">
{{ multiship.shipping_options_html|raw }}
</div>
<label for="fc_shipto_{{ multiship.number }}_shipping_methods" class="fc_error" style="display:none">{{ lang.checkout_select_shipping_option|raw }}</label>
</div>
</div>
{% else %}
<input type="hidden" name="shipto_{{ multiship.number }}_shipping_service_description" id="shipto_{{ multiship.number }}_shipping_service_description" value="{{ lang.checkout_flat_rate_shipping|raw }}" />
<input type="hidden" name="shipto_{{ multiship.number }}_shipping_service_id" id="shipto_{{ multiship.number }}_shipping_service_id" value="-1" />
{% endif %}
{% if has_downloadables %}
<div class="fc_downloadable_message_container">
<p class="fc_downloadable_message">{{ lang.checkout_downloadables_message|raw }}</p>
</div>
{% endif %}
<span class="fc_clear"> </span>
</div><!-- .fc_inner -->
<div class="fc_shipto_actions">
<a class="fc_shipto_shipto_set" id="fc_shipto_{{ multiship.number }}_shipto_set" href="javascript:;">{{ lang.checkout_confirm_address|raw }}</a>
<a class="fc_shipto_shipto_edit" id="fc_shipto_{{ multiship.number }}_shipto_edit" href="javascript:;">{{ lang.checkout_edit_address|raw }}</a>
</div>
</fieldset><!-- #fc_shipto_{{ multiship.number }} -->
<span class="fc_clear"> </span>
</div>
<input type="hidden" value="{{ multiship.address_name }}" class="fc_shipto_address_name" id="shipto_{{ multiship.number }}_address_name" name="shipto_{{ multiship.number }}_address_name">
{% endfor %}
</div>
{% endblock multiship_shipping %}
{% endif %}{# End the has_multiship check #}
</div><!-- #fc_customer_info_container -->
{# This place holder is here for backward compatibility so that custom fields will be injected into the correct place. #}
^^custom_fields^^
{% block checkout_shipping_and_summary %}
<!-- *********** shipping : Delivery & Subtotal ************* -->
<div id="fc_shipping_container" class="hide"{% if is_updateinfo %} style="display:none;"{% endif %}>
<fieldset id="fc_shipping">
<legend>{{ lang.checkout_delivery_and_subtotal|raw }}</legend>
<div class="fc_inner">
{% if has_live_rate_shippable_products and not has_multiship %}
<div id="fc_shipping_methods_container" class="row fc_shipping_methods_container">
<label for="fc_shipping_methods" class="fc_pre fc_shipping_methods">{{ lang.checkout_shipping_methods|raw }}</label>
<div id="fc_shipping_methods" class="fc_radio_group_container row fc_shipping_methods">
<div id="fc_shipping_result" class="fc_shipping_result">{{ lang.checkout_update_shipping_message|raw }}</div>
<span id="shipping_ajax" class="fc_shipping_ajax" style="display:none">{{ lang.checkout_updating_shipping_options|raw }}<img src="//cdn.foxycart.com/static{{ base_directory }}/images/ajax-loader.gif?ver=1" alt="{{ lang.checkout_loading|raw }}" /></span>
<textarea rows="1" cols="1" name="shipping_options" id="shipping_options" style="display:none;">{{ shipping_options }}</textarea>
<input type="hidden" name="shipping_service_id" id="shipping_service_id" value="{{ shipping_service_id }}" />
<input type="hidden" name="shipping_service_description" id="shipping_service_description" value="{{ shipping_service_description }}" />
<div id="fc_shipping_methods_inner" class="fc_shipping_methods_inner">
{{ shipping_options_html|raw }}
</div>
<label for="fc_shipping_methods" class="fc_error" style="display:none">{{ lang.checkout_select_shipping_option|raw }}</label>
</div>
</div>
{% endif %}
{% if has_downloadables %}
<div class="fc_downloadable_message_container">
<p class="fc_downloadable_message">{{ lang.checkout_downloadables_message|raw }}</p>
</div>
{% endif %}
<ol id="fc_shipping_list">
<li class="row fc_subtotal">
<label for="subtotal" class="fc_pre">{{ lang.checkout_cart_subtotal|raw }}</label>
<span id="subtotal_formatted" class="amount">{{ checkout_subtotal|money_format }}</span>
<input value="{{ checkout_subtotal }}" type="hidden" name="subtotal" id="subtotal" />
</li>
{% if has_future_products %}
<li class="row fc_future_subscriptions">
<label for="future_subscriptions" class="fc_pre">{{ lang.cart_future_subscriptions|raw }}</label>
<span id="future_subscriptions_formatted" class="amount">{{ checkout_future_subscriptions|money_format }}</span>
<input value="{{ checkout_future_subscriptions }}" type="hidden" name="future_subscriptions" id="future_subscriptions" />
</li>
{% endif %}
{% if has_shipping_or_handling_cost %}
<li class="row fc_shipping_cost">
<label for="shipping_cost" class="fc_pre">{{ shipping_and_handling_label|raw }}</label>
<span id="shipping_cost_formatted" class="amount">{{ checkout_shipping_cost|money_format }}</span>
<input value="{{ checkout_shipping_cost }}" type="hidden" name="shipping_cost" id="shipping_cost" />
</li>
{% if has_future_products %}
<li class="row fc_future_shipping_cost"{% if not has_future_shipping_and_handling %} style="display:none;"{% endif %}>
<label for="future_shipping_cost" class="fc_pre">{{ lang.cart_future_subscriptions|raw }} {{ shipping_and_handling_label|raw }}</label>
<span id="future_shipping_cost_formatted" class="amount">{{ checkout_future_shipping_cost|money_format }}</span>
<input value="{{ checkout_future_shipping_cost }}" type="hidden" name="future_shipping_cost" id="future_shipping_cost" />
</li>
{% endif %}
{% endif %}
{% if has_discount %}
<li class="row fc_discount">
<label for="discount" class="fc_pre">{{ lang.checkout_discount|raw }}</label>
<span id="discount_formatted" class="amount">{{ checkout_discount|money_format }}</span>
<input value="{{ checkout_discount }}" type="hidden" name="discount" id="discount" />
</li>
{% endif %}
<li class="row fc_tax">
<label for="tax" class="fc_pre">{{ lang.checkout_tax|raw }}</label>
<span id="tax_formatted" class="amount">{{ checkout_tax|money_format }}</span>
<input value="{{ checkout_tax }}" type="hidden" name="tax" id="tax" />
</li>
<li class="row fc_order_total">
<label for="order_total" class="fc_pre">{{ lang.checkout_order_total|raw }}</label>
<span id="order_total_formatted" class="amount">{{ checkout_order_total|money_format }}</span>
<input value="{{ checkout_order_total }}" type="hidden" name="order_total" id="order_total" />
</li>
</ol>
<span class="fc_clear"> </span>
</div><!-- .fc_inner -->
</fieldset><!-- #fc_shipping -->
<span class="fc_clear"> </span>
</div><!-- #fc_shipping_container -->
{% endblock checkout_shipping_and_summary %}
{% block checkout_payment %}
<!-- *********** payment : Payment Information ************* -->
<div id="fc_payment_container" class="form-group ">
<fieldset id="fc_payment">
<legend>{{ lang.checkout_payment_information|raw }}</legend>
<div class="fc_inner">
<ol id="fc_payment_list">
{% if supports_pay_with_plastic %}
<li id="fc_payment_method_plastic_container" class="row fc_row_payment_method">
<label for="fc_payment_method_plastic" class="fc_radio">
<input type="{{ payment_method_input_type }}"{% if payment_method_type == 'plastic' %} checked="checked"{% endif %} name="fc_payment_method" id="fc_payment_method_plastic" class="fc_radio" value="plastic" autocomplete="off" />
<span>{{ lang.checkout_pay_with_credit_card|raw }}</span>
</label>
<span class="fc_clear"> </span>
<small class="text-center">Your payment is secure with us. We use <a href="http://www.foxycart.com/features/feature/security" target="_blank">Foxycart</a> to ensure that all information is encrypet at all times</small>
{% if has_multiple_payment_options %}
<fieldset>
<ol>
{% else %}
</li>
{% endif %}{# has_multiple_payment_options #}
<li id="li_cc_saved" class="row fc_row_radio">
<label for="c_card_saved" class="fc_radio">
<input{% if cc_card_is_saved %} checked="checked"{% endif %} type="radio" name="c_card" value="saved" id="c_card_saved" class="fc_radio" onclick="FC.checkout.displayNewCC(0)" autocomplete="off" />
<span>{{ lang.checkout_use_saved_payment_info|raw }}</span>
<span id="fc_c_card_saved_number">{{ checkout_cc_number_masked }}</span>
</label>
</li>
<li id="li_cc_new" class="row fc_row_radio">
<label for="c_card_new" class="fc_radio">
<input{% if not cc_card_is_saved %} checked="checked"{% endif %} type="radio" name="c_card" value="new" id="c_card_new" class="fc_radio" onclick="FC.checkout.displayNewCC(1)" autocomplete="off" />
<span>{{ lang.checkout_enter_new_card|raw }}</span>
</label>
</li>
<div class="row">
<div class="col-sm-9 li_shipto_0_select">
<li id="li_cc_number" class="li_cc_number">
<!-- <label for="cc_number" class="fc_pre">{{ lang.checkout_card_number|raw }}</label>
--> <input type="text" name="cc_number" id="cc_number" class="form-control fc_text_long fc_required" autocomplete="off" value="{{ cc_number }}" placeholder="{{ lang.checkout_card_number|raw }}"/>
<label for="cc_number" class="fc_error" style="display:none">{{ lang.checkout_error_card_number|raw }}</label>
</li>
</div>
<div class="col-sm-3 li_shipto_0_select">
<li id="li_cc_cvv2" class="li_cc_cvv2">
<input value="{{ cc_cvv2 }}" type="text" name="cc_cvv2" id="cc_cvv2" autocomplete="off" class="form-control fc_text_short fc_required" maxlength="4" placeholder="{{ lang.checkout_verification_code|raw }}"/>
<label for="cc_cvv2" class="fc_error" style="display:none">{{ lang.checkout_error_verification_code|raw }}</label>
</li>
</div>
<div class="col-sm-3 li_shipto_0_select">
<li id="li_cc_issue_number">
<label for="cc_issue_number" class="fc_pre">
<!-- {{ lang.checkout_issue_number|raw }} -->
</label>
<input value="{{ cc_issue_number }}" type="text" name="cc_issue_number" id="cc_issue_number" class="form-control fc_text_short fc_required" maxlength="2" placeholder="{{ lang.checkout_issue_number|raw }}"/>
<label for="cc_issue_number" class="fc_error" style="display:none">{{ lang.checkout_error_issue_number|raw }}</label>
</li>
</div>
</div>
<div class="row">
<div class="col-sm-4">
<li id="li_cc_start_date_month">
<!-- <label for="cc_start_date_month" class="fc_pre">{{ lang.checkout_start_date|raw }}</label>
--> <select id="cc_start_date_month" name="cc_start_date_month" class="select_mo form-control">
<option value="">{{ lang.cart_month|raw }}</option>
{{ cc_start_date_month_options|raw }}
</select>
<select id="cc_start_date_year" name="cc_start_date_year" class="select_yr form-control">
<option value="">{{ lang.cart_year|raw }}</option>
{{ cc_start_date_year_options|raw }}
</select>
<label for="cc_start_date_month" class="fc_error" style="display:none">{{ lang.checkout_error_start_date|raw }}</label>
</li>
</div>
</div>
<div class="row">
<div class="col-sm-4">
<li id="li_cc_exp_month">
<!-- <label for="cc_exp_month" class="fc_pre">{{ lang.checkout_expiration|raw }}</label>
--> <select id="cc_exp_month" name="cc_exp_month" class="inline select_mo form-control">
<option value="">{{ lang.cart_month|raw }}</option>
{{ cc_expiration_month_options|raw }}
</select>
<select id="cc_exp_year" name="cc_exp_year" class="select_yr form-control">
<option value="">{{ lang.cart_year|raw }}</option>
{{ cc_expiration_year_options|raw }}
</select>
<label for="cc_exp_month" class="fc_error" style="display:none">{{ lang.checkout_error_expiration|raw }}</label>
</li>
</div>
</div>
<div class="row">
<div class="col-sm-12 checkbox">
<li id="li_save_cc" class="row fc_row_checkbox">
<label for="save_cc" class="fc_checkbox">
<input{% if save_cc_is_checked %} checked="checked"{% endif %} type="checkbox" name="save_cc" id="save_cc" value="1"/>
{{ save_cc_text }}
</label>
<label for="save_cc" class="fc_error" style="display:none">{{ lang.checkout_error_subscription_permission|raw }}</label>
<input type="hidden" name="cc_number_masked" id="cc_number_masked" value="{{ checkout_cc_number_masked }}" />
</li>
</div>
</div>
{% if has_multiple_payment_options %}
</ol>
</fieldset>
</li>
{% endif %}{# has_multiple_payment_options #}
{% endif %}{# supports_pay_with_plastic #}
{% if supports_paypal_express and not is_updateinfo %}
<li id="fc_payment_method_paypal_container" class="row fc_row_payment_method">
{% if has_multiple_payment_options %}
<label for="fc_payment_method_paypal" class="fc_radio">
<input type="{{ payment_method_input_type }}"{% if payment_method_type == 'paypal' %} checked="checked"{% endif %} name="fc_payment_method" id="fc_payment_method_paypal" class="fc_radio" value="paypal" autocomplete="off" />
<span>{{ lang.checkout_pay_with_paypal|raw }}</span>
</label>
{% else %}
<input type="hidden" name="fc_payment_method" id="fc_payment_method" value="paypal" />
<span>{{ lang.checkout_pay_with_paypal|raw }}</span>
{% endif %}
<fieldset>
<p>{{ paypal_description|raw }}</p>
</fieldset>
</li>
{% endif %}{# supports_paypal_express and not is_updateinfo #}
{% if not is_updateinfo %}
{% for hosted_gateway in hosted_payment_gateways %}
<li id="fc_payment_method_{{ hosted_gateway.type }}_container" class="row fc_row_payment_method fc_row_hosted_payment_method">
{% if has_multiple_payment_options %}
<label class="fc_radio">
<input type="{{ payment_method_input_type }}"{% if payment_method_type == hosted_gateway.type %} checked="checked"{% endif %} name="fc_payment_method" id="fc_payment_method_{{ hosted_gateway.type }}" class="fc_radio" value="{{ hosted_gateway.type }}" autocomplete="off" />
<span>{{ hosted_gateway.lang_pay_with|raw }}</span>
</label>
{% else %}
<input type="hidden" name="fc_payment_method" id="fc_payment_method_{{ hosted_gateway.type }}" value="{{ hosted_gateway.type }}" />
<span>{{ hosted_gateway.lang_pay_with|raw }}</span>
{% endif %}
<fieldset>
<p>{{ hosted_gateway.lang_payment_method|raw }}</p>
</fieldset>
</li>
{% endfor %}
{% endif %}{# not is_updateinfo #}
{% if supports_purchase_order and not is_updateinfo %}
<li id="fc_payment_method_purchase_order_container" class="row fc_row_payment_method">
<label for="fc_payment_method_purchase_order" class="fc_radio">
<input type="{{ payment_method_input_type }}"{% if payment_method_type == 'purchase_order' %} checked="checked"{% endif %} name="fc_payment_method" id="fc_payment_method_purchase_order" class="fc_radio" value="purchase_order" autocomplete="off" />
<span>{{ lang.checkout_pay_with_purchase_order|raw }}</span>
</label>
{% if has_multiple_payment_options %}
<fieldset>
<ol>
{% else %}
</li>
{% endif %}{# has_multiple_payment_options #}
<li id="li_purchase_order" class="row li_purchase_order">
<label for="purchase_order" class="fc_pre">
{{ lang.checkout_purchase_order_number|raw }}
</label>
<input value="{{ purchase_order }}" type="text" name="purchase_order" id="purchase_order" class="form-control fc_required" />
<label for="purchase_order" class="fc_error" style="display:none">{{ lang.checkout_error_purchase_order|raw }}</label>
</li>
{% if has_multiple_payment_options %}
</ol>
</fieldset>
</li>
{% endif %}{# has_multiple_payment_options #}
{% endif %}{# supports_purchase_order and not is_updateinfo #}
<li id="li_nopayment" class="row">
{# This is used for $0 transactions and other situations where no payment info is collected #}
{{ lang.checkout_no_payment_needed|raw }}
</li>
</ol>
<div id="fc_complete_order_button_container" class="row fc_row_actions center">
<button id="fc_complete_order_button" class="fc_button{{ submit_button_class }} btn btn-primary btn-lg fc_button" type="button" value="{{ submit_button_value }}" onclick="FC.checkout.validateAndSubmit()">{{ submit_button_value }}</button>
<div id="fc_complete_order_processing" style="display:none;"><strong class="fc_error"></strong> <br /><img src="//cdn.foxycart.com/static{{ base_directory }}/images/ajax-loader.gif?ver=1" alt="{{ lang.checkout_loading|raw }}" width="220" height="19" /></div>
</div><!-- #fc_complete_order_button_container -->
<span class="fc_clear"> </span>
</div><!-- .fc_inner -->
</fieldset><!-- #fc_payment -->
<span class="fc_clear"> </span>
</div><!-- #fc_payment_container -->
{% endblock checkout_payment %}
</div>
</div><!-- #fc_data_entry_container -->
{% else %} {# is_subscription_cancel #}