1
woocommerce with wordpress .. 나는 장바구니 항목 이름과 장바구니 항목의 비용을 표시 할 수 없습니다. 플러스 워드 프레스 페이지의 총 .. 아무도 나를 도울 수 있습니까? http://docs.woothemes.com/document/hooks/페이지에 woocommerce 장바구니 항목 표시
내가 해봤 코드는 다음과 같습니다 : woocommerce에 대한
후크 현재
<?php
/*
Display number of items in cart and total
*/
global $woocommerce;
echo "Items in cart: ".sprintf(_n('%d item', '%d items', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count);
echo "<br />";
echo "Total: ".$woocommerce->cart->get_cart_total();
?>