Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It'd be nice if the add to cart form used an actions wrapper around the submit button for easier theming. Patch attached.
Comment | File | Size | Author |
---|---|---|---|
commerce_add_to_cart_actions-1.patch | 1.62 KB | rbayliss | |
Comments
Comment #1
rszrama CreditAttribution: rszrama commentedCurious, I'm not sure I knew about this element type when we first started building our forms, as it appears we use containers for various actions elements. Unfortunately, such a change would be too disruptive to the 1.x branch - who knows how many modules or themes depend on the current array structure? Until we open the 2.x branch, this will just have to be altered in via a custom module.
Comment #2
rszrama CreditAttribution: rszrama commentedJust need to make sure we get this in properly.
Comment #3
mglamanWe are adding the add to cart button via the
::actions
method and should be rendered appropriately (covering initial issue summary bases.)Marking Closed (outdated) as "it just works" for 2.x and was deemed a breaking change for 1.x.