I have installed following modules for flat shipping:
http://drupal.org/project/commerce_shipping (7.x-2.0-beta1)
http://drupal.org/project/commerce_flat_rate (7.x-1.0-beta1)

I would like to remove some countries from shipping and billing country list because I'll be using paypal as payment gateway and paypal currently only accepts payments from 190 countries.

If any of the gurus know this, then please let me know. I only know HTML & CSS.

Comments

maciej lukianski’s picture

If you go to admin/commerce/customer-profiles/types, you will see 2 profile types: Shipping and Billing. On each of them is an address fields. When you edit it you are able to specify which countries should be visible on your select.

himagarwal’s picture

Thanks MagicMcj.

Is there a way I can remove some of the US states from both shipping and billing?

maciej lukianski’s picture

Status: Active » Fixed

I'll close it for now.

himagarwal’s picture

Please don't close the issue.

I would like to know if there is a way I can remove some of the US states from both shipping and billing?

maciej lukianski’s picture

Sorry. I thought that countries was the whole question.
I think, you'd have to do that one in code. UI does not provide this functionality. Have a look and hook_field_info_alter and hook_form_alter. These are probably the best places to do that.

himagarwal’s picture

MagicMcj,

Thanks for the reply. Since, I'm not a php coder / developer I don't know how to do it through hook.

Is there a way I can dive into the database and delete some US states from there completely?

The only problem is that I'm not familiar with MySQL, database (phpMyAdmin). :-)

maciej lukianski’s picture

I do not know the address module that well, but would guess that the options come from code, not database. Anyway, this would not be a good solution. You should use your module to override other modules rather than tamper with them directly.

no2e’s picture

I would like to know if there is a way I can remove some of the US states from both shipping and billing?

himagarwal, I think you could create a feature request for that.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.