Template for specific product

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
egormsen
Captain (CAPT)
Captain (CAPT)
Posts: 236
Joined: Fri May 16, 2008 9:16 am

Template for specific product

Post by egormsen » Fri Mar 16, 2018 8:38 am

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.
Eldon Gormsen
Weigh Down Ministries
AC Gold R12 SR1
http://store.weighdown.com

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Template for specific product

Post by Katie » Fri Mar 16, 2018 11:26 pm

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
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

egormsen
Captain (CAPT)
Captain (CAPT)
Posts: 236
Joined: Fri May 16, 2008 9:16 am

Re: Template for specific product

Post by egormsen » Wed Mar 21, 2018 3:37 am

Thanks for the idea. I will try it out next week when I get back in the office.
Eldon Gormsen
Weigh Down Ministries
AC Gold R12 SR1
http://store.weighdown.com

egormsen
Captain (CAPT)
Captain (CAPT)
Posts: 236
Joined: Fri May 16, 2008 9:16 am

Re: Template for specific product

Post by egormsen » Wed Apr 11, 2018 10:22 am

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?
Eldon Gormsen
Weigh Down Ministries
AC Gold R12 SR1
http://store.weighdown.com

jguengerich
Commodore (COMO)
Commodore (COMO)
Posts: 436
Joined: Tue May 07, 2013 1:59 pm

Re: Template for specific product

Post by jguengerich » Thu Apr 12, 2018 1:26 am

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.).
Jay

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Template for specific product

Post by AbleMods » Tue Apr 17, 2018 1:13 am

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.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Post Reply