- {% include 'foster-checkout/_components/app/steps-completed' with {
+
+
+ {% endblock %}
+
+ {% block mobileFooter %}
+
+ {# {% if cart.lineItems|length > 0 %}
+
+ {% include 'foster-checkout/_components/app/steps-completed' with {
step: 'payment'
} %}
-
-
-{% endblock %}
-
-{% block mobileFooter %}
-
- {# {% if cart.lineItems|length > 0 %}
-
-
-
-
- - {{ '3. Payment'|t('foster-checkout') }} -
- -
-
-
+
-
-
-
+
+ {% set note = craft.checkout.note('payment') %}
+ {% if note %}
+ - {{ 'Billing address'|t('foster-checkout') }} -
- - -
-
-
-
-
+
-
-
-
- {# Address book #}
- {# {% if currentUser and addresses|length %}
-
-
-
-
-
-
- {% endif %} #}
- {# end address book #}
-
-
- {# New billing address #}
-
-
-
-
-
-
-
-
- {% for address in addresses %}
- {% set newAddress = cart.sourceBillingAddressId == address.id %}
-
-
-
- {% endfor %}
-
-
-
-
-
-
-
-
-
-
+ {% endfor %}
+
-
-
-
-
-
+
+
+ {{ note|raw }}
+
+ {% endif %}
+
-
-
- {% endif %} #}
-
- {% js %}
- var $paymentForms = document.querySelectorAll('.paymentForm');
- if ($paymentForms.length) {
- $paymentForms.forEach(($paymentForm) => {
- // Only allow the payment form submit to be triggered once.
- $paymentForm.addEventListener('submit', function(ev) {
- if ($paymentForm.dataset.processing) {
- ev.preventDefault();
- return false;
- }
-
- $paymentForm.dataset.processing = true;
- });
- });
- }
- {% endjs %}
-
-{% endblock %}
+
+
+
+ {% endif %} #}
+
+ {% js %}
+ var $paymentForms = document.querySelectorAll('.paymentForm');
+ if ($paymentForms.length) {
+ $paymentForms.forEach(($paymentForm) => {
+ // Only allow the payment form submit to be triggered once.
+ $paymentForm.addEventListener('submit', function(ev) {
+ if ($paymentForm.dataset.processing) {
+ ev.preventDefault();
+ return false;
+ }
+
+ $paymentForm.dataset.processing = true;
+ });
+ });
+ }
+ {% endjs %}
+
+ {% endblock %}