File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
Controller/Adminhtml/Order
view/adminhtml/templates/order/create/billing/method Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,8 @@ protected function _processActionData($action = null)
280
280
281
281
if ($ paymentData = $ this ->getRequest ()->getPost ('payment ' )) {
282
282
$ this ->_getOrderCreateModel ()->getQuote ()->getPayment ()->addData ($ paymentData );
283
+ } else {
284
+ $ this ->_getOrderCreateModel ()->getQuote ()->getPayment ()->setMethod ('' );
283
285
}
284
286
285
287
$ eventData = [
@@ -293,6 +295,8 @@ protected function _processActionData($action = null)
293
295
294
296
if ($ paymentData = $ this ->getRequest ()->getPost ('payment ' )) {
295
297
$ this ->_getOrderCreateModel ()->getQuote ()->getPayment ()->addData ($ paymentData );
298
+ } else {
299
+ $ this ->_getOrderCreateModel ()->getQuote ()->getPayment ()->setMethod ('' );
296
300
}
297
301
298
302
/**
Original file line number Diff line number Diff line change @@ -92,13 +92,5 @@ script;
92
92
<?= /* @noEscape */
93
93
$ secureRenderer ->renderTag ('script ' , [], $ scriptString , false ) ?>
94
94
<?php else : ?>
95
- <div class="admin__message-empty"><?= $ escaper ->escapeHtml (__ ('No Payment Methods ' )); ?>
96
- <span class="no-display">
97
- <input id="p_method"
98
- value="<?= $ escaper ->escapeHtmlAttr ('' ); ?> "
99
- type="text"
100
- name="payment[method]" class="admin__control-radio"
101
- checked="checked"/>
102
- </span>
103
- </div>
95
+ <div class="admin__message-empty"><?= $ escaper ->escapeHtml (__ ('No Payment Methods ' )); ?> </div>
104
96
<?php endif ; ?>
You can’t perform that action at this time.
0 commit comments