Commit b5a7c308 authored by Mario's avatar Mario

tpl whitespace

parent 1bad105c
<script src="https://www.paypalobjects.com/api/checkout.js"></script>
<center><h1>INVOICE</h1>
<h4>ORDER: {{$order_hash}}</h4>
</center>
{{include file="../../../view/tpl/basic_cart.tpl"}}
<div class="section-content-wrapper">
{{if !$order.checkedout}}
<div class="clearfix">
<div id="paypal-button" class="float-left mr-2"></div>
<a href="{{$links.checkoutlink}}" class="float-left p-1">Back to Payment Options</a>
</div>
<script>
paypal.Button.render({
env: '{{$paypalenv}}',
payment: function(data, actions) {
return actions.request.post('{{$buttonhook}}_create')
.then(function(res) {
return res.id;
});
},
onAuthorize: function(data, actions) {
return actions.request.post('{{$buttonhook}}_execute', {
paymentID: data.paymentID,
payerID: data.payerID
}).then(function () {window.location = '{{$finishedurl}}';});
}
}, '#paypal-button');
</script>
{{else}}
<h3>This order has been confirmed and is awaiting payment.</h3>
<h4><a href="{{$finishedurl}}">{{$finishedtext}}</a></h4>
{{/if}}
</div>
<div class="section-content-wrapper">
{{if !$order.checkedout}}
<div class="clearfix">
<div id="paypal-button" class="float-left mr-2"></div>
<a href="{{$links.checkoutlink}}" class="float-left p-1">Back to Payment Options</a>
</div>
<script>
paypal.Button.render({
env: '{{$paypalenv}}',
payment: function(data, actions) {
return actions.request.post('{{$buttonhook}}_create')
.then(function(res) {
return res.id;
});
},
onAuthorize: function(data, actions) {
return actions.request.post('{{$buttonhook}}_execute', {
paymentID: data.paymentID,
payerID: data.payerID
}).then(function () {window.location = '{{$finishedurl}}';});
}
}, '#paypal-button');
</script>
{{else}}
<h3>This order has been confirmed and is awaiting payment.</h3>
<h4><a href="{{$finishedurl}}">{{$finishedtext}}</a></h4>
{{/if}}
</div>
</div>
<center><h1>INVOICE</h1>
<h4>ORDER: {{$order_hash}}</h4>
</center>
{{include file="./basic_cart.tpl"}}
<div class="section-content-wrapper">
<div class="center">
<p>Print and send a copy of this invoice along with your check
or money order to:</p>
<p>{{$payopts.mailing_address}}</p>
</div>
{{if !$order.checkedout}}
<form method="post">
<input type=hidden name="cart_posthook" value="manual_checkout_confirm">
<input type=hidden name="orderhash" value="{{$order_hash}}">
<button class="btn btn-primary" type="submit" name="Confirm" id="cart-submit-button" value="Confirm">Confirm Order</button>
<a href="{{$links.checkoutlink}}" class="btn btn-outline-secondary">Back to Payment Options</a>
</form>
{{else}}
<h3>This order has been confirmed and is awaiting payment.</h3>
<h4><a href="{{$finishedurl}}">{{$finishedtext}}</a></h4>
{{/if}}
</div>
<div class="section-content-wrapper">
<div class="center">
<p>Print and send a copy of this invoice along with your check or money order to:</p>
<p>{{$payopts.mailing_address}}</p>
</div>
{{if !$order.checkedout}}
<form method="post">
<input type=hidden name="cart_posthook" value="manual_checkout_confirm">
<input type=hidden name="orderhash" value="{{$order_hash}}">
<button class="btn btn-primary" type="submit" name="Confirm" id="cart-submit-button" value="Confirm">Confirm Order</button>
<a href="{{$links.checkoutlink}}" class="btn btn-outline-secondary">Back to Payment Options</a>
</form>
{{else}}
<h3>This order has been confirmed and is awaiting payment.</h3>
<h4><a href="{{$finishedurl}}">{{$finishedtext}}</a></h4>
{{/if}}
</div>
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment