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.
Now that we have fancy attributes to control how the product variation selection widget renders, we should bring it to a field formatter as well. This would be a field formatter which only attaches to an entity reference field that points to commerce_product_variation.
The field formatter's settings will allow a user to pick which attributes should be rendered. It will render the default display mode.
This will allow us to fully deprecate all the functionality Commerce Fancy Attributes provided us via Field Extractor:
Comment | File | Size | Author |
---|---|---|---|
#4 | add_field_formatter_for-2719479-4.patch | 8.8 KB | mglaman |
#3 | add_field_formatter_for-2719479-3.patch | 8.03 KB | mglaman |
To_wear___Commerce_KickStart_Demo.png | 1.11 MB | mglaman |
Comments
Comment #2
mglamanComment #3
mglamanHere is the patch to add the new formatter.
PR: https://github.com/drupalcommerce/commerce/pull/378
Comment #4
mglamanForgot the field formatter schema.
Comment #5
mglamanWork ongoing in the PR.
Comment #6
bojanz CreditAttribution: bojanz at Centarro commentedPR is almost ready, minor nitpicks left.
Comment #8
bojanz CreditAttribution: bojanz at Centarro commentedCommitted.