2018-01-07 04:55:48 +10:00
|
|
|
<div class="col-xl-8 col-xl-offset-2 col-xs-12">
|
2019-06-15 21:23:31 +10:00
|
|
|
<nav aria-label="breadcrumb">
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li class="breadcrumb-item"><a href="/">Home</a></li>
|
|
|
|
<li class="breadcrumb-item active" aria-current="page"><a href="/checkout">Checkout</a></li>
|
2019-11-06 18:31:25 +10:00
|
|
|
<li class="breadcrumb-item active" aria-current="page">{{ @root.__ "Pay now" }}</li>
|
2019-06-15 21:23:31 +10:00
|
|
|
</ol>
|
|
|
|
</nav>
|
2018-01-07 04:55:48 +10:00
|
|
|
<div class="row">
|
|
|
|
{{#if paymentMessage}}
|
|
|
|
<p class="text-danger text-center">{{paymentMessage}}</p>
|
|
|
|
{{/if}}
|
|
|
|
<div class="col-md-5">
|
|
|
|
<div class="panel panel-default" style="margin-top: 30px;">
|
2019-11-06 18:31:25 +10:00
|
|
|
<div class="panel-heading">{{ @root.__ "Customer details" }}</div>
|
2018-01-22 07:20:33 +10:00
|
|
|
{{#unless session.customer}}
|
|
|
|
<div class="panel-body customer-details-login">
|
2019-11-06 18:31:25 +10:00
|
|
|
<p>{{ @root.__ "Existing customer" }}</p>
|
2018-01-22 07:20:33 +10:00
|
|
|
<div class="form-group">
|
|
|
|
<input type="email" class="form-control" id="customerLoginEmail" name="loginEmail" minlength="5" placeholder="Email address" required>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<input type="password" class="form-control" id="customerLoginPassword" name="loginPassword" minlength="5" placeholder="Password" required>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2019-11-06 18:31:25 +10:00
|
|
|
<a href="/customer/forgotten" class="btn btn-default pull-left">{{ @root.__ "Forgotten" }}</a>
|
2018-01-22 07:20:33 +10:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<button id="customerLogin" class="btn btn-success pull-right" type="submit">Login</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/unless}}
|
2018-01-07 04:55:48 +10:00
|
|
|
<div class="panel-body customer-details">
|
2018-01-22 07:20:33 +10:00
|
|
|
{{#if session.customer}}
|
|
|
|
<div class="col-xs-12 col-md-12">
|
2019-11-06 18:31:25 +10:00
|
|
|
<button id="customerLogout" class="btn btn-sm btn-success pull-right">{{ @root.__ "Change customer" }}</button>
|
2018-01-22 07:20:33 +10:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2019-11-06 20:40:27 +10:00
|
|
|
<form id="shipping-form" class="shipping-form" action="/{{config.paymentGateway}}/checkout_action{{@root.paymentType}}" method="post" role="form" data-toggle="validator" novalidate="false">
|
2019-12-19 14:34:48 +10:00
|
|
|
{{> themes/Cloth/shipping-form}}
|
2018-01-22 07:20:33 +10:00
|
|
|
{{#if session.customer}}
|
2018-01-07 04:55:48 +10:00
|
|
|
{{#ifCond config.paymentGateway '==' 'paypal'}}
|
2018-03-31 10:23:09 +10:00
|
|
|
{{> partials/payments/paypal}}
|
2018-01-07 04:55:48 +10:00
|
|
|
{{/ifCond}}
|
2018-01-22 07:20:33 +10:00
|
|
|
{{/if}}
|
|
|
|
{{#unless session.customer}}
|
|
|
|
<div class="col-xs-12 col-md-12">
|
2019-11-06 18:31:25 +10:00
|
|
|
<p class="text-muted">{{ @root.__ "Enter a password to create an account for next time" }}</p>
|
2018-01-22 07:20:33 +10:00
|
|
|
<div class="form-group">
|
|
|
|
<input type="password" class="form-control customerDetails" id="newCustomerPassword" name="newCustomerPassword" placeholder="Password" required>
|
|
|
|
</div>
|
2019-11-06 18:31:25 +10:00
|
|
|
<a id="createCustomerAccount" class="btn btn-success pull-right">{{ @root.__ "Create account" }}</a>
|
2018-01-22 07:20:33 +10:00
|
|
|
</div>
|
|
|
|
{{/unless}}
|
2018-01-07 04:55:48 +10:00
|
|
|
</form>
|
2018-01-22 07:20:33 +10:00
|
|
|
{{#if session.customer}}
|
2018-01-07 04:55:48 +10:00
|
|
|
{{#ifCond config.paymentGateway '==' 'stripe'}}
|
2018-02-12 05:47:26 +10:00
|
|
|
{{> partials/payments/stripe}}
|
2018-01-07 04:55:48 +10:00
|
|
|
{{/ifCond}}
|
2018-02-05 07:39:42 +10:00
|
|
|
{{#ifCond config.paymentGateway '==' 'authorizenet'}}
|
2018-02-12 05:47:26 +10:00
|
|
|
{{> partials/payments/authorizenet}}
|
2018-02-05 07:39:42 +10:00
|
|
|
{{/ifCond}}
|
2019-11-11 17:47:48 +10:00
|
|
|
{{#ifCond config.paymentGateway '==' 'adyen'}}
|
|
|
|
{{> partials/payments/adyen}}
|
|
|
|
{{/ifCond}}
|
2018-01-22 07:20:33 +10:00
|
|
|
{{/if}}
|
2018-01-07 04:55:48 +10:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="cart" class="col-md-7">
|
2018-02-14 06:21:22 +10:00
|
|
|
{{> (getTheme 'cart')}}
|
2018-01-07 04:55:48 +10:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-06 20:40:27 +10:00
|
|
|
</div>
|