Email for non shippable items

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
bhill
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 84
Joined: Mon Oct 31, 2005 5:06 pm
Location: Institute

Email for non shippable items

Post by bhill » Tue Feb 08, 2011 1:03 pm

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!

bhill
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 84
Joined: Mon Oct 31, 2005 5:06 pm
Location: Institute

Re: Email for non shippable items

Post by bhill » Sat Mar 12, 2011 1:47 pm

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

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Email for non shippable items

Post by mazhar » Mon Mar 14, 2011 4:36 am

Edit the template and set its trigger to Order Paid then try test order again.

plugables
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Sat Aug 15, 2009 4:04 am
Contact:

Re: Email for non shippable items

Post by plugables » Mon Mar 14, 2011 4:46 am

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.

bhill
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 84
Joined: Mon Oct 31, 2005 5:06 pm
Location: Institute

Re: Email for non shippable items

Post by bhill » Mon Mar 14, 2011 1:37 pm

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-

Post Reply