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?


  • are you using any custom extension for this ? – magento noob Mar 1 '17 at 7:37
  • How you are creating csv ? which module/code you are using for this? – Arunendra Mar 1 '17 at 7:52
  • may be this link helps, if you tie up with any shipping logistics team , if you get the list of zip codes , than it will be easy for you...... – Baby in Magento Mar 1 '17 at 7:53

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.

Not the answer you're looking for? Browse other questions tagged or ask your own question.