How to Use Invoce Attachement in Invoice template?

benyamin jain asked on January 13, 2015 12:41

HI How it is possible to place attached image into Invoice template based on if order confirmed or not?

Recent Answers


Roman Hutnyk answered on January 13, 2015 21:14 (last edited on December 10, 2019 02:30)

Benyamin,

You can use macro to figure get order status and compare it to some value and show image based on result of comparison. Something like this:

{% OrderStatus.CodeName == "your status" ? "<img src='/img1.jpg'/>" : "<img src='/img2.jpg'/>" |(identity)GlobalAdministrator%}

0 votesVote for this answer Mark as a Correct answer

benyamin jain answered on January 14, 2015 06:48

Roman , Thank you for your reply according to your code , we can access order attachment by it's name?

0 votesVote for this answer Mark as a Correct answer

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