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)
280280
281281 if ($ paymentData = $ this ->getRequest ()->getPost ('payment ' )) {
282282 $ this ->_getOrderCreateModel ()->getQuote ()->getPayment ()->addData ($ paymentData );
283+ } else {
284+ $ this ->_getOrderCreateModel ()->getQuote ()->getPayment ()->setMethod ('' );
283285 }
284286
285287 $ eventData = [
@@ -293,6 +295,8 @@ protected function _processActionData($action = null)
293295
294296 if ($ paymentData = $ this ->getRequest ()->getPost ('payment ' )) {
295297 $ this ->_getOrderCreateModel ()->getQuote ()->getPayment ()->addData ($ paymentData );
298+ } else {
299+ $ this ->_getOrderCreateModel ()->getQuote ()->getPayment ()->setMethod ('' );
296300 }
297301
298302 /**
Original file line number Diff line number Diff line change @@ -92,13 +92,5 @@ script;
9292 <?= /* @noEscape */
9393 $ secureRenderer ->renderTag ('script ' , [], $ scriptString , false ) ?>
9494<?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>
10496<?php endif ; ?>
You can’t perform that action at this time.
0 commit comments