4
<?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 updates if you refresh the page.
I want the status to be updated, how to make this confirmation without changing page or using F5?
Thanks in advance!
Leonel, Thanks for your comment! Both post are Working Great. The problem is using a Function Outside functions.php.
– b8engl