Order payment notification email additional fields

Wei Wang asked on January 20, 2022 17:38

Hi,

I want to add this OrderItemCustomData field from OrderItem table to the Order payment notification email. But it's not showing up the value of the field.

I added this line to the transformation: {% OrderItem.OrderItemCustomData #%} but it's not displaying anything. What should I do to add additional field from OrderItem table to the order confirmation email and order invoice?

We use Kentico 11 portal engine.

Thanks, Wei Wang

Recent Answers


Dmitry Bastron answered on January 21, 2022 06:19

Hi Wei,

Please have a look at this thread, I believe this is exactly your case. As OrderCustomData stores XML, not plain text, you should just use {% Order.OrderItems[0].OrderItemCustomData.NameofYourField %}

0 votesVote for this answer Mark as a Correct answer

Wei Wang answered on January 21, 2022 14:36

thank you!

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.