Skip to content

Instantly share code, notes, and snippets.

@galengidman
Created May 9, 2014 22:26
Show Gist options
  • Select an option

  • Save galengidman/0ae92145b784f1d5ab40 to your computer and use it in GitHub Desktop.

Select an option

Save galengidman/0ae92145b784f1d5ab40 to your computer and use it in GitHub Desktop.
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