Skip to content

Commit

Permalink
NTR: fix pr
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Mar 19, 2024
1 parent 77e783b commit 3e289f2
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
margin-top: 15px;
}

.mollie-bancomat-pay{
margin-top:15px;
}

.mollie-pos-terminals {
margin-top: 15px;
}
Expand All @@ -27,6 +31,10 @@
}
}

.mollie-bancomat-pay{
margin-top:15px;
}

.mollie-pos-terminals {
margin-top: 15px;

Expand Down
2 changes: 1 addition & 1 deletion src/Resources/snippet/de_DE/mollie-payments.de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
},
"bancomatPay": {
"headLine": "Telefonnummer",
"phoneErrorMessage": "Die Telefonnummer ist im E.164-Format erforderlich. Zum Beispiel +31208202070"
"phoneErrorMessage": "Die Telefonnummer ist erforderlich. Zum Beispiel +31208202070"
}
},
"messages": {
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/snippet/en_GB/mollie-payments.en-GB.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
},
"bancomatPay": {
"headLine": "Phone number",
"phoneErrorMessage": "Phone Number is required in the E.164 format. For example +31208202070"
"phoneErrorMessage": "Phone Number is required. For example +31208202070"
}
},
"messages": {
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/snippet/nl_NL/mollie-payments.nl-NL.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
},
"bancomatPay": {
"headLine": "Telefoonnummer",
"phoneErrorMessage": "Telefoonnummer is vereist in het E.164-formaat. Bijvoorbeeld +31208202070"
"phoneErrorMessage": "Telefoonnummer is vereist. Bijvoorbeeld +31208202070"
}
},
"messages": {
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/views/storefront/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{% set includeJsInHeader = false %}

{# js always required on this pages #}
{% if currentRoute == 'frontend.checkout.cart.page' or currentRoute == 'frontend.checkout.confirm.page' %}
{% if currentRoute == 'frontend.checkout.cart.page' or currentRoute == 'frontend.checkout.confirm.page' or currentRoute == 'frontend.account.edit-order.page' %}
{% set includeJsInHeader = true %}
{% endif %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
<div class="mollie-bancomat-pay">

<label for="mollieBancomatPayPhone">{{ "molliePayments.components.bancomatPay.headLine"|trans|striptags }}:*</label>

<input id="mollieBancomatPayPhone"
placeholder="+49123456789"
name="mollieBancomatPayPhone" form="confirmOrderForm" type="text" pattern="\+[1-9]\d{1,14}"
class="form-control"
value="{{ page.order.customFields.mollie_payments.bancomatPayPhoneNumber }}"
required="required" {% if page.order.customFields.mollie_payments.bancomatPayPhoneNumber !== null %}readonly="readonly" disabled="disabled"{% endif %} />
value="{{ context.customer.activeBillingAddress.phoneNumber }}"
required="required" />
<small class="form-text js-validation-message invalid-feedback d-none"
data-form-validation-invalid-phone="true" invalid="true">
{{ "molliePayments.components.bancomatPay.phoneErrorMessage"|trans|striptags }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ describe('Bancomat Pay', () => {
scenarioDummyBasket.execute();

paymentAction.switchPaymentMethod('Bancomat Pay');

// payment would only work using currency CHF which cannot be done at the moment
})

})
Expand Down

0 comments on commit 3e289f2

Please sign in to comment.