【发布时间】:2016-11-29 12:46:27
【问题描述】:
我正在尝试在结帐后在订单详细信息中显示所购买商品的总(数量)。
我把代码放在结帐页面上,效果很好:
<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>.
知道我是怎么把这个放在订单细节上的吗?非常感谢。
【问题讨论】:
标签: php wordpress woocommerce orders