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.
How to implement fancy attributes in Line item types? I don't see Attribute selection widget "Rendered term" in field settings.
Comments
Comment #1
FiNeX CreditAttribution: FiNeX commentedHi, rendering field values like Commerce Fancy Attributes module does would be a killer feature!
Comment #2
AverilL CreditAttribution: AverilL commentedI'm trying to find a way forward with this also:
The site I'm working on requires a client to upload an image or text. The client must also select a font and a colour which would ideally be displayed using commerce_fancy_attributes so an image is displayed for the font and a colour block for the colour.
So far I've extended the function commerce_cart_form_field_ui_field_edit_form_alter(&$form, &$form_state) in commerce_cart.module to include the attriubute widget for commerce_line_item as per commerce_product
and extended commerce_fancy_attributes.module function commerce_fancy_attributes_form_field_ui_field_edit_form_alter(&$form, &$form_state) with
The result of this is the rendered term option appears on the add to cart attribute selection on the field edit form but taxonomy term is not rendered on the product display. The attributes of the taxonomy term show in the render view of Devel but are simply not rendered.
Am I going in the right direction with this? Would it be better just to create a field formatter for the specific product? Any pointers in the right direction would be much appreciated.
Comment #3
jordimateubesancon CreditAttribution: jordimateubesancon commentedComment #4
nvahalik CreditAttribution: nvahalik at Centarro commentedComment #5
nvahalik CreditAttribution: nvahalik at Centarro commented