<?php global $woocommerce;
if ( sizeof( WC()->cart->get_cart() ) < 1 ) { ?>
<div style="width: 25%;" class="footer-section <?php echo esc_html($woo);?>">
<a href="<?php echo get_home_url();?>" title="Main"><i class="fa fa-home"></i></a>
</div>
<?php } else { ?>
<div style="width: 20%;" class="footer-section <?php echo esc_html($woo);?>">
<a href="<?php echo get_home_url();?>" title="Main"><i class="fa fa-home"></i></a>
</div>
<?php } ?>
Cart status only refreshes if you refresh the page. Do I want the status to be updated, how can I make this confirmation without changing pages or using F5?
Thanks in advance!