Some stores does not ship international, or ship to limited set of countries only.
DC needs a setting of allowed countries.
Only set of allowed countries should appear on checkout page.
If only one country is allowed, country select widget should be not shown on checkout page.
Comments
Comment #1
rfayCommerce core doesn't do shipping... Is this an issue for shipping or for commerce in general?
Comment #2
xy2 commentedFound this setting here:
This is addressfield setting.
Comment #3
joachim commented> Commerce core doesn't do shipping... Is this an issue for shipping or for commerce in general?
For Commerce in general, since Commerce provides a billing customer profile.
> This is addressfield setting.
Having to set this within the field settings doesn't feel very sturdy, or discoverable. Also, it means that modules that provide further address-y things (eg shipping) don't pick up on it and have to be configured too.
I can see a case here for a store-wide setting.
Comment #4
rszrama commentedThe Address field setting will be the right place to make restrictions, but what I'd like to see is a global store setting that we then use to alter the available countries in address fields used on customer profiles. There's actually another issue with a screenshot and a few notes about an interface we'd like to copy, so let's stick with that one for now (and maybe finally address it ; ): #842082: Implement country availability settings
Comment #5
summit commentedHi, this was great information:
/admin/commerce/customer-profiles/types/billing/fields/commerce_customer_address
Now I can control that the order is only from my own country.
greetings, Martijn
Comment #6
joshuabud commentedI managed to implement this as well but for some reason it doesn't work properly for the shipping address field.
On the cart page I was able to limit the drop down to 2 countries on the Billing Address section but the Shipping Address section of the same page displays all countries. Any suggestions?
Comment #7
BrendanP commented@JoshuaBud
Same problem here, please let post a solution if you find one, will do the same.
Cheers
Brendan
Comment #8
1kenthomas commented@JoshuaBud, BrendanP:
No problem here AFAICT, FWIW.
Comment #9
ludde_t commentedThe shipping and billing are different fields so for the shipping address the link would be:
/admin/commerce/customer-profiles/types/shipping/fields/commerce_customer_address
Comment #10
mihai_brb commentedHello,
Manage fields is quite confusing for clients. I had to provide a simple UI where a shop manager can limit the countries.
Here's a small module that exposes only the country list selector for shipping. It also has a config form where an admin can setup what addressfield from what customer profile to use.
https://www.drupal.org/sandbox/mihai_brb/2308211
Mihai