Merge pull request #6490 from Sanjaybhattwebkul/ApplyCoupan-FlashMessage

Enhancement #6417 done
This commit is contained in:
Glenn Hermans 2022-07-19 22:12:47 +02:00 committed by GitHub
commit 8c18184758
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 6 deletions

View File

@ -78,9 +78,11 @@
this.applied_coupon = this.coupon_code;
this.coupon_code = '';
window.flashMessages = [{'type': 'alert-success', 'message': response.data.message}];
this.$root.addFlashMessages();
window.showAlert(
'alert-success',
response.data.label,
response.data.message
);
this.redirectIfCartPage();
} else {
@ -107,9 +109,11 @@
self.disable_button = false;
window.flashMessages = [{'type': 'alert-success', 'message': response.data.message}];
self.$root.addFlashMessages();
window.showAlert(
'alert-success',
response.data.label,
response.data.message
);
self.redirectIfCartPage();
})