File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
app/code/Magento/OneTouchOrdering
view/frontend/web/template Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -64,10 +64,8 @@ public function __construct(
64
64
public function getCustomerCreditCard ($ customerId , $ cardId )
65
65
{
66
66
$ tokens = $ this ->getVisibleAvailableTokens ($ customerId );
67
- if (empty ($ tokens ) || !$ cardId ||!isset ($ tokens [$ cardId ])) {
68
- throw new LocalizedException (
69
- __ ('There are no credit cards available. ' )
70
- );
67
+ if (empty ($ tokens ) || !$ cardId || !isset ($ tokens [$ cardId ])) {
68
+ throw new LocalizedException (__ ('There are no credit cards available. ' ));
71
69
}
72
70
73
71
return $ tokens [$ cardId ];
Original file line number Diff line number Diff line change 6
6
< span data-bind ="text: buttonText "> </ span >
7
7
</ button >
8
8
9
- <!-- ko if: options.addresses().length > 0 -->
9
+ <!-- ko if: options.selectAddressAvailable() -->
10
10
< div class ="field ">
11
11
< label for ="address-selector "> <!-- ko i18n: 'Select shipping address' --> <!-- /ko --> :</ label >
12
12
< select name ="customer_address " id ="address-selector "
15
15
</ div >
16
16
<!-- /ko -->
17
17
18
- <!-- ko if: options.selectAddressAvailable() -->
18
+ <!-- ko if: options.cards().length > 0 -->
19
19
< div class ="field ">
20
20
< label for ="address-selector "> <!-- ko i18n: 'Select credit card' --> <!-- /ko --> :</ label >
21
21
< select name ="customer_cc " id ="cc-selector "
You can’t perform that action at this time.
0 commit comments