Instantly share code, notes, and snippets.

Embed
What would you like to do?
Make sure cart total is can be updated as items are added live
<a href="<?php echo WC()->cart->get_cart_url(); ?>">
<span class="cart_totals"><?php echo WC()->cart->get_cart_total(); ?></span>
</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment