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