forked from WHMCS/orderforms-standard_cart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkout.tpl
742 lines (689 loc) · 45.9 KB
/
checkout.tpl
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
<script>
// Define state tab index value
var statesTab = 10;
// Do not enforce state input client side
var stateNotRequired = true;
</script>
{include file="orderforms/standard_cart/common.tpl"}
<script type="text/javascript" src="{$BASE_PATH_JS}/StatesDropdown.js"></script>
<script type="text/javascript" src="{$BASE_PATH_JS}/PasswordStrength.js"></script>
<script>
window.langPasswordStrength = "{$LANG.pwstrength}";
window.langPasswordWeak = "{$LANG.pwstrengthweak}";
window.langPasswordModerate = "{$LANG.pwstrengthmoderate}";
window.langPasswordStrong = "{$LANG.pwstrengthstrong}";
</script>
<div id="order-standard_cart">
<div class="row">
<div class="cart-sidebar">
{include file="orderforms/standard_cart/sidebar-categories.tpl"}
</div>
<div class="cart-body">
<div class="header-lined">
<h1 class="font-size-36">{$LANG.orderForm.checkout}</h1>
</div>
{include file="orderforms/standard_cart/sidebar-categories-collapsed.tpl"}
<div class="already-registered clearfix">
<div class="pull-right float-right">
<button type="button" class="btn btn-info{if $loggedin || !$loggedin && $custtype eq "existing"} w-hidden{/if}" id="btnAlreadyRegistered">
{$LANG.orderForm.alreadyRegistered}
</button>
<button type="button" class="btn btn-warning{if $loggedin || $custtype neq "existing"} w-hidden{/if}" id="btnNewUserSignup">
{$LANG.orderForm.createAccount}
</button>
</div>
<p>{lang key='orderForm.enterPersonalDetails'}</p>
</div>
{if $errormessage}
<div class="alert alert-danger checkout-error-feedback" role="alert">
<p>{$LANG.orderForm.correctErrors}:</p>
<ul>
{$errormessage}
</ul>
</div>
<div class="clearfix"></div>
{/if}
<form method="post" action="{$smarty.server.PHP_SELF}?a=checkout" name="orderfrm" id="frmCheckout">
<input type="hidden" name="submit" value="true" />
<input type="hidden" name="custtype" id="inputCustType" value="{$custtype}" />
{if $custtype neq "new" && $loggedin}
<div class="sub-heading">
<span class="primary-bg-color">
{lang key='switchAccount.title'}
</span>
</div>
<div id="containerExistingAccountSelect" class="row account-select-container">
{foreach $accounts as $account}
<div class="col-sm-{if $accounts->count() == 1}12{else}6{/if}">
<div class="account{if $selectedAccountId == $account->id} active{/if}">
<label class="radio-inline" for="account{$account->id}">
<input id="account{$account->id}" class="account-select{if $account->isClosed || $account->noPermission || $inExpressCheckout} disabled{/if}" type="radio" name="account_id" value="{$account->id}"{if $account->isClosed || $account->noPermission || $inExpressCheckout} disabled="disabled"{/if}{if $selectedAccountId == $account->id} checked="checked"{/if}>
<span class="address">
<strong>
{if $account->company}{$account->company}{else}{$account->fullName}{/if}
</strong>
{if $account->isClosed || $account->noPermission}
<span class="label label-default">
{if $account->isClosed}
{lang key='closed'}
{else}
{lang key='noPermission'}
{/if}
</span>
{elseif $account->currencyCode}
<span class="label label-info">
{$account->currencyCode}
</span>
{/if}
<br>
<span class="small">
{$account->address1}{if $account->address2}, {$account->address2}{/if}<br>
{if $account->city}{$account->city},{/if}
{if $account->state} {$account->state},{/if}
{if $account->postcode} {$account->postcode},{/if}
{$account->countryName}
</span>
</span>
</label>
</div>
</div>
{/foreach}
<div class="col-sm-12">
<div class="account border-bottom{if !$selectedAccountId || !is_numeric($selectedAccountId)} active{/if}">
<label class="radio-inline">
<input class="account-select" type="radio" name="account_id" value="new"{if !$selectedAccountId || !is_numeric($selectedAccountId)} checked="checked"{/if}{if $inExpressCheckout} disabled="disabled" class="disabled"{/if}>
{lang key='orderForm.createAccount'}
</label>
</div>
</div>
</div>
{/if}
<div id="containerExistingUserSignin"{if $loggedin || $custtype neq "existing"} class="w-hidden{/if}">
<div class="sub-heading">
<span class="primary-bg-color">{$LANG.orderForm.existingCustomerLogin}</span>
</div>
<div class="alert alert-danger w-hidden" id="existingLoginMessage">
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group prepend-icon">
<label for="inputLoginEmail" class="field-icon">
<i class="fas fa-envelope"></i>
</label>
<input type="text" name="loginemail" id="inputLoginEmail" class="field form-control" placeholder="{$LANG.orderForm.emailAddress}" value="{$loginemail}">
</div>
</div>
<div class="col-sm-6">
<div class="form-group prepend-icon">
<label for="inputLoginPassword" class="field-icon">
<i class="fas fa-lock"></i>
</label>
<input type="password" name="loginpassword" id="inputLoginPassword" class="field form-control" placeholder="{$LANG.clientareapassword}">
</div>
</div>
</div>
<div class="text-center">
<button type="button" id="btnExistingLogin" class="btn btn-primary btn-md">
<span id="existingLoginButton">{lang key='login'}</span>
<span id="existingLoginPleaseWait" class="w-hidden">{lang key='pleasewait'}</span>
</button>
</div>
{include file="orderforms/standard_cart/linkedaccounts.tpl" linkContext="checkout-existing"}
</div>
<div id="containerNewUserSignup"{if $custtype === 'existing' || (is_numeric($selectedAccountId) && $selectedAccountId > 0) || ($loggedin && $accounts->count() > 0 && $selectedAccountId !== 'new')} class="w-hidden"{/if}>
<div{if $loggedin} class="w-hidden"{/if}>
{include file="orderforms/standard_cart/linkedaccounts.tpl" linkContext="checkout-new"}
</div>
<div class="sub-heading">
<span class="primary-bg-color">{$LANG.orderForm.personalInformation}</span>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group prepend-icon">
<label for="inputFirstName" class="field-icon">
<i class="fas fa-user"></i>
</label>
<input type="text" name="firstname" id="inputFirstName" class="field form-control" placeholder="{$LANG.orderForm.firstName}" value="{$clientsdetails.firstname}" autofocus>
</div>
</div>
<div class="col-sm-6">
<div class="form-group prepend-icon">
<label for="inputLastName" class="field-icon">
<i class="fas fa-user"></i>
</label>
<input type="text" name="lastname" id="inputLastName" class="field form-control" placeholder="{$LANG.orderForm.lastName}" value="{$clientsdetails.lastname}">
</div>
</div>
<div class="col-sm-6">
<div class="form-group prepend-icon">
<label for="inputEmail" class="field-icon">
<i class="fas fa-envelope"></i>
</label>
<input type="email" name="email" id="inputEmail" class="field form-control" placeholder="{$LANG.orderForm.emailAddress}" value="{$clientsdetails.email}">
</div>
</div>
<div class="col-sm-6">
<div class="form-group prepend-icon">
<label for="inputPhone" class="field-icon">
<i class="fas fa-phone"></i>
</label>
<input type="tel" name="phonenumber" id="inputPhone" class="field form-control" placeholder="{$LANG.orderForm.phoneNumber}" value="{$clientsdetails.phonenumber}">
</div>
</div>
</div>
<div class="sub-heading">
<span class="primary-bg-color">{$LANG.orderForm.billingAddress}</span>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group prepend-icon">
<label for="inputCompanyName" class="field-icon">
<i class="fas fa-building"></i>
</label>
<input type="text" name="companyname" id="inputCompanyName" class="field form-control" placeholder="{$LANG.orderForm.companyName} ({$LANG.orderForm.optional})" value="{$clientsdetails.companyname}">
</div>
</div>
<div class="col-sm-12">
<div class="form-group prepend-icon">
<label for="inputAddress1" class="field-icon">
<i class="far fa-building"></i>
</label>
<input type="text" name="address1" id="inputAddress1" class="field form-control" placeholder="{$LANG.orderForm.streetAddress}" value="{$clientsdetails.address1}">
</div>
</div>
<div class="col-sm-12">
<div class="form-group prepend-icon">
<label for="inputAddress2" class="field-icon">
<i class="fas fa-map-marker-alt"></i>
</label>
<input type="text" name="address2" id="inputAddress2" class="field form-control" placeholder="{$LANG.orderForm.streetAddress2}" value="{$clientsdetails.address2}">
</div>
</div>
<div class="col-sm-4">
<div class="form-group prepend-icon">
<label for="inputCity" class="field-icon">
<i class="far fa-building"></i>
</label>
<input type="text" name="city" id="inputCity" class="field form-control" placeholder="{$LANG.orderForm.city}" value="{$clientsdetails.city}">
</div>
</div>
<div class="col-sm-5">
<div class="form-group prepend-icon">
<label for="state" class="field-icon" id="inputStateIcon">
<i class="fas fa-map-signs"></i>
</label>
<label for="stateinput" class="field-icon" id="inputStateIcon">
<i class="fas fa-map-signs"></i>
</label>
<input type="text" name="state" id="inputState" class="field form-control" placeholder="{$LANG.orderForm.state}" value="{$clientsdetails.state}">
</div>
</div>
<div class="col-sm-3">
<div class="form-group prepend-icon">
<label for="inputPostcode" class="field-icon">
<i class="fas fa-certificate"></i>
</label>
<input type="text" name="postcode" id="inputPostcode" class="field form-control" placeholder="{$LANG.orderForm.postcode}" value="{$clientsdetails.postcode}">
</div>
</div>
<div class="col-sm-12">
<div class="form-group prepend-icon">
<label for="inputCountry" class="field-icon" id="inputCountryIcon">
<i class="fas fa-globe"></i>
</label>
<select name="country" id="inputCountry" class="field form-control">
{foreach $countries as $countrycode => $countrylabel}
<option value="{$countrycode}"{if (!$country && $countrycode == $defaultcountry) || $countrycode eq $country} selected{/if}>
{$countrylabel}
</option>
{/foreach}
</select>
</div>
</div>
{if $showTaxIdField}
<div class="col-sm-12">
<div class="form-group prepend-icon">
<label for="inputTaxId" class="field-icon">
<i class="fas fa-building"></i>
</label>
<input type="text" name="tax_id" id="inputTaxId" class="field form-control" placeholder="{$taxLabel} ({$LANG.orderForm.optional})" value="{$clientsdetails.tax_id}">
</div>
</div>
{/if}
</div>
{if $customfields}
<div class="sub-heading">
<span class="primary-bg-color">{$LANG.orderadditionalrequiredinfo}</span>
</div>
<div class="field-container">
<div class="row">
{foreach $customfields as $customfield}
<div class="col-sm-6">
<div class="form-group">
<label for="customfield{$customfield.id}">{$customfield.name}</label>
{$customfield.input}
{if $customfield.description}
<span class="field-help-text">
{$customfield.description}
</span>
{/if}
</div>
</div>
{/foreach}
</div>
</div>
{/if}
</div>
{if $domainsinorder}
<div class="sub-heading">
<span class="primary-bg-color">{$LANG.domainregistrantinfo}</span>
</div>
<p class="small text-muted">{$LANG.orderForm.domainAlternativeContact}</p>
<div class="row margin-bottom">
<div class="col-sm-6 col-sm-offset-3 offset-sm-3">
<select name="contact" id="inputDomainContact" class="field form-control">
<option value="">{$LANG.usedefaultcontact}</option>
{foreach $domaincontacts as $domcontact}
<option value="{$domcontact.id}"{if $contact == $domcontact.id} selected{/if}>
{$domcontact.name}
</option>
{/foreach}
<option value="addingnew"{if $contact == "addingnew"} selected{/if}>
{$LANG.clientareanavaddcontact}...
</option>
</select>
</div>
</div>
<div{if $contact neq "addingnew"} class="w-hidden"{/if}>
<div class="row" id="domainRegistrantInputFields">
<div class="col-sm-6">
<div class="form-group prepend-icon">
<label for="inputDCFirstName" class="field-icon">
<i class="fas fa-user"></i>
</label>
<input type="text" name="domaincontactfirstname" id="inputDCFirstName" class="field form-control" placeholder="{$LANG.orderForm.firstName}" value="{$domaincontact.firstname}">
</div>
</div>
<div class="col-sm-6">
<div class="form-group prepend-icon">
<label for="inputDCLastName" class="field-icon">
<i class="fas fa-user"></i>
</label>
<input type="text" name="domaincontactlastname" id="inputDCLastName" class="field form-control" placeholder="{$LANG.orderForm.lastName}" value="{$domaincontact.lastname}">
</div>
</div>
<div class="col-sm-6">
<div class="form-group prepend-icon">
<label for="inputDCEmail" class="field-icon">
<i class="fas fa-envelope"></i>
</label>
<input type="email" name="domaincontactemail" id="inputDCEmail" class="field form-control" placeholder="{$LANG.orderForm.emailAddress}" value="{$domaincontact.email}">
</div>
</div>
<div class="col-sm-6">
<div class="form-group prepend-icon">
<label for="inputDCPhone" class="field-icon">
<i class="fas fa-phone"></i>
</label>
<input type="tel" name="domaincontactphonenumber" id="inputDCPhone" class="field form-control" placeholder="{$LANG.orderForm.phoneNumber}" value="{$domaincontact.phonenumber}">
</div>
</div>
<div class="col-sm-12">
<div class="form-group prepend-icon">
<label for="inputDCCompanyName" class="field-icon">
<i class="fas fa-building"></i>
</label>
<input type="text" name="domaincontactcompanyname" id="inputDCCompanyName" class="field form-control" placeholder="{$LANG.orderForm.companyName} ({$LANG.orderForm.optional})" value="{$domaincontact.companyname}">
</div>
</div>
<div class="col-sm-12">
<div class="form-group prepend-icon">
<label for="inputDCAddress1" class="field-icon">
<i class="far fa-building"></i>
</label>
<input type="text" name="domaincontactaddress1" id="inputDCAddress1" class="field form-control" placeholder="{$LANG.orderForm.streetAddress}" value="{$domaincontact.address1}">
</div>
</div>
<div class="col-sm-12">
<div class="form-group prepend-icon">
<label for="inputDCAddress2" class="field-icon">
<i class="fas fa-map-marker-alt"></i>
</label>
<input type="text" name="domaincontactaddress2" id="inputDCAddress2" class="field form-control" placeholder="{$LANG.orderForm.streetAddress2}" value="{$domaincontact.address2}">
</div>
</div>
<div class="col-sm-4">
<div class="form-group prepend-icon">
<label for="inputDCCity" class="field-icon">
<i class="far fa-building"></i>
</label>
<input type="text" name="domaincontactcity" id="inputDCCity" class="field form-control" placeholder="{$LANG.orderForm.city}" value="{$domaincontact.city}">
</div>
</div>
<div class="col-sm-5">
<div class="form-group prepend-icon">
<label for="inputDCState" class="field-icon">
<i class="fas fa-map-signs"></i>
</label>
<input type="text" name="domaincontactstate" id="inputDCState" class="field form-control" placeholder="{$LANG.orderForm.state}" value="{$domaincontact.state}">
</div>
</div>
<div class="col-sm-3">
<div class="form-group prepend-icon">
<label for="inputDCPostcode" class="field-icon">
<i class="fas fa-certificate"></i>
</label>
<input type="text" name="domaincontactpostcode" id="inputDCPostcode" class="field form-control" placeholder="{$LANG.orderForm.postcode}" value="{$domaincontact.postcode}">
</div>
</div>
<div class="col-sm-12">
<div class="form-group prepend-icon">
<label for="inputDCCountry" class="field-icon" id="inputCountryIcon">
<i class="fas fa-globe"></i>
</label>
<select name="domaincontactcountry" id="inputDCCountry" class="field form-control">
{foreach $countries as $countrycode => $countrylabel}
<option value="{$countrycode}"{if (!$domaincontact.country && $countrycode == $defaultcountry) || $countrycode eq $domaincontact.country} selected{/if}>
{$countrylabel}
</option>
{/foreach}
</select>
</div>
</div>
<div class="col-sm-12">
<div class="form-group prepend-icon">
<label for="inputDCTaxId" class="field-icon">
<i class="fas fa-building"></i>
</label>
<input type="text" name="domaincontacttax_id" id="inputDCTaxId" class="field form-control" placeholder="{$taxLabel} ({$LANG.orderForm.optional})" value="{$domaincontact.tax_id}">
</div>
</div>
</div>
</div>
{/if}
{if !$loggedin}
<div id="containerNewUserSecurity"{if (!$loggedin && $custtype eq "existing") || ($remote_auth_prelinked && !$securityquestions)} class="w-hidden"{/if}>
<div class="sub-heading">
<span class="primary-bg-color">{$LANG.orderForm.accountSecurity}</span>
</div>
<div id="containerPassword" class="row{if $remote_auth_prelinked && $securityquestions} w-hidden{/if}">
<div id="passwdFeedback" class="alert alert-info text-center col-sm-12 w-hidden"></div>
<div class="col-sm-6">
<div class="form-group prepend-icon">
<label for="inputNewPassword1" class="field-icon">
<i class="fas fa-lock"></i>
</label>
<input type="password" name="password" id="inputNewPassword1" data-error-threshold="{$pwStrengthErrorThreshold}" data-warning-threshold="{$pwStrengthWarningThreshold}" class="field form-control" placeholder="{$LANG.clientareapassword}"{if $remote_auth_prelinked} value="{$password}"{/if}>
</div>
</div>
<div class="col-sm-6">
<div class="form-group prepend-icon">
<label for="inputNewPassword2" class="field-icon">
<i class="fas fa-lock"></i>
</label>
<input type="password" name="password2" id="inputNewPassword2" class="field form-control" placeholder="{$LANG.clientareaconfirmpassword}"{if $remote_auth_prelinked} value="{$password}"{/if}>
</div>
</div>
<div class="col-sm-6">
<button type="button" class="btn btn-default btn-sm generate-password" data-targetfields="inputNewPassword1,inputNewPassword2">
{$LANG.generatePassword.btnLabel}
</button>
</div>
<div class="col-sm-6">
<div class="password-strength-meter">
<div class="progress">
<div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" id="passwordStrengthMeterBar">
</div>
</div>
<p class="text-center small text-muted" id="passwordStrengthTextLabel">{$LANG.pwstrength}: {$LANG.pwstrengthenter}</p>
</div>
</div>
</div>
{if $securityquestions}
<div class="row">
<div class="col-sm-6">
<select name="securityqid" id="inputSecurityQId" class="field form-control">
<option value="">{$LANG.clientareasecurityquestion}</option>
{foreach $securityquestions as $question}
<option value="{$question.id}"{if $question.id eq $securityqid} selected{/if}>
{$question.question}
</option>
{/foreach}
</select>
</div>
<div class="col-sm-6">
<div class="form-group prepend-icon">
<label for="inputSecurityQAns" class="field-icon">
<i class="fas fa-lock"></i>
</label>
<input type="password" name="securityqans" id="inputSecurityQAns" class="field form-control" placeholder="{$LANG.clientareasecurityanswer}">
</div>
</div>
</div>
{/if}
</div>
{/if}
{foreach $hookOutput as $output}
<div>
{$output}
</div>
{/foreach}
<div class="sub-heading">
<span class="primary-bg-color">{$LANG.orderForm.paymentDetails}</span>
</div>
<div class="alert alert-success text-center large-text" role="alert" id="totalDueToday">
{$LANG.ordertotalduetoday}: <strong id="totalCartPrice">{$total}</strong>
</div>
<div id="applyCreditContainer" class="apply-credit-container{if !$canUseCreditOnCheckout} w-hidden{/if}" data-apply-credit="{$applyCredit}">
<p>{lang key='cart.availableCreditBalance' amount=$creditBalance}</p>
<label class="radio">
<input id="useCreditOnCheckout" type="radio" name="applycredit" value="1"{if $applyCredit} checked{/if}>
<span id="spanFullCredit"{if !($creditBalance->toNumeric() >= $total->toNumeric())} class="w-hidden"{/if}>
{lang key='cart.applyCreditAmountNoFurtherPayment' amount=$total}
</span>
<span id="spanUseCredit"{if $creditBalance->toNumeric() >= $total->toNumeric()} class="w-hidden"{/if}>
{lang key='cart.applyCreditAmount' amount=$creditBalance}
</span>
</label>
<label class="radio">
<input id="skipCreditOnCheckout" type="radio" name="applycredit" value="0"{if !$applyCredit} checked{/if}>
{lang key='cart.applyCreditSkip' amount=$creditBalance}
</label>
</div>
{if !$inExpressCheckout}
<div id="paymentGatewaysContainer" class="form-group">
<p class="small text-muted">{$LANG.orderForm.preferredPaymentMethod}</p>
<div class="text-center">
{foreach $gateways as $gateway}
<label class="radio-inline">
<input type="radio"
name="paymentmethod"
value="{$gateway.sysname}"
data-payment-type="{$gateway.payment_type}"
data-show-local="{$gateway.show_local_cards}"
data-remote-inputs="{$gateway.uses_remote_inputs}"
class="payment-methods{if $gateway.type eq "CC"} is-credit-card{/if}"
{if $selectedgateway eq $gateway.sysname} checked{/if}
/>
{$gateway.name}
</label>
{/foreach}
</div>
</div>
<div class="alert alert-danger text-center gateway-errors w-hidden"></div>
<div class="clearfix"></div>
<div class="cc-input-container{if $selectedgatewaytype neq "CC"} w-hidden{/if}" id="creditCardInputFields">
{if $client}
<div id="existingCardsContainer" class="existing-cc-grid">
{include file="orderforms/standard_cart/includes/existing-paymethods.tpl"}
</div>
{/if}
<div class="row cvv-input" id="existingCardInfo">
<div class="col-lg-3 col-sm-4">
<div class="form-group prepend-icon">
<label for="inputCardCVV2" class="field-icon">
<i class="fas fa-barcode"></i>
</label>
<div class="input-group">
<input type="tel" name="cccvv" id="inputCardCVV2" class="field form-control" placeholder="{$LANG.creditcardcvvnumbershort}" autocomplete="cc-cvc">
<span class="input-group-btn input-group-append">
<button type="button" class="btn btn-default" data-toggle="popover" data-placement="bottom" data-content="<img src='{$BASE_PATH_IMG}/ccv.gif' width='210' />">
?
</button>
</span>
</div>
<span class="field-error-msg">{lang key="paymentMethodsManage.cvcNumberNotValid"}</span>
</div>
</div>
</div>
<ul>
<li>
<label class="radio-inline">
<input type="radio" name="ccinfo" value="new" id="new" {if !$client || $client->payMethods->count() === 0} checked="checked"{/if} />
{lang key='creditcardenternewcard'}
</label>
</li>
</ul>
<div class="row" id="newCardInfo">
<div id="cardNumberContainer" class="col-sm-6 new-card-container">
<div class="form-group prepend-icon">
<label for="inputCardNumber" class="field-icon">
<i class="fas fa-credit-card"></i>
</label>
<input type="tel" name="ccnumber" id="inputCardNumber" class="field form-control cc-number-field" placeholder="{$LANG.orderForm.cardNumber}" autocomplete="cc-number" data-message-unsupported="{lang key='paymentMethodsManage.unsupportedCardType'}" data-message-invalid="{lang key='paymentMethodsManage.cardNumberNotValid'}" data-supported-cards="{$supportedCardTypes}" />
<span class="field-error-msg"></span>
</div>
</div>
<div class="col-sm-3 new-card-container">
<div class="form-group prepend-icon">
<label for="inputCardExpiry" class="field-icon">
<i class="fas fa-calendar-alt"></i>
</label>
<input type="tel" name="ccexpirydate" id="inputCardExpiry" class="field form-control" placeholder="MM / YY{if $showccissuestart} ({$LANG.creditcardcardexpires}){/if}" autocomplete="cc-exp">
<span class="field-error-msg">{lang key="paymentMethodsManage.expiryDateNotValid"}</span>
</div>
</div>
<div class="col-sm-3" id="cvv-field-container">
<div class="form-group prepend-icon">
<label for="inputCardCVV" class="field-icon">
<i class="fas fa-barcode"></i>
</label>
<div class="input-group">
<input type="tel" name="cccvv" id="inputCardCVV" class="field form-control" placeholder="{$LANG.creditcardcvvnumbershort}" autocomplete="cc-cvc">
<span class="input-group-btn input-group-append">
<button type="button" class="btn btn-default" data-toggle="popover" data-placement="bottom" data-content="<img src='{$BASE_PATH_IMG}/ccv.gif' width='210' />">
?
</button>
</span><br>
</div>
<span class="field-error-msg">{lang key="paymentMethodsManage.cvcNumberNotValid"}</span>
</div>
</div>
{if $showccissuestart}
<div class="col-sm-3 col-sm-offset-6 new-card-container offset-sm-6">
<div class="form-group prepend-icon">
<label for="inputCardStart" class="field-icon">
<i class="far fa-calendar-check"></i>
</label>
<input type="tel" name="ccstartdate" id="inputCardStart" class="field form-control" placeholder="MM / YY ({$LANG.creditcardcardstart})" autocomplete="cc-exp">
</div>
</div>
<div class="col-sm-3 new-card-container">
<div class="form-group prepend-icon">
<label for="inputCardIssue" class="field-icon">
<i class="fas fa-asterisk"></i>
</label>
<input type="tel" name="ccissuenum" id="inputCardIssue" class="field form-control" placeholder="{$LANG.creditcardcardissuenum}">
</div>
</div>
{/if}
</div>
<div id="newCardSaveSettings">
<div class="row form-group new-card-container">
<div id="inputDescriptionContainer" class="col-md-6">
<div class="prepend-icon">
<label for="inputDescription" class="field-icon">
<i class="fas fa-pencil"></i>
</label>
<input type="text" class="field form-control" id="inputDescription" name="ccdescription" autocomplete="off" value="" placeholder="{$LANG.paymentMethods.descriptionInput} {$LANG.paymentMethodsManage.optional}" />
</div>
</div>
{if $allowClientsToRemoveCards}
<div id="inputNoStoreContainer" class="col-md-6" style="line-height: 32px;">
<input type="hidden" name="nostore" value="1">
<input type="checkbox" class="toggle-switch-success no-icheck" data-size="mini" checked="checked" name="nostore" id="inputNoStore" value="0" data-on-text="{lang key='yes'}" data-off-text="{lang key='no'}">
<label for="inputNoStore" class="checkbox-inline no-padding">
{$LANG.creditCardStore}
</label>
</div>
{/if}
</div>
</div>
</div>
{else}
{if $expressCheckoutOutput}
{$expressCheckoutOutput}
{else}
<p align="center">
{lang key='paymentPreApproved' gateway=$expressCheckoutGateway}
</p>
{/if}
{/if}
{if $shownotesfield}
<div class="sub-heading">
<span class="primary-bg-color">{$LANG.orderForm.additionalNotes}</span>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<textarea name="notes" class="field form-control" rows="4" placeholder="{$LANG.ordernotesdescription}">{$orderNotes}</textarea>
</div>
</div>
</div>
{/if}
{if $showMarketingEmailOptIn}
<div class="marketing-email-optin">
<h4 class="font-size-18">{lang key='emailMarketing.joinOurMailingList'}</h4>
<p>{$marketingEmailOptInMessage}</p>
<input type="checkbox" name="marketingoptin" value="1"{if $marketingEmailOptIn} checked{/if} class="no-icheck toggle-switch-success" data-size="small" data-on-text="{lang key='yes'}" data-off-text="{lang key='no'}">
</div>
{/if}
<div class="text-center">
{if $accepttos}
<p>
<label class="checkbox-inline">
<input type="checkbox" name="accepttos" id="accepttos" />
{$LANG.ordertosagreement}
<a href="{$tosurl}" target="_blank">{$LANG.ordertos}</a>
</label>
</p>
{/if}
{if $captcha}
<div class="text-center margin-bottom">
{include file="$template/includes/captcha.tpl"}
</div>
{/if}
<button type="submit"
id="btnCompleteOrder"
class="btn btn-primary btn-lg disable-on-click spinner-on-click{if $captcha}{$captcha->getButtonClass($captchaForm)}{/if}"
{if $cartitems==0}disabled="disabled"{/if}
>
{if $inExpressCheckout}{$LANG.confirmAndPay}{else}{$LANG.completeorder}{/if}
<i class="fas fa-arrow-circle-right"></i>
</button>
</div>
</form>
{if $servedOverSsl}
<div class="alert alert-warning checkout-security-msg">
<i class="fas fa-lock"></i>
{$LANG.ordersecure} (<strong>{$ipaddress}</strong>) {$LANG.ordersecure2}
<div class="clearfix"></div>
</div>
{/if}
</div>
</div>
</div>
<script type="text/javascript" src="{$BASE_PATH_JS}/jquery.payment.js"></script>