Contact Us Page

Hi All

I want to edit the Contact us page so i can put in some introductary text and additional information. Also i want to include a Pulldown so you can select the kind of subject they are contacting you about:

General Enquiry
Callback Request
Feedback

Please can you tell me the file & line of code i need to edit?

2 answers

congtq 0.00 $tone August 16, 2010
Public

Hi.
You can do following instructions:
1. Open app\design\frontend\base\defaulttemplate and copy contacts folder to app\design\frontend\default\jm_rasitetemplate folder
2. Open app\design\frontend\default\jm_rasitetemplate\con tacts\form.phtml file and add this code at where you want to display introductary text and additional information

Code:

<div><?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('contact-us')->toHtml() ?></div>

and kind of subject

Code:

<li>
	<label for="subject"><?php echo Mage::helper('contacts')->__('Subject') ?></label>
	<div class="input-box">
		<select name="subject">
			<option value=""><?php echo Mage::helper('contacts')->__('Select a subject') ?></option>
			<option value="GeneralEnquiry"><?php echo Mage::helper('contacts')->__('General Enquiry') ?></option>
			<option value="CallbackRequest"><?php echo Mage::helper('contacts')->__('Callback Request') ?></option>
			<option value="Feedback"><?php echo Mage::helper('contacts')->__('Feedback') ?></option>				
		</select>
	</div>
</li>

3. Go to Admin -> CMS -> Static Blocks and Add New Block with Identifier is "contact-us"

#1
rhys_daniels 0.00 $tone September 25, 2010
Public

I have implemented the solution and its great, got 2 more questions regarding the contact form

1. Is it possible to link to the contact form and pass the dropdown option, so it is then applied on the form
e.g.http://www.yoursite.com/index.php/co…allbackRequest , will then apply "Callback Request" in the pulldown list.

2. Is it possible to have multiple contact forms if needed in the same contacts folder

#2

This question is now closed

Written By

Comments