craftcms / commerce

Fully integrated ecommerce for Craft CMS.
https://craftcms.com/commerce
Other
218 stars 170 forks source link

[4.x]: New address in order entry should only show enabled countries #3306

Open bossanova808 opened 11 months ago

bossanova808 commented 11 months ago

What happened?

Description

Not a huge or urgent thing, but would be a good time saver - I feel the 'New Address' entry in order processing should only show the enabled countries.

I.e. I think this is inconsistent:

image

But then it defaults to (of course) the US. I feel it should default (in our case) to the store country (Australia) and only list enabled countries:

image

Craft CMS version

Craft Pro 4.5.7

Craft Commerce version

4.3.1

PHP version

8.2

Operating system and version

NA

Database type and version

NA

Image driver and version

NA

Installed plugins and versions

NA

nfourtythree commented 11 months ago

Hi @bossanova808

Thank you for your great suggestion, this is something we will definitely take on board and look to get in, in the future.

There are a few things to think about with this, for example, there is a business case that would only want to allow certain countries in the front end for people to check out. But maybe over the phone or internally store administrators may want to create orders for countries outside of that list. We also need to take into consideration what data Craft allows Commerce to pass to the instantiation of the new address element.

Definitely something we are looking to improve on and we will keep this issue updated with any/all developments.

Thanks!

bossanova808 commented 10 months ago

Good points - how about a compromise solution in the interim - at least default the new address country to the store country, and list those others enables at the top of the list, with the rest then underneath?

This would allow the most common cases to be much quicker, but still give the flexibility to do the things you mention...

bossanova808 commented 7 months ago

Following up here - any chance you can do this? It really is very irritating and surely jsut making the store's country the default selected for new addresses is not controversial?

linear[bot] commented 1 week ago

PT-2142 [4.x]: New address in order entry should only show enabled countries