正如标题所说,我想从customer-processing-order.php中删除发票费用(我认为这是正确的模板) https://github.com/woothemes/woocommerce/blob/master/templates/emails/customer-processing-order.php
据我所知,它来自函数get_order_item_totals()
。
我不能只使用CSS来隐藏它,因为一切都在一个表中。我找到了一个网站,其中有人试图隐藏运费,他在php文件中使用了这个:unset($totals['shipping']);
,看起来非常简单明了。我希望你能写一些类似unset($totals['invoice']);
的内容,但遗憾的是情况并非如此。
有人有任何想法吗?我无法在Woocommerce的任何地方关闭它。
答案 0 :(得分:0)
你有截图显示你想要删除的内容吗?结帐时,我没有任何“发票费”......