How to hide shopping cart sidebar when it is empty

Last modified by holylander on Wed, September 5, 2012 17:08
Show Page|Old Revisions  

This shows you the differences between the selected revision and the current version of the page.

4_-_themes_and_template_customization:page_templates:how_to_hide_shopping_cart_sidebar_when_it_is_empty 2011/10/07 04:22 4_-_themes_and_template_customization:page_templates:how_to_hide_shopping_cart_sidebar_when_it_is_empty 2012/09/05 17:08 current
Line 7: Line 7:
2. Go to line 32 Look for <code><div class="box base-mini mini-cart"></code> 2. Go to line 32 Look for <code><div class="box base-mini mini-cart"></code>
-3. Add these lines right before that opening div tag <code><?php $_cartQty1 = $this->getSummaryCount() ?> +3. Add these lines right before that opening div tag <code><?php $_cartQty = $this->getSummaryCount() ?> 
-<?php if ($_cartQty1 >0): ?></code>+<?php if ($_cartQty >0): ?></code>
4.Add this line to the bottom of the file <code><?php endif ?></code> 4.Add this line to the bottom of the file <code><?php endif ?></code>



 

Magento 2 GitHub Repository

Magento Job Board - Some sort of tag line goes here

Latest Posts| View all Jobs