2016-11-23 121 views
0

我是woocommerce的初學者,我已經從電子郵件模板中刪除了數量列,其值爲/themes/mytheme/woocommerce/emails/email-order-details.php &/themes/mytheme/woocommerce/emails/email-order如下面的代碼如何自定義woocommerce產品訂單電子郵件表格?

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

通過-items.php 簡評看起來像

enter image description here

+0

相反評論全線,只是刪除PHP標籤之間的部分。 – RST

回答

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

@Pravin,如果你刪除完整的代碼,如上所示? –

+0

Thnaks ..我的問題已經解決,這是由於下一行的rowspan屬性。 – Pravin

相關問題