jacall.net
前端开发工作者
© JaCall.Net
All Rights Reserved.
皖ICP备13004974号-1

显示购物车

function woocommerce_cart_link() {
    global $woocommerce;
    ?>
    <li class="cart">
    <a href="<?php echo $woocommerce->cart->get_cart_url(); ?>" title="<?php _e('View your shopping cart', 'woothemes'); ?>" class="cart-parent">
    <span>
    <?php
    echo $woocommerce->cart->get_cart_total();
    echo '============<span class="contents">' . sprintf(_n('%d item', '%d items', $woocommerce->cart->get_cart_contents_count(), 'woothemes'), $woocommerce->cart->get_cart_contents_count()) . '</span>';
    ?>
    </span>
    </a>
    </ li>
<?php
}

 

2013-02-17
5,110 views

发表回复