Posted on 09/08/2023 09:22:46
You can't - or at least we have not found a viable solution for it yet.
The orderflow emails contains a lot of information regarding the order and order state and that needs to be rendered on a given page. That functionality is not around. Using the {} format is fine for simple information, but cannot render an entire order state information.
You can call PageView.GetPageviewAsTemplate to get a pageview in your flow template. On that page insert {BodyOfFlowEmail} or something as a placeholder, take the markup returned from GetPageviewAsTemplate, put it in a template object, call SetTag("BodyOfFlowEmail", someMeaningFullMarkupString) and print out the result of template.Output()
Klunky and hardcoded, but could work, but no promises.