Order fields on printed order

Created on 17 May 2024, 6 months ago

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?

💬 Support request
Status

Active

Version

1.2

Component

Documentation

Created by

🇳🇱Netherlands ecvandenberg

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

Comments & Activities

Production build 0.71.5 2024