File tree 3 files changed +5
-5
lines changed
Controller/Adminhtml/Order
view/adminhtml/web/order/create 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -344,7 +344,9 @@ protected function _processActionData($action = null)
344
344
$ this ->messageManager ->addSuccessMessage (__ ('The coupon code has been accepted. ' ));
345
345
}
346
346
}
347
- }
347
+ } else if (isset ($ data ['coupon ' ]['code ' ]) && empty ($ couponCode )) {
348
+ $ this ->messageManager ->addSuccessMessage (__ ('The coupon has been removed. ' ));
349
+ }
348
350
349
351
return $ this ;
350
352
}
Original file line number Diff line number Diff line change @@ -803,3 +803,4 @@ If set YES Email field will be required during Admin order creation for new Cust
803
803
"Could not save the shipment tracking","Could not save the shipment tracking"
804
804
"Please enter a coupon code!","Please enter a coupon code!"
805
805
"Reorder is not available.","Reorder is not available."
806
+ "The coupon code has been removed.","The coupon code has been removed."
Original file line number Diff line number Diff line change @@ -1202,10 +1202,7 @@ define([
1202
1202
for ( var i = 0 ; i < this . loadingAreas . length ; i ++ ) {
1203
1203
var id = this . loadingAreas [ i ] ;
1204
1204
if ( $ ( this . getAreaId ( id ) ) ) {
1205
- if ( 'message' != id && response [ id ] ) {
1206
- $ ( this . getAreaId ( id ) ) . update ( response [ id ] ) ;
1207
- }
1208
- if ( 'message' == id ) {
1205
+ if ( 'message' != id || response [ id ] ) {
1209
1206
$ ( this . getAreaId ( id ) ) . update ( response [ id ] ) ;
1210
1207
}
1211
1208
if ( $ ( this . getAreaId ( id ) ) . callback ) {
You can’t perform that action at this time.
0 commit comments