@asofantzis Are you going to update this plugin? Or is this gone for good?
Please guide.
Thanks
]]>Mr. Andreas, I have two practical suggestions, request that you could implement.
The local carriers that collect COD payments upon delivery limit how much they can collect.
However not all buyers understand this, therefore sometimes we get questions like why the COD option is not available, and why can’t I pay to the delivery driver. Removing the COD option from the checkout page completely without any notice is not a good idea.
1.
Could you make the error message to be shown below the COD payment option description on the checkout page and let us write our own custom error message?
I prefer to inform users with this message “Delivery driver can collect up to 2000 Eur. Please select another payment option.”
This error message can be shown either
– immediately on checkout page if the total value exceeds a certain amount
– or after the buyer presses the “place order” button
Sample illustration of where this message should be sown:
https://imgur.com/LW1ncgj
2.
Could you give us the option to write a “Fee title” description?
Sample illustration:
https://imgur.com/qlOwdFI
Thank you
]]>There is an error that does not allow to set
Add percentage of cart’s subtotal as COD Fee
and
Different fees per shipping method?
at once. When enable both, there is just only one input field shown.
I hope that it is just small bug, because I need to set fix fee plus some percentage fee at once.
Thanks
Martin
]]>Hello Andreas,
Thanks for your work on the plugin – it’s been really useful.
I have a quick suggestion related to the ‘fee_title’. Right now, when I customize it in the admin area, the change is consistent across all languages. I see that the default “COD Fee” can be localized, which is neat. My goal is to tweak this English default while keeping the option to localize it. Any thoughts on how to go about this?
Any help or direction would be appreciated.
Thanks in advance,
Peter
$fee_title = array_key_exists('fee_title', $settings) ? $settings['fee_title'] : '';
...
$fee_title = $cod_options['fee_title'] ?: __('COD Fee', 'scffw');
]]>
Hello there, I faced a problem. When a client fail to pay with credit card and is redirecting to failed order screen and tries to pay again the order with COD then the fee is not applying on this case. Any help on this? Thank you.
]]>Hi! I’m just found now your plugin, so i’m playing with.
I made a shipping with table rate shipping plugin, and added a payment (woocommerce default COD option.)
In you plugin I set up the custom fee per shipping method. (only add any number for table rate shipping methot)
But in the checkout page, when i selet table rate shipping with COD payment, the extra fee is ZERO.
On the other hand every shipping method say extra fee is 0, if i select payment method COD. (I think it would be hide, if it dont have any extra fee option.)
]]>I just updated to the latest version and cart page , as well as the checkout page are totally ruined.
It is also written that a critical error occured !
(I use the Woodmart theme)
Sorry but this the second time I have problems when updating, last time was with the 1.7.0 version not adding the fee.
I had to roll back to the 1.7.1 version.
]]>Is it possible to charge fee as percent based on total value?
]]>Hi,
After a rejected/failed online payment, customer returns to that page /checkout/order-pay/order_number/
The customer tried to pay again with the offline method COD but is shows no fees for COD and the order is completeted without charging the fee
Sorry, duplicated: https://www.ads-software.com/support/topic/my-account-page-27/
]]>Hi after upgrading my wordpress to 6.2.2 i have warning on check out page and checkout summary. Please can you help me with this?
warning: Undefined array key "cod" in?/data/4/7/47f2b2be-d6ab-414c-8b85-71307a8e1a84/smartvit.sk/web/wp-content/plugins/simple-cod-fee-for-woocommerce/simple-cod-fee-for-woocommerce.php?on line?273
Warning: Attempt to read property "settings" on null in?/data/4/7/47f2b2be-d6ab-414c-8b85-71307a8e1a84/smartvit.sk/web/wp-content/plugins/simple-cod-fee-for-woocommerce/simple-cod-fee-for-woocommerce.php?on line?274
Warning: Trying to access array offset on value of type null in?/data/4/7/47f2b2be-d6ab-414c-8b85-71307a8e1a84/smartvit.sk/web/wp-content/plugins/simple-cod-fee-for-woocommerce/simple-cod-fee-for-woocommerce.php?on line?274
Warning: Undefined array key "cod" in?/data/4/7/47f2b2be-d6ab-414c-8b85-71307a8e1a84/smartvit.sk/web/wp-content/plugins/simple-cod-fee-for-woocommerce/simple-cod-fee-for-woocommerce.php?on line?273
Warning: Attempt to read property "settings" on null in?/data/4/7/47f2b2be-d6ab-414c-8b85-71307a8e1a84/smartvit.sk/web/wp-content/plugins/simple-cod-fee-for-woocommerce/simple-cod-fee-for-woocommerce.php?on line?274
Warning: Trying to access array offset on value of type null in?/data/4/7/47f2b2be-d6ab-414c-8b85-71307a8e1a84/smartvit.sk/web/wp-content/plugins/simple-cod-fee-for-woocommerce/simple-cod-fee-for-woocommerce.php?on line?274
Warning: Undefined array key "cod" in?/data/4/7/47f2b2be-d6ab-414c-8b85-71307a8e1a84/smartvit.sk/web/wp-content/plugins/simple-cod-fee-for-woocommerce/simple-cod-fee-for-woocommerce.php?on line?273
Warning: Attempt to read property "settings" on null in?/data/4/7/47f2b2be-d6ab-414c-8b85-71307a8e1a84/smartvit.sk/web/wp-content/plugins/simple-cod-fee-for-woocommerce/simple-cod-fee-for-woocommerce.php?on line?274
Warning: Trying to access array offset on value of type null in?/data/4/7/47f2b2be-d6ab-414c-8b85-71307a8e1a84/smartvit.sk/web/wp-content/plugins/simple-cod-fee-for-woocommerce/simple-cod-fee-for-woocommerce.php?on line?274
Warning: Undefined array key "cod" in?/data/4/7/47f2b2be-d6ab-414c-8b85-71307a8e1a84/smartvit.sk/web/wp-content/plugins/simple-cod-fee-for-woocommerce/simple-cod-fee-for-woocommerce.php?on line?273
Warning: Attempt to read property "settings" on null in?/data/4/7/47f2b2be-d6ab-414c-8b85-71307a8e1a84/smartvit.sk/web/wp-content/plugins/simple-cod-fee-for-woocommerce/simple-cod-fee-for-woocommerce.php?on line?274
Warning: Trying to access array offset on value of type null in?/data/4/7/47f2b2be-d6ab-414c-8b85-71307a8e1a84/smartvit.sk/web/wp-content/plugins/simple-cod-fee-for-woocommerce/simple-cod-fee-for-woocommerce.php?on line?274
]]>
on my account page – for orders with failed payment status – if I click pay the checkout page does not calculate the additional cost for payment on delivery
]]>Hello andreas,
The plug in stopped working, it is not adding the value when a choose antikatavoli-cod. Can you please help me .
Thank you,
Kleanthis
]]>Hello,
Can you please add an option to set extra COD fee without tax?
Thanks.
]]>Hello, when i activate the plugin it kills Direct bank transfer – meaning is not an option anymore in the settings of woocommerce payments – It just disappears.
]]>How to disable cod fee on cart page
]]>Thanks for this simple but great plugin.
The title describes the problem. If someone wants the local pickup option and wants to pay on the store, the COD method still charges the fee. Is there any way to remove the fee from the specific option?
]]>Hi, we have also created a topic in support but no response. while we are using the plugin mentioned in subject is not changing the amount while we are changing the currency in checkout page.
]]>Hi, We are facing or might be there is challenge for you too is that when we enter extra amount on COD Payment method then the same entered number shows in checkout page even though we are changing the currency. Example- we entered value 20, so this value will remain same while we have multiple currency in the shop so the number is not changing upon changing the currency. kindly let us know how it can be fixed?
Thanks
]]>Hello! Is it possible to update the plugin for the 6.1.1 WordPress version? Because it doesn’t work: the extra fee doesn’t show up in the checkout and the subtotal.
Thank you in advance.
]]>Plugin doesn’t work. After I install it and choosed the extra price for this shipping method, when I try to checkout and choose the COD it doesn’t shows the extra price and it doesn’t add the price in the total price.
]]>Hello there.
After updating your plugin, I stopped logging in and received this:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<crc error_type=”2″ error_code=”805306612″>invalid request method for payment confirmation</crc>
Thanks.
]]>Hi,
I installed your plugin but cod payment showed up but not the cod fee on my selected shipping methods.
Having a look at your code, I changed at “woocommerce_cart_calculate_fees” action function array_intersect with array_intersect_key and it worked fine.
Please, have a look because i don′t know if it is failing for everybody else…
Thanks for your plugin
]]>// Plugin: https://www.ads-software.com/plugins/simple-cod-fee-for-woocommerce/
add_action( ‘woocommerce_cart_calculate_fees’, function() {
$cod_fee_description = ‘?ξοδα Αντικαταβολ??’;
$chosen_shipping_methods = WC()->session->get(‘chosen_shipping_methods’);
// Array([0] => local_pickup:5)
// shipping methods: flat_rate, local_pickup, free_shipping
if (is_array($chosen_shipping_methods) && count($chosen_shipping_methods) === 1) {
$chosen_shipping_method = $chosen_shipping_methods[0];
if (str_contains($chosen_shipping_method, ‘local_pickup’)) {
$chosen_gateway = WC()->session->get(‘chosen_payment_method’);
if ($chosen_gateway == ‘cod’) {
$fees_changed = false;
$fees = WC()->cart->get_fees();
foreach ($fees as $key => $fee) {
if ($fees[$key]->name === __($cod_fee_description)) {
unset($fees[$key]);
$fees_changed = true;
}
}
if ($fees_changed) {
WC()->cart->fees_api()->set_fees($fees);
}
}
}
}
});