- Issue created by @ecvandenberg
- 🇮🇪Ireland frankdesign
Did you figure this out? I'm looking for this functionality as well.
Thanks
- 🇳🇱Netherlands ecvandenberg
Yes I did :-)
{{ order_entity.your_field_name.value }}
I have added a comment field according to the steps at the project page. And that field is indeed displayed when viewing the order. Nice!
But I also want to have that comment field on the printed order.
I use entity_print for that. So the template for the printed order is commerce-order-receipt--entity-print.html.twig.
No I struggle to get the preprocess function to get the order field in that template.
Can one perhaps provide an example?
Active
1.2
Documentation
Did you figure this out? I'm looking for this functionality as well.
Thanks
Yes I did :-)
{{ order_entity.your_field_name.value }}