Skip to content

Commit

Permalink
Fix problem click label payment method in checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
moneimagento committed Jun 3, 2024
1 parent 8aaa6db commit caab440
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 12 deletions.
2 changes: 1 addition & 1 deletion view/frontend/web/css/bizum.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.payment-method#monei_bizum .payment-method-title label span.monei-payment-icon{
.payment-method#method_monei_bizum .payment-method-title label span.monei-payment-icon{
background: url(../img/bizum.svg) no-repeat;
width: 70px;
}
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/css/card-input.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.payment-method#monei_card .payment-method-title label span.monei-payment-icon{
.payment-method#method_monei_card .payment-method-title label span.monei-payment-icon{
background: url(../img/cards.svg) no-repeat;
width: 220px;
}
Expand Down
6 changes: 3 additions & 3 deletions view/frontend/web/css/google-apple.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
.payment-method#monei_google_pay .payment-method-title label span.monei-payment-icon{
.payment-method#method_monei_google_pay .payment-method-title label span.monei-payment-icon{
background: url(../img/google-pay.svg) no-repeat;
width: 50px;
}
.payment-method#monei_apple_pay .payment-method-title label span.monei-payment-icon{
.payment-method#method_monei_apple_pay .payment-method-title label span.monei-payment-icon{
background: url(../img/apple-pay.svg) no-repeat;
width: 50px;
}
#monei-google-apple-insite-payment-form {
width: 130px;
width: 225px;
}

@media only screen and (max-width: 768px) {
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/css/mbway.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.payment-method#monei_mbway_redirect .payment-method-title label span.monei-payment-icon{
.payment-method#method_monei_mbway_redirect .payment-method-title label span.monei-payment-icon{
background: url(../img/mbway.svg) no-repeat;
width: 45px;
}
2 changes: 1 addition & 1 deletion view/frontend/web/css/multibanco.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.payment-method#monei_multibanco_redirect .payment-method-title label span.monei-payment-icon{
.payment-method#method_monei_multibanco_redirect .payment-method-title label span.monei-payment-icon{
background: url(../img/multibanco.svg) no-repeat;
width: 105px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ define(

getPaymentCode: function () {
if(this.applePaySupported){
return 'monei_apple_pay';
return 'method_monei_apple_pay';
}
return 'monei_google_pay';
return 'method_monei_google_pay';
},

isMethodVisible: function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,9 @@ define(
redirectToFailOrder: function (status) {
window.location.replace(url.build(this.failOrderUrl+'?status='+status));
},

getPaymentCode: function () {
return 'method_'+this.getCode();
},
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@ define(
return false;
}
},

getPaymentCode: function () {
return 'method_'+this.getCode();
},
});
});
2 changes: 1 addition & 1 deletion view/frontend/web/template/payment/monei-bizum-insite.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @copyright Copyright © Monei (https://monei.com)
*/
-->
<div class="payment-method monei-payment-methods" data-bind="attr: {'id': getCode()}, css: {'_active': (getCode() == isChecked())}">
<div class="payment-method monei-payment-methods" data-bind="attr: {'id': getPaymentCode()}, css: {'_active': (getCode() == isChecked())}">
<div class="payment-method-title field choice label custom-control custom-radio">
<input type="radio"
name="payment[method]"
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/template/payment/monei-card-insite.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @copyright Copyright © Monei (https://monei.com)
*/
-->
<div class="payment-method monei-payment-methods" data-bind="attr: {'id': getCode()}, css: {'_active': (getCode() == isChecked())}">
<div class="payment-method monei-payment-methods" data-bind="attr: {'id': getPaymentCode()}, css: {'_active': (getCode() == isChecked())}">
<div class="payment-method-title field choice label custom-control custom-radio">
<input type="radio"
name="payment[method]"
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/template/payment/monei-redirect.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @copyright Copyright © Monei (https://monei.com)
*/
-->
<div class="payment-method monei-payment-methods" data-bind="attr: {'id': getCode()}, css: {'_active': (getCode() == isChecked())}">
<div class="payment-method monei-payment-methods" data-bind="attr: {'id': getPaymentCode()}, css: {'_active': (getCode() == isChecked())}">
<div class="payment-method-title field choice label custom-control custom-radio">
<input type="radio"
name="payment[method]"
Expand Down

0 comments on commit caab440

Please sign in to comment.