Hi,

I found that default option in attribute form rendering is ignored when attribute is required. I think default option should be selected regardless of attribute is required.

Small patch attached.

CommentFileSizeAuthor
attribute_force_default_option.patch459 bytesmanuel.adan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rszrama’s picture

Status: Active » Closed (works as designed)

Please refer to the documentation on the issue; this comes up fairly regularly, and the gist of it is all attributes with options are required, but in this case specific customer action is required. If we select the default, a customer can add to the cart without first checking and verifying the selection. That's the nature of the required field here.