How do I include data from commerce_order entity in the order receipt email (twig)?

Created on 16 November 2020, almost 4 years ago
Updated 4 October 2023, about 1 year ago

I have created a custom field "field_jour_de_retrait" in commerce_order entity.
I would like to print value field in the commerce-order-receipt.html.twig?

I tried to add {{ commerce_order.field_jour_de_retrait|field_value }}
(as it mentionned https://www.drupal.org/project/twig_field_value )
But it doesn't work (nothing appear in email).

Can you help me please ?

Thanks!

💬 Support request
Status

Fixed

Version

2.0

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