diff --git a/public/themes/Cloth/pay.hbs b/public/themes/Cloth/pay.hbs index 28eddae..ab4e5b3 100644 --- a/public/themes/Cloth/pay.hbs +++ b/public/themes/Cloth/pay.hbs @@ -30,56 +30,10 @@ {{/if}}
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
+ {{> payments/shipping-form}} {{#if session.customer}} {{#ifCond config.paymentGateway '==' 'paypal'}} -
- -
+ {{> payments/paypal}} {{/ifCond}} {{/if}} {{#unless session.customer}} @@ -94,30 +48,9 @@
{{#if session.customer}} {{#ifCond config.paymentGateway '==' 'stripe'}} -
-
- - -
-
+ {{> payments/stripe}} {{/ifCond}} {{/if}} - diff --git a/views/partials/payments/paypal.hbs b/views/partials/payments/paypal.hbs new file mode 100644 index 0000000..7904340 --- /dev/null +++ b/views/partials/payments/paypal.hbs @@ -0,0 +1,3 @@ +
+ +
\ No newline at end of file diff --git a/views/partials/payments/shipping-form.hbs b/views/partials/payments/shipping-form.hbs new file mode 100644 index 0000000..d841c71 --- /dev/null +++ b/views/partials/payments/shipping-form.hbs @@ -0,0 +1,45 @@ +
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
\ No newline at end of file diff --git a/views/partials/payments/stripe.hbs b/views/partials/payments/stripe.hbs new file mode 100644 index 0000000..f64a6c2 --- /dev/null +++ b/views/partials/payments/stripe.hbs @@ -0,0 +1,21 @@ +
+
+ + +
+
\ No newline at end of file diff --git a/views/pay.hbs b/views/pay.hbs index aedcdb1..ab4e5b3 100644 --- a/views/pay.hbs +++ b/views/pay.hbs @@ -30,56 +30,10 @@ {{/if}}
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
+ {{> payments/shipping-form}} {{#if session.customer}} {{#ifCond config.paymentGateway '==' 'paypal'}} -
- -
+ {{> payments/paypal}} {{/ifCond}} {{/if}} {{#unless session.customer}} @@ -94,27 +48,7 @@
{{#if session.customer}} {{#ifCond config.paymentGateway '==' 'stripe'}} -
-
- - -
-
+ {{> payments/stripe}} {{/ifCond}} {{/if}}