Skip to content

Commit 2a9247f

Browse files
authored
ENGCOM-5355: [Backport] Fixed #23238 Apply button act like remove button while create new order from admin #23332
2 parents bbfc599 + 7efe86b commit 2a9247f

File tree

1 file changed

+2
-0
lines changed
  • app/code/Magento/Sales/view/adminhtml/templates/order/create/coupons

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
<div class="admin__field field-apply-coupon-code">
1111
<label class="admin__field-label"><span><?= $block->escapeHtml(__('Apply Coupon Code')) ?></span></label>
1212
<div class="admin__field-control">
13+
<?php if (!$block->getCouponCode()) : ?>
1314
<input type="text" class="admin__control-text" id="coupons:code" value="" name="coupon_code" />
1415
<?= $block->getButtonHtml(__('Apply'), 'order.applyCoupon($F(\'coupons:code\'))') ?>
16+
<?php endif; ?>
1517
<?php if ($block->getCouponCode()) : ?>
1618
<p class="added-coupon-code">
1719
<span><?= $block->escapeHtml($block->getCouponCode()) ?></span>

0 commit comments

Comments
 (0)