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.
Followup to #2716417: Allow rendering of variation fields on the product entity..
We currently inject all fields, including the attributes. But attributes are already represented via the add to cart form, which is enough for the default use case.
So let's hide the rendered attribute fields.
Comment | File | Size | Author |
---|---|---|---|
#6 | hide_the_rendered_follow_up-2723693-6.patch | 973 bytes | agoradesign |
#2 | hide_the_rendered-2723693-2.patch | 3.64 KB | mglaman |
Comments
Comment #2
mglamanPatch! PR to follow
Comment #3
mglamanPR https://github.com/drupalcommerce/commerce/pull/384
Comment #5
bojanz CreditAttribution: bojanz at Centarro commentedThanks!
Comment #6
agoradesign CreditAttribution: agoradesign commentedSorry Matt, I've to re-open this one, as it does not work as expected at all. There are two problems here:
Seems that the tests did not cover the check for existence of the grouped attributes array. And as they weren't added at all, no test failed. I haven't run the tests yet, nor I did add some. Attached is just a fix for the code
Comment #8
bojanz CreditAttribution: bojanz at Centarro commentedDrupalCon is not a good time for committing stuff :) Thanks!