I want to add a handling fee for EAN Payments
As EAN Payments require manual handling, you may wish to add a fee to the order.
To do so add the following code to you functions.php file in the active theme.
You’ll have to change the following:
The text EAN Handling Fee in line 6, to the desired text for the handling fee
$fee_title = __(‘EAN Handling Fee‘, ‘woocommerce-ean-payment-gateway’);
The number 50 in line 7, to the desired value for the handling fee
$ean_handling_fee = 50;
I want to add / remove VAT for the handling fee
To add VAT to the handling fee, change line 25 to
WC()->cart->add_fee( $fee_title, $ean_handling_fee, true, $fee_tax_class );
To remove VAT from the handling fee, change line 25 to
WC()->cart->add_fee( $fee_title, $ean_handling_fee, false, $fee_tax_class );