You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since updating to CraftCMS v4.4.0, when "validateCartCustomFieldsOnSubmission" is set to "true", it no longer validates custom fields on update cart in the front-end. It was working fine before updating.
Steps to reproduce
Add a "plain text" field to Commerce > System Settings > Order Fields
Make it required
Make sure the custom "plain text" field is included somewhere in your checkout workflow which is wrapped in a commerce/cart/update-cart form
Browse to the step where the "plain text" field is included, leave blank and try and proceed to the next step
You will be able to proceed to the next step. No validation errors reported.
Expected behavior
When custom fields are added to Order Fields and validateCartCustomFieldsOnSubmission is set to "true", on the front-end, they should show errors if for example, they are left blank.
Actual behavior
No validation errors are reported in the front-end when custom fields are added to Order Fields and set to required.
Craft CMS version
v4.4.0
Craft Commerce version
v4.2.5.1
PHP version
8.0.21
Operating system and version
Linux 5.15.49-linuxkit
Database type and version
MySQL 10.4.25
Image driver and version
Imagick 3.6.0 (ImageMagick 6.9.11-60)
Installed plugins and versions
The text was updated successfully, but these errors were encountered:
What happened?
Description
Since updating to CraftCMS v4.4.0, when "validateCartCustomFieldsOnSubmission" is set to "true", it no longer validates custom fields on update cart in the front-end. It was working fine before updating.
Steps to reproduce
commerce/cart/update-cart
formExpected behavior
When custom fields are added to Order Fields and validateCartCustomFieldsOnSubmission is set to "true", on the front-end, they should show errors if for example, they are left blank.
Actual behavior
No validation errors are reported in the front-end when custom fields are added to Order Fields and set to required.
Craft CMS version
v4.4.0
Craft Commerce version
v4.2.5.1
PHP version
8.0.21
Operating system and version
Linux 5.15.49-linuxkit
Database type and version
MySQL 10.4.25
Image driver and version
Imagick 3.6.0 (ImageMagick 6.9.11-60)
Installed plugins and versions
The text was updated successfully, but these errors were encountered: