diff --git a/packages/Webkul/Velocity/src/Resources/views/shop/guest/compare/compare-products.blade.php b/packages/Webkul/Velocity/src/Resources/views/shop/guest/compare/compare-products.blade.php index 8606a0b0b..9b0a89f72 100644 --- a/packages/Webkul/Velocity/src/Resources/views/shop/guest/compare/compare-products.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/shop/guest/compare/compare-products.blade.php @@ -209,18 +209,24 @@ if (productId == "all") { updatedItems = []; this.$set(this, 'products', []); + + window.showAlert( + `alert-success`, + this.__('shop.general.alert.success'), + `${this.__('customer.compare.removed-all')}` + ); } else { updatedItems = existingItems.filter(item => item != productId); this.$set(this, 'products', this.products.filter(product => product.id != productId)); + + window.showAlert( + `alert-success`, + this.__('shop.general.alert.success'), + `${this.__('customer.compare.removed')}` + ); } this.setStorageValue('compared_product', updatedItems); - - window.showAlert( - `alert-success`, - this.__('shop.general.alert.success'), - `${this.__('customer.compare.removed')}` - ); } this.$root.headerItemsCount++;