Ricky Posted May 19, 2011 Share Posted May 19, 2011 (edited) Hi, I'm looking to use the email conditional display function, I've looked at the wiki/manual and couldn't find an answer. The issue is regarding conditional display in a 'welcome' email for a product addon. Basically I wanted an email to be sent saying your order has been received (i.e. when the order is placed and is in pending status), and once accepted, the email shown will confirm that the order has been processed. I guess its a case of using something like the below, but I don't know the variable to use or whether it exists. {if $order_status eq "pending"} Your order has been received.... {else} Your order has now been processed.... {/if} Maybe using else isn't the best option incase the order isn't accepted. I'm not sure how to right this though. Do you just write a second if statement? Thanks in advance for any help! Edited May 19, 2011 by Ricky 0 Quote Link to comment Share on other sites More sharing options...
Ricky Posted May 19, 2011 Author Share Posted May 19, 2011 Just realised it should be: {if $order_status eq "active"} Your order has now been processed.... {else} Your order has been received.... {/if} 0 Quote Link to comment Share on other sites More sharing options...
Ricky Posted May 21, 2011 Author Share Posted May 21, 2011 (edited) Anyone? Edited May 21, 2011 by Ricky 0 Quote Link to comment Share on other sites More sharing options...
JewelHost Posted May 22, 2011 Share Posted May 22, 2011 Do a nested if {if $order_status eq "active"} Your order has now been processed.... {else} {if $order_status eq "pending"} Your order has been received.... {/if} {/if} 0 Quote Link to comment Share on other sites More sharing options...
Ricky Posted May 22, 2011 Author Share Posted May 22, 2011 Thanks. Can you use conditional display in the subject field? 0 Quote Link to comment Share on other sites More sharing options...
Ricky Posted May 22, 2011 Author Share Posted May 22, 2011 Also, the posted info didn't work. I couldn't find the true variables to use, the ones used were just dummys. Does anyone have any idea what the variables are or if they exist? 0 Quote Link to comment Share on other sites More sharing options...
nullifygirls Posted May 23, 2011 Share Posted May 23, 2011 Explain all solution very fairly, I apply condition very easily. thanks. 0 Quote Link to comment Share on other sites More sharing options...
Ricky Posted May 23, 2011 Author Share Posted May 23, 2011 Hi, I basically need it so when the new order is placed it shows one message, and then once the order is accepted and the 'product welcome email' is sent, then a different message is shown confirming that the order has been processed. i believe what ive posted is close to the actual code, but as mentioned i dont know the actual variables to use or whether they exist. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.