2. sql/customcontacts_setup/mysql4-install-0.1.0.php
Manually inserting a custom email template straight into the database.
This isn’t really a necessary step because you could just create one
manually by going to System > Transactional Emails. To save you a bit of
time I’ve set up a really basic one which is very similar to the standard
contact form email template.
4. etc/config.xml
When creating frontend router, specified it as ‘custom-contact’. You can change this
to something more appropriate.
1 | <routers>
2 | <customcontacts>
3 | <use>standard</use>
4 | <args>
5 | <module>Creare_Customcontacts</module>
6 | <frontName>custom-contact</frontName>
7 | </args>
8 | </customcontacts>
9 | </routers>
5. During the setup script, create a transactional email template, but it’s not
possible to set this as a default with your form. So, you have to set a default
form from the locale unless you want to go and create your own html form in
the locale. The following goes within the global node:
1 | <template>
2 | <email>
3 | <contacts_customemail_email_template translate="label">
4 | <label>Contacts</label>
5 | <file>contact_form.html</file>
6 | <type>text</type>
7 | </contacts_customemail_email_template>
8 | </email>
9 | </template>
6. Following goes within the default node. This is just the process of assigning defaults to
the new config fields.
1<default>
2 <contacts>
3 <customcontacts>
4 <enabled>1</enabled>
5 </customcontacts>
6 <customemail>
7 <recipient_email><![CDATA[hello@example.com]]></recipient_email>
8 <sender_email_identity>custom2</sender_email_identity>
9 <email_template>contacts_customemail_email_template</email_template>
10 </customemail>
11 </contacts>
12</default>
8. If you leave the config.xml settings as default you will be able to go to
yourdomain.com/custom-contacts to view your form. It will look identical to the
normal contact form. Now you can add as many extra fields as you want to the
template file without effecting the standard contact form. It can be found in the
base/default theme at customcontacts/form.
9. KGN Technologies is a one-stop solution for any of your Magento ecommerce web
development requirements. Our team of expert Magento developers is well trained and
capable to develop most complex Magento websites. We can convert PSDs to pixel perfect
Magento theme including developing Responsive Magento websites, custom Magento
development, Integrating third party Systems with Magento, Payment Gateway
implementation, maintenance and support work.
Please contact us to know more about our price, examples and hiring models. We have a
good strong portfolio to share and proven offshore Magento development methodology
which can help you in reduction of development cost.
Contact details :
Email_id : info@kgntechnologies.com
Website : www.kgntechnologies.com