Open romainpoirier opened 4 months ago
Those settings are now on a per store level and not global commerce configs, so the doc links need updating.
I have moved this issue to the docs repo so we can sort that.
In the meantime, to explain what those settings do: setting either of those store settings to true will cause order completion on final checkout (which usually only happens when making payment) to return as invalid. The cart will get a validation error for missing addresses.
Hope that helps.
Ok, thank you. However, I still do not understand how to set other required fields for the customer address (specifically during the users/save-address
action).
In this case, I want firstName
and lastName
to be required, as well as organizationTaxId
.
I cannot find additional options under /admin/commerce/store-management/primary
.
@romainpoirier Sorry those settings just make the addresses required to be on the order, not specific fields.
If you want to add validation to the addresses on the order, you need to add you‘re own validation within a module.
You can add validation to all addresses as documented here:
https://craftcms.com/docs/5.x/reference/element-types/addresses.html#validating-addresses
What happened?
Description
In the Craft Commerce 5 documentation, the following section mentions two configuration settings:
However, when clicking on the
requireBillingAddressAtCheckout
andrequireShippingAddressAtCheckout
links, no information is provided on the destination page.Steps to reproduce
Expected behavior
Information or documentation about the
requireBillingAddressAtCheckout
andrequireShippingAddressAtCheckout
settings should be displayed.Actual behavior
No information is provided on the destination page after clicking the links.
Questions
Craft CMS version
5.2.28
Craft Commerce version
5.0.14
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
-