How to get user custom field in order email twig

ls flag

I am trying to add user custom field in order receipt pdf using below file commerce_purchase_order under template.


I tried below code

     {% for order_item in order_entity.getItems %}
       {{ order_item|commerce_entity_render('field_custom_fielname') }}
     {% endfor %}

Also Used but this will not work as this is not field in order

    {{ order_entity.field_custom_fielname }}

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.