Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Add custome e-mail to specific products
 
kevinjmcmahonjr
Jr. Member
 
Total Posts:  4
Joined:  2013-01-22
 

Hi,

I’m trying to figure out how to produce a custom e-mail to be sent when certain products are purchase. The client wants additional information to be provide to the customer after the purchase in completed. I was initially trying to see if I could modify the existing confirmation e-mail template to check the order for the product and include the additional information in there, but from what I gather there are no variables available in the e-mail templates that would provide information on products contained in the order.

Is it possible to modify the confirmation template in this way? Or can there be a custom e-mail template created for this product and send it in addition to the confirmation e-mail whenever a specific product is ordered?

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
kevinjmcmahonjr
Jr. Member
 
Total Posts:  4
Joined:  2013-01-22
 

Any ideas? Is this possible? Did I post the topic in the wrong thread?

Please help! Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
Siggi_Schmitz
Enthusiast
 
Avatar
Total Posts:  811
Joined:  2011-07-03
 

Hi,

add an own transaction email template, write your own extension, add an observer for the event sales_oder_save_after, get the order object from the parameter in your observer method, get all products from the order and when the product which you want is there, then send an own email to the customer with sendTransactional().

 
Magento Community Magento Community
Magento Community
Magento Community
 
kevinjmcmahonjr
Jr. Member
 
Total Posts:  4
Joined:  2013-01-22
 

Yikes, I’m about half way through Section 2 of the Magento Developer Video, I think I’m still a few weeks off from figuring this one out. I get what you’re saying, but don’t exactly have the knowledge yet to pull it off without further instruction.

Thanks for the reply.

 
Magento Community Magento Community
Magento Community
Magento Community
 
micosolutions
Jr. Member
 
Avatar
Total Posts:  20
Joined:  2010-09-18
Southern California, USA
 

We created Product Ordered Emails extension for this exact use case. You can send additional custom email to customer and vendor when a certain product is purchased. The email templates are managed in the default transactional email templates section in the admin area. Products can have their own individual email templates assigned to them or they can share the same one, if they do share the same custom email template only one email will get sent out instead of many. Same goes for vendors, if a customer purchases 5 items from the same vendor and if each item has the same product email template assigned to them, the vendor will receive one email with all the data you want to include. You can provide the entire order details (customer contact, address, etc.) and all the products in the order Or you can create your own custom emails not related to product data at all. If many items from many different vendors are ordered, only the items that belong to that vendor are included in the email. Check it out when you have time, it\\\’s really great!

(update: we just added a customize php file that allows the user to add their own custom PHP logic to the process as well, e.g. imagine the need to send SALT coupon codes for affiliate sites after specific products are purchased)

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top