By cruze72 on
Hi,
Have a client who wishes to be sent a special email only when the customer has left a comment on the order. I'm sure that i can do this with either CA or rules in D6 by creating a custom template or just by using tokens but i have no idea how to format the condition part as i'm no use with PHP and i am guessing i'll need some custom PHP to recognise whether an [order-comment] has been left or not.
Can anyone help with the PHP part?
Thanks
Comments
Conditional Actions/Rules
Conditional Actions/Rules probably won't do this (I don't think anyway). But it should only be a few lines of PHP in a custom module to get it to work. I know you're not comfortable with PHP, but it's not a ton of work to get this going. Hopefully this can get you going and you can take it from here.
Off the top of my head here's what I'd do:
If you have a custom site module going add hook_order (called by Ubercart) to it so that when the order is submitted you can react and check for comments. The code below is more pseudocode than anything though. You'll have to figure out the variables and look at the functions/links below to get it going but this is a start anyway. Hope it helps!
http://bonify.io