I am using magento 1.9. And I want to set no cod for a country except for a city/state in that country.I'm stuck with creating the csv file. Can anyone help?
You may create a csv file with these columns
Country State COD_Available
store yes/no to COD_Available column and then you will have to hook an event which is something like "payment method is active" and in that event you may disable the COD payment method on the basis of the shipping address of the order.