Order fields on printed order

Created on 17 May 2024, about 1 month 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.69.0 2024