I have try to enable COD (Cash on delivery payment method) for UAE country (United Arab Emirates), but it can't show in checkout page.
My current payment gateway with network international, accepting debit card and credit card but I also want to enable COD payment for UAE only. Please tell me any functions.php custom code for enabling COD for UAE only.
Any help is appreciated.
The following code snippet will enable Cash on delivery payment method (COD) only for specific defined country(ies) code(s):
Code goes in functions.php file of your active child theme (or active theme). It should work.
If needed you can replace in the code
with the billing country:
Based on: Show Cash on delivery (COD) based on specific cities in Woocommerce