<?php echo xt_woocommerce_get_cart_link(); ?> <?php if ($enable_cart_dropdown) { ?> <ul class="woo-cart-dropdown-wrap dropdown animate-drop open-top"> <li> <div class="widget_shopping_cart_content"> <?php woocommerce_get_template('cart/mini-cart.php'); ?> </div> </li> </ul> <?php } ?> </li> <li class="shopping-cart-menu show-for-small-only"> <?php echo xt_woocommerce_get_cart_link(); ?> </li> <?php } ?> <?php }
function xt_woocommerce_header_add_to_cart_fragment($fragments) { $fragments['a.cart-contents'] = xt_woocommerce_get_cart_link(); return $fragments; }