Page 1 of 1
Email for non shippable items
Posted: Tue Feb 08, 2011 1:03 pm
by bhill
Having trouble sending out an email template for one of our non-shippable items. The template is set to trigger when and "Order without shippable items was fully paid." This works great when someone orders only the non shippable item. But when they order a shippable item along with it, the email does not send. Am I missing something? Shouldn't it send no matter what else is in the order?
This brings up other problems too, what if I have other non-shippable items that need their own custom template?(which we do) Able really needs a way to send an email template for any particular product that is purchased, like if product ID is paid then trigger email. Vendor emails is not the answer because it sends for ALL vendors.
Does someone have a workaround for this? Is there a topic on this? Please help!
Re: Email for non shippable items
Posted: Sat Mar 12, 2011 1:47 pm
by bhill
please someone shed some light on how I can send an email for a non shipping item when it is purchased with a shippable item. Or add custom triggers?
thanks
Re: Email for non shippable items
Posted: Mon Mar 14, 2011 4:36 am
by mazhar
Edit the template and set its trigger to Order Paid then try test order again.
Re: Email for non shippable items
Posted: Mon Mar 14, 2011 4:46 am
by plugables
When an order has both shippable and non-shippable items the 'Order with shippable items was fully paid' event will get triggered.
You can code your email template to handle this situation there.
It is also possible to associate multiple multiple email templates with one even trigger. You may associate two emails with the 'Order with shippable items was fully paid' even trigger and handle both cases separately.
Re: Email for non shippable items
Posted: Mon Mar 14, 2011 1:37 pm
by bhill
Thank you both for the reply. It seems as though the way to handle this is to add nvelocity code to the template that is our main order confirmation email. Because this email is the one that is used when the trigger 'order with shippable items is fully paid' is fired. Using two triggers is not good because it would send our donation email even if that item was not present in the order.
The nvelocity code to add should only display certain content if the item(s) is present in the order. We need a statement similar to this:
#foreach($orderItem in $order.Items)
#if ($orderItem.Sku == "D")
Donation email message goes here
#else
No donation
#end
#foreach($orderItem in $order.Items)
#if ($orderItem.Sku == "M")
Membership email message goes here
#else
No Membership
#end
So far I've been unable to get this to work properly. Is my theory correct? Can you advise on the code for the email? thanks again-