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.
Would be awesome if this worked with the commerce product entities. Currently it only seems to work with content entity. I want to be able to change product titles or prices via a view.
Comments
Comment #1
joachim CreditAttribution: joachim commentedThis works with the fields on any entity. It should work with the price field.
What it won't work with is the product title -- you'd need to write a handler for that.
Comment #2
patoshi CreditAttribution: patoshi commenteddo you have a sample handler i can use as a starting point?
Comment #3
joachim CreditAttribution: joachim commentedThere's the node title handler in the module.
Comment #4
patoshi CreditAttribution: patoshi commentedwhat would i search for in the module file for that?
Comment #5
joachim CreditAttribution: joachim commentedSee #2090731: add a handler for generic Entity API metadata properties.
Comment #6
msypes CreditAttribution: msypes commentedI just tried using this on a view of commerce line items, and it doesn't seem to have any effect. Everything shows up as a regular field would.
Comment #7
discipolo CreditAttribution: discipolo commentedyou need to add the fields to the view again as editable, they dont automatically become editable
Comment #8
joachim CreditAttribution: joachim commentedShould work fine with #2090731: add a handler for generic Entity API metadata properties.