【发布时间】:2016-11-23 07:39:56
【问题描述】:
我是 woocommerce 的初学者,我已经从 /themes/mytheme/woocommerce/emails/email-order-details.php 和 /themes/mytheme/woocommerce/emails/email- 的电子邮件模板中删除了 Quantity 列及其值订单items.php 通过简单的注释如下代码
<th class="td" scope="col" style="text-align:left;"><?php _e( 'Product', 'woocommerce' ); ?></th>
<!--<th class="td" scope="col" style="text-align:left;"><?php _e( 'Quantity', 'woocommerce' ); ?></th>-->
<th></th>
<th class="td" scope="col" style="text-align:left;"><?php _e( 'Price', 'woocommerce' ); ?></th>
之后
<tr>
<th class="td" scope="col" style="text-align:left;"><?php _e( 'Product', 'woocommerce' ); ?></th>
<th class="td" scope="col" style="text-align:left;"><?php /*_e( 'Quantity', 'woocommerce' ); */ ?></th>
<th class="td" scope="col" style="text-align:left;"><?php _e( 'Price', 'woocommerce' ); ?></th>
</tr>
看起来像
【问题讨论】:
-
不要注释整行,只需删除 PHP 标记之间的部分。
标签: php email templates woocommerce html-table