Page 1 of 1
Template for specific product
Posted: Fri Mar 16, 2018 8:38 am
by egormsen
The current email trigger for when a product order status is complete applies to all products, correct?
Anyone know have any idea how difficult it would be allow certain product to trigger a different email? We have a few products that need to have more details and info put into them that can not be part of all orders.
Re: Template for specific product
Posted: Fri Mar 16, 2018 11:26 pm
by Katie
Hi Eldon,
I don't think it would be an easy or even moderately easy change, but I wonder if we could find you a workaround. The Vendor notification works with individual products. If you wanted to change the email template subject, recipient and contents, then it 'should' be possible to send the customer a special email on a per product basis. Will that work for you?
I actually wanted to set up something like this in our own store, so I just tested an example and it worked great! Thanks for 'triggering' the idea for me too!
Thanks,
Katie
Re: Template for specific product
Posted: Wed Mar 21, 2018 3:37 am
by egormsen
Thanks for the idea. I will try it out next week when I get back in the office.
Re: Template for specific product
Posted: Wed Apr 11, 2018 10:22 am
by egormsen
Katie,
I am trying to get this work but I am missing something.
I first just went ahead and created a special vendor with and email and assigned it to the product. Then created an order with that product, and I did get an email, but I am having 2 issues getting it to work:
1) The email notice does not go out until after the product shipped, not after the order was place, like I need it.
2) I changed the "to:" email in the template from vendor to customer and placed a couple of orders. But when I do that I get emails for everything not sure the product I wanted it for.
So it seems that the trigger is tied to who the email is being sent to?
Does this make sense?
Re: Template for specific product
Posted: Thu Apr 12, 2018 1:26 am
by jguengerich
Depending on where the other information is stored and what indicates that a product has this extra information, you may be able to accomplish this using NVelocity #if statements in the "normal" template.
For example,
Code: Select all
#if ($orderItem.Product.Manufacturer == "Acme")
$orderItem.Product.ExtendedDescription
#end
You'd obviously have to add more to make it look nice (additional row or column in the html table, etc.).
Re: Template for specific product
Posted: Tue Apr 17, 2018 1:13 am
by AbleMods
Jay's idea is how I do it. I implement a few if-endif nVelocity scripts in the email template. That way I'm still working with just one email template which makes things easier to keep track of later in life.