我試圖在結賬後顯示訂單詳細信息中所購買商品的總數(數量)。Woocommerce - 在訂單詳細信息中顯示訂單總數
我把結帳頁面上的代碼和工作的非常好:
<tr class="cart-subtotal"> <th><?php _e('Product Quantity', 'woocommerce'); ?></th> <td><?php global $woocommerce; ?><?php echo sprintf(_n('%d', '%d', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count);?></td> </tr>.
任何想法,我怎麼把這個訂單的詳細信息?非常感謝。
工作!感謝您的幫助和解釋! –
太棒了,不知道你以前是怎麼做的,但它可以節省很多時間! – Benoti