Skip to content

Commit 71bb852

Browse files
author
Jan Polak
committed
confirmation popup shows order details
1 parent 526199f commit 71bb852

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

app/code/Magento/OneTouchOrdering/Model/CustomerCreditCardManager.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,8 @@ public function __construct(
6464
public function getCustomerCreditCard($customerId, $cardId)
6565
{
6666
$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.'));
7169
}
7270

7371
return $tokens[$cardId];

app/code/Magento/OneTouchOrdering/view/frontend/web/template/one-touch-order.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<span data-bind="text: buttonText"></span>
77
</button>
88

9-
<!-- ko if: options.addresses().length > 0 -->
9+
<!-- ko if: options.selectAddressAvailable() -->
1010
<div class="field">
1111
<label for="address-selector"><!-- ko i18n: 'Select shipping address' --><!-- /ko -->:</label>
1212
<select name="customer_address" id="address-selector"
@@ -15,7 +15,7 @@
1515
</div>
1616
<!-- /ko -->
1717

18-
<!-- ko if: options.selectAddressAvailable() -->
18+
<!-- ko if: options.cards().length > 0 -->
1919
<div class="field">
2020
<label for="address-selector"><!-- ko i18n: 'Select credit card' --><!-- /ko -->:</label>
2121
<select name="customer_cc" id="cc-selector"

0 commit comments

Comments
 (0)