Magento Forum

   
How do I add fields to the Contacts page? 
 
winzippy
Sr. Member
 
Avatar
Total Posts:  101
Joined:  2008-02-08
Rochester, NY, USA
 

I have one extra field added, with validation, but the the field isn’t getting added to the message body. Where do the Contact Us fields get added?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Kara Heinrichs
Guru
 
Avatar
Total Posts:  482
Joined:  2008-01-17
aa, mi, us
 

I think you just need to also add your new field to the email template.

In Admin > System > Transactional emails, if you click to “Add New Template” you can select the “Contact Form” for “English (United States” as a template and locale. 

The template contains:

Name{{var data.name}}
E
-mail{{var data.email}}
Telephone
{{var data.telephone}}
Comment
{{var data.comment}}

Add your field and give it a new template name.  Then to actually use it you have to go to Admin > System > Configuration > Contacts and assign your new form to the contact email.

Not sure if that’s clear, but it worked for me and hopefully it’ll get you close enough you can work out the specifics for you.

 
Magento Community Magento Community
Magento Community
Magento Community
 
winzippy
Sr. Member
 
Avatar
Total Posts:  101
Joined:  2008-02-08
Rochester, NY, USA
 

Kara,

Thanks for your input. I got it working no problem. I just had to add the smarty tags to the email template.

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