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

Contacts Page
 
whoscart
Sr. Member
 
Total Posts:  120
Joined:  2008-02-23
 

How do I list additional contact information on the Contacts page? I know that the contact form displays there but I would like to have a section below that specifying the different corporate departments and contact info for each (Just for display and informational purposes).

 
Magento Community Magento Community
Magento Community
Magento Community
 
Martin
Guru
 
Avatar
Total Posts:  445
Joined:  2007-08-31
Brno | London | Los Angeles
 

1. Open __MAGENTO_ROOT__/app/design/frontend/__YOUR_THEME__/default/template/contacts/form.phtml and add following code wherever you want to display your additional contact informations (above / below contact form):

<?=$this->getLayout()->createBlock('cms/block')->setBlockId('contacts')->toHtml()?>

2. create new static block called contacts and fill in all desired informations

3. save contacts static block

4. hit the “Contact Us” link and enjoy it wink

5. you may need refresh the cache in case there’ll be no change on “Contact Us” page

 
Magento Community Magento Community
Magento Community
Magento Community
 
whoscart
Sr. Member
 
Total Posts:  120
Joined:  2008-02-23
 

Thanks. That worked. I do have another question about this though. Would you happen to know how I could add a dropdown menu on the contact form for the different departments I have which would be required for the customer to specify?

For example: sales, technical, billing, etc.

That way, when a person selects the sales tab, the contact form will send the submission to ‘sales@mycompany.com’. Or if they select the technical support tab, the contact form will send the submission to ‘support@mycompany.com’, etc.

 
Magento Community Magento Community
Magento Community
Magento Community
 
whoscart
Sr. Member
 
Total Posts:  120
Joined:  2008-02-23
 

Anyone know how to do this? I’d rather have this than just list email addresses for customer reference.

 
Magento Community Magento Community
Magento Community
Magento Community
 
PattyR
Jr. Member
 
Total Posts:  13
Joined:  2008-08-13
 

I have been working on a dropdown menu for the contact form as well, and I can get the form to show up and function for the user on the website, but it is not showing the results of the dropdown in the submitted email.

I added the following code to the form.phtml file

<div class="input-box">
                   <
label for="dropdown"><?php echo Mage::helper('contacts')->__('How did you hear about us?'?></label><br />
                   <
select name="dropdown" id="dropdown" title="<?php echo Mage::helper('contacts')->__('How did you hear about us') ?>" value="" class="input-text" type="dropdown" /> 
                   <
option value="no answer" selected>Please select one...</option>
                   <
option value="mail">Direct Mail</option>
                   <
option value="business card">Business Card</option>
                   <
option value="referral">Friend Referral</option>
                   <
option value="brochure flyer">Brochure/Flyer</option>
                   <
option value="fundraiser">Fundraising Campaign</option>
                   <
option value="tradeshow">Trade Show</option>
                   <
option value="newspaper">Newspaper/Magazine article</option>
                   <
option value="advertisement">Advertisement</option>
                   <
option value="Other">Other</option>
                  </
select>
                </
div>

and then I went to the Admin Panel/System/Transaction Emails and clicked “Add New Template”.  Then from the ‘Template’ dropdown box I selected ‘Contact Form’, Clicked ‘Load Template’, and then under template content I have the following code:

Name{{var data.name}}
E
-mail{{var data.email}}
Telephone
{{var data.telephone}}
How did you hear about us
{{var data.dropdown}}

Comment
{{var data.comment}}

Anyone explain why the selected option is not showing in the email???

 
Magento Community Magento Community
Magento Community
Magento Community
 
MageWorxcom
Guru
 
Avatar
Total Posts:  410
Joined:  2009-06-03
Washington DC Metro Area, US
 

There is also another solution for Magento contacts page

 
Magento Community Magento Community
Magento Community
Magento Community
 
mages_brights
Jr. Member
 
Total Posts:  3
Joined:  2013-10-08
 

ck it

http://www.magentocommerce.com/magento-connect/extended-contacts-magento-extension.html

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