Clean loading of Payment partial
parent
a97ab3fdb0
commit
83064c04a1
3
app.js
3
app.js
|
@ -96,6 +96,9 @@ handlebars = handlebars.create({
|
|||
}
|
||||
return total;
|
||||
},
|
||||
partial: (provider) => {
|
||||
return `partials/payments/${provider}`;
|
||||
},
|
||||
perRowClass: (numProducts) => {
|
||||
if(parseInt(numProducts) === 1){
|
||||
return 'col-6 col-md-12 product-item';
|
||||
|
|
|
@ -52,27 +52,7 @@
|
|||
{{/if}}
|
||||
<form id="shipping-form" class="shipping-form" action="/{{config.paymentGateway}}/checkout_action{{@root.paymentType}}" method="post" role="form" data-toggle="validator" novalidate="false">
|
||||
{{#if session.customerPresent}}
|
||||
{{#ifCond config.paymentGateway '==' 'paypal'}}
|
||||
{{> partials/payments/paypal}}
|
||||
{{/ifCond}}
|
||||
{{#ifCond config.paymentGateway '==' 'blockonomics'}}
|
||||
{{> partials/payments/blockonomics}}
|
||||
{{/ifCond}}
|
||||
{{#ifCond config.paymentGateway '==' 'stripe'}}
|
||||
{{> partials/payments/stripe}}
|
||||
{{/ifCond}}
|
||||
{{#ifCond config.paymentGateway '==' 'authorizenet'}}
|
||||
{{> partials/payments/authorizenet}}
|
||||
{{/ifCond}}
|
||||
{{#ifCond config.paymentGateway '==' 'adyen'}}
|
||||
{{> partials/payments/adyen}}
|
||||
{{/ifCond}}
|
||||
{{#ifCond config.paymentGateway '==' 'payway'}}
|
||||
{{> partials/payments/payway}}
|
||||
{{/ifCond}}
|
||||
{{#ifCond config.paymentGateway '==' 'instore'}}
|
||||
{{> partials/payments/instore}}
|
||||
{{/ifCond}}
|
||||
{{> (partial config.paymentGateway) }}
|
||||
{{/if}}
|
||||
</form>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue