Skip to content

Instantly share code, notes, and snippets.

@SirDarcanos
Created October 27, 2015 10:30
Show Gist options
  • Save SirDarcanos/d1789c1b0a5da2509937 to your computer and use it in GitHub Desktop.
Save SirDarcanos/d1789c1b0a5da2509937 to your computer and use it in GitHub Desktop.
temporary fix upstart cart
/**
* Cart link
*/
function woo_wc_cart_link() {
?>
<a class="cart-contents" href="<?php echo WC()->cart->get_cart_url(); ?>" title="<?php _e('View your shopping cart', 'woothemes'); ?>"><?php echo WC()->cart->get_cart_subtotal(); ?> <span class="count"><?php echo sprintf( _n('%d item', '%d items', WC()->cart->get_cart_contents_count(), 'woothemes' ), WC()->cart->get_cart_contents_count() );?></span></a>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment