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

Created on 7 January 2022, almost 3 years ago
Updated 1 April 2023, over 1 year ago

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 %}
πŸ’¬ Support request
Status

Closed: outdated

Version

1.2

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024