Skip to content

Commit eb46804

Browse files
author
Sergey Shvets
committed
MAGETWO-81128: Credit Card form is no longer displayed when creating an order in the admin(enabled Braintree only)
1 parent e42b058 commit eb46804

File tree

1 file changed

+20
-19
lines changed
  • app/code/Magento/Sales/view/adminhtml/templates/order/create/billing/method

1 file changed

+20
-19
lines changed

app/code/Magento/Sales/view/adminhtml/templates/order/create/billing/method/form.phtml

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
<div id="order-billing_method_form">
1010
<dl class="admin__payment-methods">
1111
<?php
12-
$_methods = $block->getMethods();
13-
$_methodsCount = count($_methods);
14-
$_counter = 0;
15-
$currentSelectedMethod = $block->getSelectedMethodCode();
12+
$_methods = $block->getMethods();
13+
$_methodsCount = count($_methods);
14+
$_counter = 0;
15+
$currentSelectedMethod = $block->getSelectedMethodCode();
1616
?>
1717
<?php foreach ($_methods as $_method) :
1818
$_code = $_method->getCode();
1919
$_counter++;
20-
?>
20+
?>
2121
<dt class="admin__field-option">
2222
<?php if ($_methodsCount > 1) : ?>
2323
<input id="p_method_<?= $block->escapeHtml($_code); ?>"
@@ -30,22 +30,23 @@
3030
<?php endif; ?>
3131
<?php $className = ($_counter == $_methodsCount) ? ' validate-one-required-by-name' : ''; ?>
3232
class="admin__control-radio<?= $block->escapeHtml($className); ?>"/>
33-
<?php else :?>
33+
<?php else : ?>
3434
<span class="no-display">
35-
<input id="p_method_<?= $block->escapeHtml($_code); ?>"
36-
value="<?= $block->escapeHtml($_code); ?>"
37-
type="radio"
38-
name="payment[method]" class="admin__control-radio"
39-
checked="checked"/>
40-
</span>
41-
<?php endif;?>
35+
<input id="p_method_<?= $block->escapeHtml($_code); ?>"
36+
value="<?= $block->escapeHtml($_code); ?>"
37+
type="radio"
38+
name="payment[method]" class="admin__control-radio"
39+
checked="checked"/>
40+
</span>
41+
<?php endif; ?>
4242

43-
<label class="admin__field-label"for="p_method_<?= $block->escapeHtml($_code); ?>">
43+
<label class="admin__field-label" for="p_method_<?= $block->escapeHtml($_code); ?>">
4444
<?= $block->escapeHtml($_method->getTitle()) ?>
4545
</label>
4646
</dt>
4747
<dd class="admin__payment-method-wrapper">
48-
<?= /* @noEscape */ $block->getChildHtml('payment.method.' . $_code) ?>
48+
<?= /* @noEscape */
49+
$block->getChildHtml('payment.method.' . $_code) ?>
4950
</dd>
5051
<?php endforeach; ?>
5152
</dl>
@@ -54,13 +55,13 @@
5455
require([
5556
'mage/apply/main',
5657
'Magento_Sales/order/create/form'
57-
], function(mage) {
58+
], function (mage) {
5859
mage.apply();
59-
<?php if ($_methodsCount != 1) : ?>
60+
<?php if ($_methodsCount != 1) : ?>
6061
order.setPaymentMethod('<?= $block->escapeHtml($currentSelectedMethod); ?>');
61-
<?php else : ?>
62+
<?php else : ?>
6263
payment.switchMethod('<?= $block->escapeHtml($currentSelectedMethod); ?>');
63-
<?php endif; ?>
64+
<?php endif; ?>
6465
});
6566
</script>
6667
<?php else : ?>

0 commit comments

Comments
 (0)