I want to get the entity reference field value in order email.

Name of the entity reference is field_price_value and called paragraph field is field_price now I want to get the field price value I tried below method but none work for me


 {% for order_item in order_entity.getItems %}

{{ order_item.getPurchasedEntity.getfield_price_value.getfield_price

{% endif %}

1 Answer 1


I think you would do it like this (if I'm understanding your scenario correctly):

{{ node.field_price_value.entity.field_price.value }}

Also this question has been asked and responded to before, you may find this helpful: Twig get value of field in entity reference

Good luck!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.