Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.2
Component:
Commerce
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Mar 2012 at 08:19 UTC
Updated:
29 Mar 2012 at 06:30 UTC
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
Comment #1
maciej lukianski commentedIf 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.
Comment #2
himagarwal commentedThanks MagicMcj.
Is there a way I can remove some of the US states from both shipping and billing?
Comment #3
maciej lukianski commentedI'll close it for now.
Comment #4
himagarwal commentedPlease 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?
Comment #5
maciej lukianski commentedSorry. 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.
Comment #6
himagarwal commentedMagicMcj,
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). :-)
Comment #7
maciej lukianski commentedI 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.
Comment #8
no2e commentedhimagarwal, I think you could create a feature request for that.