{"id":5513,"date":"2021-06-11T08:20:00","date_gmt":"2021-06-11T08:20:00","guid":{"rendered":"https:\/\/www.magetop.com\/blog\/?p=5513"},"modified":"2021-07-22T13:51:18","modified_gmt":"2021-07-22T13:51:18","slug":"magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart","status":"publish","type":"post","link":"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/","title":{"rendered":"Magento 2 Show Count 0 On Mini Cart When No Product Is In Cart"},"content":{"rendered":"\n<p>In this post, I will guide you on&nbsp;<strong>Magento 2 Show Count 0 On Mini Cart When No Product Is In Cart<\/strong>. Notify customers that they have no products in their shopping cart.<\/p>\n\n\n\n<p>This is considered an effective business campaign without spending a lot of money. When your mini cart shows zero, it means there are no products in the cart, this will motivate customers to add items to the cart.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps To Show Count 0 On Mini Cart When No Product Is In Cart<\/h2>\n\n\n\n<p>Changing the core file is not an optimal solution so we will overwrite the core file with the theme. If you are using any theme please replace it with your theme.<\/p>\n\n\n\n<p>1. Connect to your server via SSH and go to the Magento document root.<\/p>\n\n\n\n<p>2. Override minicart.phtml.<\/p>\n\n\n\n<p><strong>Copy from:<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nvendor\/magento\/module-checkout\/view\/frontend\/templates\/cart\/minicart.phtml\n<\/pre><\/div>\n\n\n<p><strong>Paste to:<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\napp\/design\/frontend\/&lt;Vendor-name&gt;\/&lt;Theme-name&gt;\/Magento_Checkout\/te\u200c\u200bmplates\/cart\/minicar\u200c\u200bt.phtml\n<\/pre><\/div>\n\n\n<p>3. Replace the below code:<\/p>\n\n\n\n<p><strong>Find:<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&lt;span class=&quot;counter-number&quot;&gt;&lt;!-- ko text: getCartParam('summary_count') --&gt;&lt;!-- \/ko --&gt;&lt;\/span&gt;\n<\/pre><\/div>\n\n\n<p><strong>Replace to:<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&lt;!-- ko if: getCartParam(summary_count') --&gt;\n  \n&lt;span class=&quot;counter-number&quot;&gt;&lt;!-- ko text: cart().summary_count --&gt;&lt;!-- \/ko --&gt;&lt;\/span&gt;\n  \n&lt;!-- \/ko --&gt;\n  \n&lt;!-- ko ifnot: getCartParam('summary_count') --&gt;\n  \n&lt;span class=&quot;counter-number&quot;&gt;0&lt;\/span&gt;\n  \n&lt;!-- \/ko --&gt;\n<\/pre><\/div>\n\n\n<p>4. Override CSS file<\/p>\n\n\n\n<p><strong>Copy from:<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nvendor\/magento\/theme-frontend-luma\/Magento_Checkout\/web\/css\/source\/module\/_minicart.less\n<\/pre><\/div>\n\n\n<p><strong>Paste to:<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\napp\/design\/frontend\/&lt;Vendor-name&gt;\/&lt;Theme-name&gt;\/Magento_Checkout\/web\/css\/source\/module\/_minicart.less\n<\/pre><\/div>\n\n\n<p>5. Make changes in CSS file<\/p>\n\n\n\n<p><strong>Find:<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&amp;.empty {\n  \ndisplay: none;\n  \n}\n<\/pre><\/div>\n\n\n<p><strong>Replace to:<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&amp;.empty {\n  \ndisplay: inline-block;\n  \n}\n<\/pre><\/div>\n\n\n<p>Once done, check the results:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"419\" data-attachment-id=\"6264\" data-permalink=\"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/show-count-0-on-mini-cart\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Show-Count-0-On-Mini-Cart.png?fit=1784%2C934&amp;ssl=1\" data-orig-size=\"1784,934\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Show-Count-0-On-Mini-Cart\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Show-Count-0-On-Mini-Cart.png?fit=300%2C157&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Show-Count-0-On-Mini-Cart.png?fit=800%2C419&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Show-Count-0-On-Mini-Cart.png?resize=800%2C419&#038;ssl=1\" alt=\"Show Count 0 On Mini Cart\" class=\"wp-image-6264\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Show-Count-0-On-Mini-Cart.png?w=1784&amp;ssl=1 1784w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Show-Count-0-On-Mini-Cart.png?resize=300%2C157&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Show-Count-0-On-Mini-Cart.png?resize=1024%2C536&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Show-Count-0-On-Mini-Cart.png?resize=768%2C402&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Show-Count-0-On-Mini-Cart.png?resize=1536%2C804&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Show-Count-0-On-Mini-Cart.png?resize=390%2C205&amp;ssl=1 390w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Show-Count-0-On-Mini-Cart.png?w=1600&amp;ssl=1 1600w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>This is the end of the&nbsp;<strong>Magento 2 Show Count 0 On Mini Cart When No Product Is In Cart<\/strong>.<\/p>\n\n\n\n<p>Follow us for the more helpful posts!<\/p>\n\n\n\n<p>We hope this is a useful post for you&nbsp;<strong><a href=\"https:\/\/www.magetop.com\/blog\/upload-product-image-placeholder-in-magento-2\/\" target=\"_blank\" rel=\"noreferrer noopener\">How To Upload Product Image Placeholder In Magento 2<\/a><\/strong>.<\/p>\n\n\n\n<p>Thank you for reading!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post, I will guide you on\u00a0Magento 2 Show Count 0 On Mini Cart When No Product Is In Cart. Notify customers that they have no products in their shopping cart.<\/p>\n","protected":false},"author":106,"featured_media":6265,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[1188,1190,107,1189,1191],"class_list":["post-5513","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento-2-tutorials","tag-magento-2-show-count-0-on-mini-cart","tag-magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart","tag-magento-2-tutorials","tag-show-count-0-on-mini-cart","tag-show-count-0-on-mini-cart-when-no-product-is-in-cart"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Magento 2 Show Count 0 On Mini Cart When No Product Is In Cart<\/title>\n<meta name=\"description\" content=\"In this post, I will guide you on\u00a0Magento 2 Show Count 0 On Mini Cart When No Product Is In Cart. Notify customers that they have no products\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Magento 2 Show Count 0 On Mini Cart When No Product Is In Cart\" \/>\n<meta property=\"og:description\" content=\"In this post, I will guide you on\u00a0Magento 2 Show Count 0 On Mini Cart When No Product Is In Cart. Notify customers that they have no products\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/\" \/>\n<meta property=\"og:site_name\" content=\"Magetop Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/MagetopStore\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-11T08:20:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-22T13:51:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/Magento-2-Show-Count-0-On-Mini-Cart-When-No-Product-Is-In-Cart.png?fit=1048%2C620&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"1048\" \/>\n\t<meta property=\"og:image:height\" content=\"620\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Aaron LX\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@MagetopStore\" \/>\n<meta name=\"twitter:site\" content=\"@MagetopStore\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Aaron LX\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/\"},\"author\":{\"name\":\"Aaron LX\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/b8770690a02cc53a273d6b7205229ff7\"},\"headline\":\"Magento 2 Show Count 0 On Mini Cart When No Product Is In Cart\",\"datePublished\":\"2021-06-11T08:20:00+00:00\",\"dateModified\":\"2021-07-22T13:51:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/\"},\"wordCount\":221,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/Magento-2-Show-Count-0-On-Mini-Cart-When-No-Product-Is-In-Cart.png?fit=1048%2C620&ssl=1\",\"keywords\":[\"Magento 2 Show Count 0 On Mini Cart\",\"Magento 2 Show Count 0 On Mini Cart When No Product Is In Cart\",\"magento 2 tutorials\",\"Show Count 0 On Mini Cart\",\"Show Count 0 On Mini Cart When No Product Is In Cart\"],\"articleSection\":[\"Magento 2 Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/\",\"url\":\"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/\",\"name\":\"Magento 2 Show Count 0 On Mini Cart When No Product Is In Cart\",\"isPartOf\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/Magento-2-Show-Count-0-On-Mini-Cart-When-No-Product-Is-In-Cart.png?fit=1048%2C620&ssl=1\",\"datePublished\":\"2021-06-11T08:20:00+00:00\",\"dateModified\":\"2021-07-22T13:51:18+00:00\",\"description\":\"In this post, I will guide you on\u00a0Magento 2 Show Count 0 On Mini Cart When No Product Is In Cart. Notify customers that they have no products\",\"breadcrumb\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/Magento-2-Show-Count-0-On-Mini-Cart-When-No-Product-Is-In-Cart.png?fit=1048%2C620&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/Magento-2-Show-Count-0-On-Mini-Cart-When-No-Product-Is-In-Cart.png?fit=1048%2C620&ssl=1\",\"width\":1048,\"height\":620,\"caption\":\"Magento 2 Show Count 0 On Mini Cart When No Product Is In Cart\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.magetop.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Magento 2 Show Count 0 On Mini Cart When No Product Is In Cart\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#website\",\"url\":\"https:\/\/www.magetop.com\/blog\/\",\"name\":\"Magetop Blog\",\"description\":\"Exploring Magento Tips, Tricks, and Trends\",\"publisher\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.magetop.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\",\"name\":\"Magetop.com\",\"url\":\"https:\/\/www.magetop.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1\",\"width\":475,\"height\":475,\"caption\":\"Magetop.com\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/MagetopStore\",\"https:\/\/x.com\/MagetopStore\",\"https:\/\/www.linkedin.com\/company\/magetop\",\"https:\/\/www.pinterest.com\/magetop\",\"https:\/\/www.youtube.com\/channel\/UCXoiJsz88OfPmwa8QpUkwOA\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/b8770690a02cc53a273d6b7205229ff7\",\"name\":\"Aaron LX\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/11\/475315059_122137709240563546_260104055231757176_n.jpg?fit=96%2C96&#038;ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/11\/475315059_122137709240563546_260104055231757176_n.jpg?fit=96%2C96&#038;ssl=1\",\"caption\":\"Aaron LX\"},\"description\":\"Aaron is a passionate writer, crazy about shopping, eCommerce and trends. Besides his outstanding research skills and a positive mind, Aaron eagerly shares his experience with the readers.\",\"url\":\"https:\/\/www.magetop.com\/blog\/author\/aaron-lx\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Magento 2 Show Count 0 On Mini Cart When No Product Is In Cart","description":"In this post, I will guide you on\u00a0Magento 2 Show Count 0 On Mini Cart When No Product Is In Cart. Notify customers that they have no products","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/","og_locale":"en_US","og_type":"article","og_title":"Magento 2 Show Count 0 On Mini Cart When No Product Is In Cart","og_description":"In this post, I will guide you on\u00a0Magento 2 Show Count 0 On Mini Cart When No Product Is In Cart. Notify customers that they have no products","og_url":"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/","og_site_name":"Magetop Blog","article_publisher":"https:\/\/www.facebook.com\/MagetopStore","article_published_time":"2021-06-11T08:20:00+00:00","article_modified_time":"2021-07-22T13:51:18+00:00","og_image":[{"width":1048,"height":620,"url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/Magento-2-Show-Count-0-On-Mini-Cart-When-No-Product-Is-In-Cart.png?fit=1048%2C620&ssl=1","type":"image\/png"}],"author":"Aaron LX","twitter_card":"summary_large_image","twitter_creator":"@MagetopStore","twitter_site":"@MagetopStore","twitter_misc":{"Written by":"Aaron LX","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/#article","isPartOf":{"@id":"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/"},"author":{"name":"Aaron LX","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/b8770690a02cc53a273d6b7205229ff7"},"headline":"Magento 2 Show Count 0 On Mini Cart When No Product Is In Cart","datePublished":"2021-06-11T08:20:00+00:00","dateModified":"2021-07-22T13:51:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/"},"wordCount":221,"commentCount":0,"publisher":{"@id":"https:\/\/www.magetop.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/Magento-2-Show-Count-0-On-Mini-Cart-When-No-Product-Is-In-Cart.png?fit=1048%2C620&ssl=1","keywords":["Magento 2 Show Count 0 On Mini Cart","Magento 2 Show Count 0 On Mini Cart When No Product Is In Cart","magento 2 tutorials","Show Count 0 On Mini Cart","Show Count 0 On Mini Cart When No Product Is In Cart"],"articleSection":["Magento 2 Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/","url":"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/","name":"Magento 2 Show Count 0 On Mini Cart When No Product Is In Cart","isPartOf":{"@id":"https:\/\/www.magetop.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/#primaryimage"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/Magento-2-Show-Count-0-On-Mini-Cart-When-No-Product-Is-In-Cart.png?fit=1048%2C620&ssl=1","datePublished":"2021-06-11T08:20:00+00:00","dateModified":"2021-07-22T13:51:18+00:00","description":"In this post, I will guide you on\u00a0Magento 2 Show Count 0 On Mini Cart When No Product Is In Cart. Notify customers that they have no products","breadcrumb":{"@id":"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/#primaryimage","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/Magento-2-Show-Count-0-On-Mini-Cart-When-No-Product-Is-In-Cart.png?fit=1048%2C620&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/Magento-2-Show-Count-0-On-Mini-Cart-When-No-Product-Is-In-Cart.png?fit=1048%2C620&ssl=1","width":1048,"height":620,"caption":"Magento 2 Show Count 0 On Mini Cart When No Product Is In Cart"},{"@type":"BreadcrumbList","@id":"https:\/\/www.magetop.com\/blog\/magento-2-show-count-0-on-mini-cart-when-no-product-is-in-cart\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.magetop.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Magento 2 Show Count 0 On Mini Cart When No Product Is In Cart"}]},{"@type":"WebSite","@id":"https:\/\/www.magetop.com\/blog\/#website","url":"https:\/\/www.magetop.com\/blog\/","name":"Magetop Blog","description":"Exploring Magento Tips, Tricks, and Trends","publisher":{"@id":"https:\/\/www.magetop.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.magetop.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.magetop.com\/blog\/#organization","name":"Magetop.com","url":"https:\/\/www.magetop.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1","width":475,"height":475,"caption":"Magetop.com"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/MagetopStore","https:\/\/x.com\/MagetopStore","https:\/\/www.linkedin.com\/company\/magetop","https:\/\/www.pinterest.com\/magetop","https:\/\/www.youtube.com\/channel\/UCXoiJsz88OfPmwa8QpUkwOA"]},{"@type":"Person","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/b8770690a02cc53a273d6b7205229ff7","name":"Aaron LX","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/11\/475315059_122137709240563546_260104055231757176_n.jpg?fit=96%2C96&#038;ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/11\/475315059_122137709240563546_260104055231757176_n.jpg?fit=96%2C96&#038;ssl=1","caption":"Aaron LX"},"description":"Aaron is a passionate writer, crazy about shopping, eCommerce and trends. Besides his outstanding research skills and a positive mind, Aaron eagerly shares his experience with the readers.","url":"https:\/\/www.magetop.com\/blog\/author\/aaron-lx\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/Magento-2-Show-Count-0-On-Mini-Cart-When-No-Product-Is-In-Cart.png?fit=1048%2C620&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/paOdw5-1qV","jetpack-related-posts":[{"id":5641,"url":"https:\/\/www.magetop.com\/blog\/remove-minicart-in-magento-2\/","url_meta":{"origin":5513,"position":0},"title":"How To Remove Minicart In Magento 2","author":"Aaron LX","date":"May 7, 2021","format":false,"excerpt":"Disable the mini cart from the store\u2019s header bar. In this post, I will guide you on\u00a0How To Remove Minicart In Magento 2.","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How To Remove Minicart In Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Remove-Minicart-In-Magento-2.png?fit=750%2C447&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Remove-Minicart-In-Magento-2.png?fit=750%2C447&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Remove-Minicart-In-Magento-2.png?fit=750%2C447&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Remove-Minicart-In-Magento-2.png?fit=750%2C447&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":8942,"url":"https:\/\/www.magetop.com\/blog\/how-to-get-add-to-cart-button-on-phtml-magento-2\/","url_meta":{"origin":5513,"position":1},"title":"How to get Add to Cart button on phtml Magento 2","author":"Callula Huy","date":"June 6, 2024","format":false,"excerpt":"In this blog post, we will explore the steps to add the \"Add to Cart\" button on a PHTML file in Magento 2.","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How to get Add to Cart button on phtml Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/How-to-get-Add-to-Cart-button-on-phtml-Magento-2.jpg?fit=684%2C360&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/How-to-get-Add-to-Cart-button-on-phtml-Magento-2.jpg?fit=684%2C360&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/How-to-get-Add-to-Cart-button-on-phtml-Magento-2.jpg?fit=684%2C360&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":790,"url":"https:\/\/www.magetop.com\/blog\/top-magento-2-ajax-cart-extensions\/","url_meta":{"origin":5513,"position":2},"title":"Top 10 Magento 2 Ajax Cart Extensions","author":"Adam Roger","date":"December 7, 2019","format":false,"excerpt":"Magento 2 Ajax Cart is an extension allows customers can add products from the shopping page to the cart without reloading the page. With optimized pop-up, information about the product in your cart will be displayed along with related products and you can customize it. This extension will be a\u2026","rel":"","context":"In &quot;Magento News&quot;","block_context":{"text":"Magento News","link":"https:\/\/www.magetop.com\/blog\/magento-news\/"},"img":{"alt_text":"Top 10 Magento 2 Ajax Cart Extensions","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Top-10-Magento-2-Ajax-Cart-Extensions.png?fit=700%2C450&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Top-10-Magento-2-Ajax-Cart-Extensions.png?fit=700%2C450&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Top-10-Magento-2-Ajax-Cart-Extensions.png?fit=700%2C450&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Top-10-Magento-2-Ajax-Cart-Extensions.png?fit=700%2C450&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":5560,"url":"https:\/\/www.magetop.com\/blog\/redirect-to-cart-page-after-adding-product-to-cart-in-magento-2\/","url_meta":{"origin":5513,"position":3},"title":"How To Redirect To Cart Page After Adding Product To Cart In Magento 2","author":"Aaron LX","date":"May 31, 2021","format":false,"excerpt":"In this post, I will guide you on\u00a0How To Redirect To Cart Page After Adding Product To Cart In Magento 2. Drive purchase rates from customers when they add a product to the cart.","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How To Redirect To Cart Page After Adding Product To Cart In Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Redirect-To-Cart-Page-After-Adding-Product-To-Cart-In-Magento-2.png?fit=1200%2C713&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Redirect-To-Cart-Page-After-Adding-Product-To-Cart-In-Magento-2.png?fit=1200%2C713&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Redirect-To-Cart-Page-After-Adding-Product-To-Cart-In-Magento-2.png?fit=1200%2C713&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Redirect-To-Cart-Page-After-Adding-Product-To-Cart-In-Magento-2.png?fit=1200%2C713&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Redirect-To-Cart-Page-After-Adding-Product-To-Cart-In-Magento-2.png?fit=1200%2C713&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":7630,"url":"https:\/\/www.magetop.com\/blog\/cach-an-hoac-xoa-minicart-trong-magento-2\/","url_meta":{"origin":5513,"position":4},"title":"H\u01b0\u1edbng d\u1eabn c\u00e1ch \u1ea9n ho\u1eb7c x\u00f3a Minicart trong Magento 2","author":"Callula Huy","date":"February 8, 2022","format":false,"excerpt":"B\u1ea1n \u0111ang mu\u1ed1n lo\u1ea1i b\u1ecf Minicart xu\u1ea5t hi\u1ec7n tr\u00ean \u0111\u1ea7u trang c\u1eeda h\u00e0ng? V\u1eady th\u00ec h\u00e3y l\u00e0m theo b\u00e0i h\u01b0\u1edbng d\u1eabn c\u00e1ch \u1ea9n ho\u1eb7c x\u00f3a Minicart trong Magento 2 n\u00e0y.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"H\u01b0\u1edbng d\u1eabn c\u00e1ch \u1ea9n ho\u1eb7c x\u00f3a Minicart trong Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2022\/02\/Huong-dan-cach-an-hoac-xoa-Minicart-trong-Magento-2.png?fit=750%2C500&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2022\/02\/Huong-dan-cach-an-hoac-xoa-Minicart-trong-Magento-2.png?fit=750%2C500&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2022\/02\/Huong-dan-cach-an-hoac-xoa-Minicart-trong-Magento-2.png?fit=750%2C500&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2022\/02\/Huong-dan-cach-an-hoac-xoa-Minicart-trong-Magento-2.png?fit=750%2C500&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":6456,"url":"https:\/\/www.magetop.com\/blog\/configure-persistent-shopping-cart-in-magento-2\/","url_meta":{"origin":5513,"position":5},"title":"How To Configure Persistent Shopping Cart In Magento 2","author":"Aaron LX","date":"April 27, 2021","format":false,"excerpt":"In this post, I will guide you on\u00a0How To Configure Persistent Shopping Cart In Magento 2. Save the products in your shopping cart even when exiting with the Persistent Shopping Cart.","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How To Configure Persistent Shopping Cart In Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Configure-Persistent-Shopping-Cart-In-Magento-2.jpg?fit=750%2C445&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Configure-Persistent-Shopping-Cart-In-Magento-2.jpg?fit=750%2C445&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Configure-Persistent-Shopping-Cart-In-Magento-2.jpg?fit=750%2C445&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Configure-Persistent-Shopping-Cart-In-Magento-2.jpg?fit=750%2C445&ssl=1&resize=700%2C400 2x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/5513","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/users\/106"}],"replies":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/comments?post=5513"}],"version-history":[{"count":2,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/5513\/revisions"}],"predecessor-version":[{"id":6266,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/5513\/revisions\/6266"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/media\/6265"}],"wp:attachment":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/media?parent=5513"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/categories?post=5513"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/tags?post=5513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}