Cash on Delivery payment method not working with flexible shipping methods
-
I’ve found a problem with a default woocommerce payment gateway – cash on delivery (COD).
In COD gateway settings page we can add shipping methods where we want to use COD gateway, and there is a position “flexible shipping”.
1. First problem is that the algorithm to show selectbox with shipping methods is using a gateway title instead of gateway id.
2. Due to “Shipping method” plugin in fact creates a 2 gateways –flexible_shipping
andflexible_shipping_info
but both have the same title –Flexible Shipping
3. finally – even when due to point 1. – we are setting flexible_shipping_info in COD gateway settings, and we cannot set the correct shipping method.Working solution for me was deregister
flexible_shipping_info
method and then we can use correct shipping method in COD settings.First of all i think you should not register new shipping method only to display options page – there are other ways to achieve it,
Second thing is that you should consider change the title of this helper shipping_method_info.I just wanted to inform you about the problem and solution i found ??
Its up to you if you want to fix the problem.Greetings ??
- The topic ‘Cash on Delivery payment method not working with flexible shipping methods’ is closed to new replies.