Conditional email text
-
I was wondering if there is a way to separate my processing orders email via the purchased products category.
I know that’s not very clear 😛
For example:
I have two products. Test1 and Test2. Test1 has the category ‘ICT Sale’, while Test2 has ‘Private Sale’.
If someone purchases Test1 I would like the email to say ‘Thank you for buying an ICT product’
If someone purchases Test2 I want it to say ‘This is a private sale!’
Unfortunately I’m more fluent with JS than PHP and WP hooks (and I’m assuming a if / else statement won’t work here :P)Thanks for any help in advance!
The topic ‘Conditional email text’ is closed to new replies.