0

Is it possible to put an if statement in the order confirmation email?

like so?

{if shipping_address2}{shipping_address2}<br />{/if}

1 Answer 1

2

Yes you should be able to use most EE tags without issues in the Store email templates.

4
  • When I put that code in the order confirmation email template I do not get the order confirmation email. I can only assume that it causes an error somewhere but since I don't really have a way to debug it (not that I know of) I can't be 100% what the issue is.
    – Trevor Orr
    Jul 3, 2014 at 6:21
  • Apparently it does work, the order confirmation emails where being caught by the spam filter.
    – Trevor Orr
    Jul 3, 2014 at 6:27
  • I usually create my emails as EE templates first wrapped in a {exp:store:orders} loop to get the formatting and everything setup properly then copy that into an email template. Jul 3, 2014 at 14:03
  • I was not aware that is how it worked, now that I do that is a great idea.
    – Trevor Orr
    Jul 3, 2014 at 15:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.