Author Topic: Customizing e-mail notification based on item purchased  (Read 574 times)

gigifinn

  • Beginner
  • *
  • Posts: 10
Customizing e-mail notification based on item purchased
« on: July 15, 2011, 02:11:37 am »
Has anyone had the need to change the text in the e-mail message in the notification e-mail based on the item that was purchased?  For example if the user purchases a membership, I want the text to read one thing.  If they make a donation, I want the text to read another thing.

I am a total newbie, so any help you can offer would be greatly appreciated!

Thanks,
Gina

zorkhh

  • Advanced
  • Jr. Member
  • *****
  • Posts: 245
    • vm-expert.com
Re: Customizing e-mail notification based on item purchased
« Reply #1 on: July 15, 2011, 02:20:40 am »
Hello,

there is a template for the order-emails: /components/com_virtuemart/themes/default/templates/order_emails/confirmation_email.tpl.php

You can extend the code in this file to display different content depending on different conditions. This will require some coding - but that's the place where you could do it...

Thomas
Virtuemart Professional Support at http://www.vm-expert.com

Visit the large Virtuemart Group on Joomla.org: http://people.joomla.org/groups/viewgroup/30-Virtuemart.html

gigifinn

  • Beginner
  • *
  • Posts: 10
Re: Customizing e-mail notification based on item purchased
« Reply #2 on: July 15, 2011, 02:34:51 am »
Thank you so much for the information!  The coding piece I can handle...I think.  But I have been having a heck of a time following the process flow taken by the notifications.  This gives me a place to start.

Thanks again!