We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04c42e8 commit 6a972b9Copy full SHA for 6a972b9
1 file changed
view/frontend/templates/script/components/minicart.phtml
@@ -25,7 +25,7 @@ use Magento\Framework\View\Element\Template;
25
26
const qty = this.$el.querySelector('span.counter.qty');
27
if (qty) {
28
- if (this.cart) {
+ if (this.cart && this.cart.summary_count > 0) {
29
qty.classList.remove('empty');
30
} else {
31
qty.classList.add('empty');
@@ -34,10 +34,10 @@ use Magento\Framework\View\Element\Template;
34
35
const counterNumber = this.$el.querySelector('span.counter-number');
36
if (counterNumber) {
37
38
counterNumber.innerHTML = this.cart.summary_count;
39
40
- counterNumber.innerHTML = 0;
+ counterNumber.innerHTML = '';
41
}
42
43
});
0 commit comments