edited tags
Link
apaderno
  • 95.4k
  • 15
  • 158
  • 283
Source Link

Get the value of Entity reference revisions field in order email twig file

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

 order_entity.field_price_value.field_price.value

 {% for order_item in order_entity.getItems %}

{{ order_item.getPurchasedEntity.getfield_price_value.getfield_price

{% endif %}