Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Contact form for multiple email addresses

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-04-2013, 03:49 PM
 
tgr tgr is offline
 

Advanced Member
  
Join Date: Apr 2012
Posts: 30
 

Default Contact form for multiple email addresses

Hello, I am trying to add optional email addresses for the contact us form. I have 3 departments (Sales, Technical, and Web design) that all have different email addresses. I see you can select a department when sending a message from the customer contact form but, the department value doesn't change where the email goes and doesn't display in the email subject line, it is only visible once you open the email. Unfortunately I am not a programmer I have looked in to the /include/help.php/ file to make this happen but this is a little over my head. The idea is,

If department value=sales
send to sales@website.com
ElseIf department value=Technical
send to tech@website.com
Else
send to webdesign@website.com

Is this possible? Already available as a module or extension?

If this is not possible, I'd be interested in finding out how to add the department value to the subject line of the emails coming from the contact form. This would be useful in forwarding mail without having to open each email.

Any assistance or direction is most appreciated.

Thanks,
Charles

4.5.x Gold mobile
__________________
4.4.5-Gold
Reply With Quote
  #2  
Old 11-05-2013, 06:20 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Contact form for multiple email addresses

Are you sure it doesn't send to different departments already? That would surprise me. Check what email addresses are set for the different departments in General Settings> Company. Near the bottom of the page, are there different email addresses set? And it doesn't send to the different emails? Sorry for double checking something obvious, I always assumed that worked.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
tgr (11-27-2013)
  #3  
Old 11-05-2013, 08:12 PM
 
tgr tgr is offline
 

Advanced Member
  
Join Date: Apr 2012
Posts: 30
 

Default Re: Contact form for multiple email addresses

Thanks for responding Mike, nothing wrong with double-checking. I have the Company emails set up with separate addresses and the Company "from" email is blank. All notifications are being delivered to their proper addresses. The kink in the system is that you must assign an email address to the Help/Support department and all emails from the "contact us" page are routed to that one address. I did try it without assigning an address for Help/Support and it caused an error and failed to send the message. I was hoping it would direct the message to the right department, but no.
__________________
4.4.5-Gold
Reply With Quote
  #4  
Old 11-27-2013, 02:25 PM
 
tgr tgr is offline
 

Advanced Member
  
Join Date: Apr 2012
Posts: 30
 

Default Re: Contact form for multiple email addresses

In order to add the "Department" to the subject line of emails coming from the Contact Us page, you will need to edit the help_contactus_subj.tpl file. The file location is /common_files/mail/help_contactus_subj.tpl.

Find:
{config_load file="$skin_config"}{$config.Company.company_name} : {$lng.eml_contact_us_subj}

And change to:
{config_load file="$skin_config"}{$config.Company.company_name} - {$contact.department}: {$lng.eml_contact_us_subj}

That's it.

I am still very interested in finding a solution to direct the email to the separate email addresses of each department. If anyone has some direction on where I might start, suggestion, or solution, my ears are wide open.

Thanks for reading.
__________________
4.4.5-Gold
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:11 PM.

   

 
X-Cart forums © 2001-2020