@seank123 Thank you, it really does work! only thing i can’t figure out is how to set a condition to attach the pdf only to order emails, because what that code does now is it attaches the pdf to every single type of email(completed order,order on hold, etc.)