Skip to content

Instantly share code, notes, and snippets.

@janewang
Created January 21, 2015 20:54
Show Gist options
  • Select an option

  • Save janewang/1cf09a725f5863da48d3 to your computer and use it in GitHub Desktop.

Select an option

Save janewang/1cf09a725f5863da48d3 to your computer and use it in GitHub Desktop.
<?php
header('Cache-Control: private');
header('Pragma: no-cache');
# Activate ESI processing
header('X-Esi: 1');
?>
<div class="right cart-div">
<?php
if( is_woocommerce_activated() ) {
global $woocommerce; ?>
<a class="cart-icon" id="carticoncount" href="/cart/"><?php echo $woocommerce->cart->cart_contents_count; ?></a>
<?php do_action('swell_header_cart_dropdown');
}
?>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment