I have a Content Type Order Line which is related to a Product Content Type using an entity reference. I want to add a price field to the Order Line content type which displays the price field from the Product Content Type using the entity reference field relationship.

How can I do this ? Thanks.

Comments

sprite’s picture

Are you using Drupal Commerce?

If so, why aren't you using:

https://www.drupal.org/project/inline_entity_form

To attach a Drupal Commerce product entity to a content node?

https://www.google.com/search?q=drupal+commerce+inline+entity+form+site%...

spritefully yours
Technical assistance provided to the Drupal community on my own time ...
Thank yous appreciated ...

peterk900’s picture

Actually no - but I am looking at Commerce so your links are useful.

I think the solution is the Entity Reference Autofill module. Here is a link to a video which I found easier to follow than the description in drupal.org .