要判斷客戶需要什麼發票
必須開立之後 從備註內容判斷
列印紙本

雲端發票

含統編發票

捐贈發票

刪除【索取紙本】選項
刪除【索取紙本】選項
編輯外掛 > ECPay Invoice for WooCommerce > woocommerce-ecpayinvoice.php
// 判斷是否啟動模組
if($configInvoice['wc_ecpay_invoice_enabled'] == 'enable') {
$fields['billing']['billing_carruer_type'] = [
'type' => 'select',
'label' => '載具類別',
'required' => false,
'priority' => 200,
'options' => [
'0' => '索取紙本',
'1' => '雲端發票(中獎寄送紙本)',
'2' => '自然人憑證',
'3' => '手機條碼'
]
];
將索取紙本選項刪除即可
刪除【索取紙本】選項2
綠界後來有出一個整合包外掛:ecpay-ecommerce-for-woocommerce
如果要在這邊刪除索取紙本,檔案位置如下
/ecpay-ecommerce-for-woocommerce/includes/services/invoice/class-wooecpay-invoice.php
至於隱藏方式跟上方說明相同