如何自定义woocommerce产品订单电子邮件表?

时间:2016-11-23 07:39:56

标签: php email templates woocommerce html-table

我是woocommerce的初学者,我已从电子邮件模板/themes/mytheme/woocommerce/emails/email-order-details.php&中删除了数量列。 /themes/mytheme/woocommerce/emails/email-order-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>

enter image description here

之后

<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>

看起来像

enter image description here

1 个答案:

答案 0 :(得分:0)

删除完整的价格html代码和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( 'Price', 'woocommerce' ); ?></th>
相关问题