Closed Stalex89 closed 2 years ago
It looks like you're referencing a custom field called 'country':
I don't have a country custom field and see this:
it looks like the custom field name is conflicting with the build in address field name. You will need to rename the custom field to fix it quickly, in the future we will need to disallow custom fields with those names.
@lukeholder Thank you for the answer, idd custom field with the same name overrides the default field from the dropdown, I changed the name of the custom field and the default one appeared back:
Would be nice tho to keep both of fields in the dropdown (maybe differentiate by unique field handle) Anyway thank you for clarifying!
What happened?
Description
According to the documentation, the country condition can be set by setting the "Country" rule to "is one of" and type+selecting the country (it should typeahead the county in the input).
However, the actual field differs from the documentation. Instead, there are four options for the Country rule: 1) equals 2) begins with 3) ends with 4) contains
If I select "equals" and type for example "Netherlands", it doesn't autosuggest country (not a typeahead input) and you type country name "as you type it".
When I set the shipping address in the order, hit the "Update order" button and try to select the shipping rule, I don't see the shipping methods based on the country condition.
Steps to reproduce
Expected behavior
You should be able to select the shipping method based on country conditional rule
Actual behavior
The shipping method is not present in the selection list
Screenshots:
If I remove the address condition for the shipping zone, all shipping methods will appear in the selection list:
Craft CMS version
Craft Pro 4.0.5
Craft Commerce version
4.0.3
PHP version
8.0.20
Operating system and version
Linux 3.10.0-962.3.2.lve1.5.64.el7.x86_64
Database type and version
MySQL 10.2.44
Image driver and version
GD 8.0.20
Installed plugins and versions
Mollie for Craft Commerce | 4.0.0 Navigation | 2.0.2 Redactor | 3.0.0 Redirects | 4.0.1 SEOmatic | 4.0.2 Super Table | 3.0.0-beta.6 Typed link field | 2.1.3-rc