contactforpin - Version 1.6.1

Version Notes

Customer contact form extension is a contact form which saves the customer details into the database, and also send an email to the admin support mail and admin can export customer details.

Download this release

Release Info

Developer Naveenbos
Extension contactforpin
Version 1.6.1
Comparing to
See all releases


Version 1.6.1

Files changed (22) hide show
  1. app/code/community/Suyati/Contactforpin/Block/Adminhtml/Contactforpin.php +26 -0
  2. app/code/community/Suyati/Contactforpin/Block/Adminhtml/Contactforpin/Edit.php +33 -0
  3. app/code/community/Suyati/Contactforpin/Block/Adminhtml/Contactforpin/Edit/Form.php +27 -0
  4. app/code/community/Suyati/Contactforpin/Block/Adminhtml/Contactforpin/Edit/Tab/Form.php +60 -0
  5. app/code/community/Suyati/Contactforpin/Block/Adminhtml/Contactforpin/Edit/Tabs.php +32 -0
  6. app/code/community/Suyati/Contactforpin/Block/Adminhtml/Contactforpin/Grid.php +110 -0
  7. app/code/community/Suyati/Contactforpin/Block/Contactforpin.php +19 -0
  8. app/code/community/Suyati/Contactforpin/Helper/Data.php +21 -0
  9. app/code/community/Suyati/Contactforpin/Model/Contactforpin.php +10 -0
  10. app/code/community/Suyati/Contactforpin/Model/Mysql4/Contactforpin.php +13 -0
  11. app/code/community/Suyati/Contactforpin/Model/Mysql4/Contactforpin/Collection.php +9 -0
  12. app/code/community/Suyati/Contactforpin/controllers/Adminhtml/ContactforpinController.php +56 -0
  13. app/code/community/Suyati/Contactforpin/controllers/IndexController.php +134 -0
  14. app/code/community/Suyati/Contactforpin/etc/config.xml +125 -0
  15. app/code/community/Suyati/Contactforpin/sql/Suyati_Contactforpin_setup/install-1.6.1.php +45 -0
  16. app/code/community/Suyati/Contactforpin/sql/Suyati_Contactforpin_setup/upgrade-1.6.0-1.6.1.php +44 -0
  17. app/design/adminhtml/default/default/layout/contactforpin.xml +8 -0
  18. app/design/frontend/base/default/layout/suyati_contactforpin.xml +25 -0
  19. app/design/frontend/base/default/template/suyati/contactforpin.phtml +74 -0
  20. app/etc/modules/Suyati_Contactforpin.xml +9 -0
  21. app/locale/en_US/template/email/suyati_contactforpin.html +35 -0
  22. package.xml +19 -0
app/code/community/Suyati/Contactforpin/Block/Adminhtml/Contactforpin.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*!
3
+ * http://suyati.com/
4
+ * Suyati_Contactforpin 1.6.1
5
+ * Copyright (C) 2016, Suyati Technologies
6
+ * This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
7
+ This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
8
+ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
9
+ *
10
+ */
11
+ class Suyati_Contactforpin_Block_Adminhtml_Contactforpin extends Mage_Adminhtml_Block_Widget_Grid_Container {
12
+
13
+ /**
14
+ * Set custom labels and headers for the widgets
15
+ *
16
+ */
17
+ public function __construct() {
18
+
19
+ $this->_controller = "adminhtml_contactforpin";
20
+ $this->_blockGroup = "contactforpin";
21
+ $this->_headerText = Mage::helper("contactforpin")->__("Contact Info");
22
+ parent::__construct();
23
+ $this->_removeButton('add');
24
+ }
25
+
26
+ }
app/code/community/Suyati/Contactforpin/Block/Adminhtml/Contactforpin/Edit.php ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*!
3
+ * http://suyati.com/
4
+ * Suyati_Contactforpin 1.6.1
5
+ * Copyright (C) 2016, Suyati Technologies
6
+ * This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
7
+ This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
8
+ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
9
+ *
10
+ */
11
+ class Suyati_Contactforpin_Block_Adminhtml_Contactforpin_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
12
+ {
13
+ public function __construct()
14
+ {
15
+ parent::__construct();
16
+
17
+ $this->_objectId = 'id';
18
+ $this->_blockGroup = 'contactforpin';
19
+ $this->_controller = 'adminhtml_contactforpin';
20
+
21
+ $this->_updateButton('save', 'label', Mage::helper('contactforpin')->__('Save Item'));
22
+ $this->_updateButton('delete', 'label', Mage::helper('contactforpin')->__('Delete Item'));
23
+ }
24
+
25
+ public function getHeaderText()
26
+ {
27
+ if( Mage::registry('contactforpin_data') && Mage::registry('contactforpin_data')->getId() ) {
28
+ return Mage::helper('contactforpin')->__("Edit Item '%s'", $this->htmlEscape(Mage::registry('contactforpin_data')->getTitle()));
29
+ } else {
30
+ return Mage::helper('contactforpin')->__('Add Item');
31
+ }
32
+ }
33
+ }
app/code/community/Suyati/Contactforpin/Block/Adminhtml/Contactforpin/Edit/Form.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*!
3
+ * http://suyati.com/
4
+ * Suyati_Contactforpin 1.6.1
5
+ * Copyright (C) 2016, Suyati Technologies
6
+ * This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
7
+ This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
8
+ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
9
+ *
10
+ */
11
+ class Suyati_Contactforpin_Block_Adminhtml_Contactforpin_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
12
+ {
13
+ protected function _prepareForm()
14
+ {
15
+ $form = new Varien_Data_Form(array(
16
+ 'id' => 'edit_form',
17
+ 'action' => $this->getUrl('*/*/save', array('id' => $this->getRequest()->getParam('id'))),
18
+ 'method' => 'post',
19
+ )
20
+ );
21
+
22
+ $form->setUseContainer(true);
23
+ $this->setForm($form);
24
+ return parent::_prepareForm();
25
+ }
26
+ }
27
+
app/code/community/Suyati/Contactforpin/Block/Adminhtml/Contactforpin/Edit/Tab/Form.php ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*!
3
+ * http://suyati.com/
4
+ * Suyati_Contactforpin 1.6.1
5
+ * Copyright (C) 2016, Suyati Technologies
6
+ * This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
7
+ This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
8
+ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
9
+ *
10
+ */
11
+ class Suyati_Contactforpin_Block_Adminhtml_Contactforpin_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
12
+ {
13
+ protected function _prepareForm()
14
+ {
15
+ $form = new Varien_Data_Form();
16
+ $this->setForm($form);
17
+ $fieldset = $form->addFieldset('contactforpin_form', array('legend'=>Mage::helper('contactforpin')->__('Item information')));
18
+
19
+ $fieldset->addField('name', 'text', array(
20
+ 'label' => Mage::helper('contactforpin')->__('Title'),
21
+ 'class' => 'required-entry',
22
+ 'required' => true,
23
+ 'name' => 'title',
24
+ ));
25
+
26
+ /*$fieldset->addField('status', 'select', array(
27
+ 'label' => Mage::helper('contactforpin')->__('Status'),
28
+ 'name' => 'status',
29
+ 'values' => array(
30
+ array(
31
+ 'value' => 1,
32
+ 'label' => Mage::helper('contactforpin')->__('Active'),
33
+ ),
34
+
35
+ array(
36
+ 'value' => 0,
37
+ 'label' => Mage::helper('contactforpin')->__('Inactive'),
38
+ ),
39
+ ),
40
+ ));*/
41
+
42
+ $fieldset->addField('content', 'editor', array(
43
+ 'name' => 'content',
44
+ 'label' => Mage::helper('contactforpin')->__('Content'),
45
+ 'title' => Mage::helper('contactforpin')->__('Content'),
46
+ 'style' => 'width:98%; height:400px;',
47
+ 'wysiwyg' => false,
48
+ 'required' => true,
49
+ ));
50
+
51
+ if ( Mage::getSingleton('adminhtml/session')->getContactforpinData() )
52
+ {
53
+ $form->setValues(Mage::getSingleton('adminhtml/session')->getContactforpinData());
54
+ Mage::getSingleton('adminhtml/session')->setContactforpinData(null);
55
+ } elseif ( Mage::registry('contactforpin_data') ) {
56
+ $form->setValues(Mage::registry('contactforpin_data')->getData());
57
+ }
58
+ return parent::_prepareForm();
59
+ }
60
+ }
app/code/community/Suyati/Contactforpin/Block/Adminhtml/Contactforpin/Edit/Tabs.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*!
3
+ * http://suyati.com/
4
+ * Suyati_Contactforpin 1.6.1
5
+ * Copyright (C) 2016, Suyati Technologies
6
+ * This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
7
+ This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
8
+ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
9
+ *
10
+ */
11
+ class Suyati_Contactforpin_Block_Adminhtml_Contactforpin_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
12
+ {
13
+
14
+ public function __construct()
15
+ {
16
+ parent::__construct();
17
+ $this->setId('contactforpin_tabs');
18
+ $this->setDestElementId('edit_form');
19
+ $this->setTitle(Mage::helper('contactforpin')->__('News Information'));
20
+ }
21
+
22
+ protected function _beforeToHtml()
23
+ {
24
+ $this->addTab('form_section', array(
25
+ 'label' => Mage::helper('contactforpin')->__('Item Information'),
26
+ 'title' => Mage::helper('contactforpin')->__('Item Information'),
27
+ 'content' => $this->getLayout()->createBlock('contactforpin/adminhtml_contactforpin_edit_tab_form')->toHtml(),
28
+ ));
29
+
30
+ return parent::_beforeToHtml();
31
+ }
32
+ }
app/code/community/Suyati/Contactforpin/Block/Adminhtml/Contactforpin/Grid.php ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Suyati_Contactforpin_Block_Adminhtml_Contactforpin_Grid extends Mage_Adminhtml_Block_Widget_Grid
4
+ {
5
+ public function __construct()
6
+ {
7
+ parent::__construct();
8
+ $this->setId('contactforpinGrid');
9
+ // This is the primary key of the database
10
+ $this->setDefaultSort('entity_id');
11
+ $this->setDefaultDir('ASC');
12
+ $this->setSaveParametersInSession(true);
13
+ }
14
+
15
+ protected function _prepareCollection()
16
+ {
17
+ $collection = Mage::getModel('contactforpin/contactforpin')->getCollection();
18
+ $this->setCollection($collection);
19
+ return parent::_prepareCollection();
20
+ }
21
+
22
+ protected function _prepareColumns()
23
+ {
24
+ $this->addColumn('entity_id', array(
25
+ 'header' => Mage::helper('contactforpin')->__('ID'),
26
+ 'align' =>'right',
27
+ 'width' => '50px',
28
+ 'index' => 'entity_id',
29
+ 'filter' => false,
30
+ ));
31
+
32
+ $this->addColumn('name', array(
33
+ 'header' => Mage::helper('contactforpin')->__('Name'),
34
+ 'align' =>'left',
35
+ 'index' => 'name',
36
+ 'filter' => false,
37
+ ));
38
+ $this->addColumn('email', array(
39
+ 'header' => Mage::helper('contactforpin')->__('Email'),
40
+ 'align' =>'left',
41
+ 'index' => 'email',
42
+ 'width' => '300px',
43
+ 'filter' => false,
44
+ ));
45
+ $this->addColumn('mobile', array(
46
+ 'header' => Mage::helper('contactforpin')->__('Mobile'),
47
+ 'align' =>'left',
48
+ 'index' => 'mobile',
49
+ 'filter' => false,
50
+ ));
51
+ $this->addColumn('location', array(
52
+ 'header' => Mage::helper('contactforpin')->__('Location'),
53
+ 'align' =>'left',
54
+ 'index' => 'location',
55
+ 'filter' => false,
56
+ ));
57
+ $this->addColumn('pincode', array(
58
+ 'header' => Mage::helper('contactforpin')->__('Pincode'),
59
+ 'align' =>'left',
60
+ 'index' => 'pincode',
61
+ 'filter' => false,
62
+ ));
63
+ /*$this->addColumn('city', array(
64
+ 'header' => Mage::helper('contactforpin')->__('City'),
65
+ 'align' =>'left',
66
+ 'index' => 'city',
67
+ 'filter' => false,
68
+ ));*/
69
+
70
+ /*
71
+ $this->addColumn('content', array(
72
+ 'header' => Mage::helper('<module>')->__('Item Content'),
73
+ 'width' => '150px',
74
+ 'index' => 'content',
75
+ ));
76
+ */
77
+
78
+ $this->addColumn('created_date', array(
79
+ 'header' => Mage::helper('contactforpin')->__('Creation Date'),
80
+ 'align' => 'left',
81
+ 'width' => '220px',
82
+ 'type' => 'datetime',
83
+ 'filter' => false,
84
+ 'default' => '--',
85
+ 'index' => 'created_date',
86
+ ));
87
+
88
+ /*$this->addColumn('update_date', array(
89
+ 'header' => Mage::helper('contactforpin')->__('Update Date'),
90
+ 'align' => 'left',
91
+ 'width' => '120px',
92
+ 'type' => 'date',
93
+ 'default' => '--',
94
+ 'index' => 'update_time',
95
+ )); */
96
+
97
+
98
+ $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
99
+
100
+ return parent::_prepareColumns();
101
+ }
102
+
103
+ public function getRowUrl($row)
104
+ {
105
+ return false;
106
+ // return $this->getUrl('*/*/edit', array('id' => $row->getId()));
107
+ }
108
+
109
+
110
+ }
app/code/community/Suyati/Contactforpin/Block/Contactforpin.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*!
3
+ * http://suyati.com/
4
+ * Suyati_Contactforpin 1.6.1
5
+ * Copyright (C) 2016, Suyati Technologies
6
+ * This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
7
+ This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
8
+ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
9
+ *
10
+ */
11
+ class Suyati_Contactforpin_Block_Contactforpin extends Mage_Core_Block_Template {
12
+
13
+ public function _prepareLayout()
14
+ {
15
+ return parent::_prepareLayout();
16
+ }
17
+
18
+
19
+ }
app/code/community/Suyati/Contactforpin/Helper/Data.php ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*!
3
+ * http://suyati.com/
4
+ * Suyati_Contactforpin 1.6.1
5
+ * Copyright (C) 2016, Suyati Technologies
6
+ * This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
7
+ This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
8
+ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
9
+ *
10
+ */
11
+ class Suyati_Contactforpin_Helper_Data extends Mage_Core_Helper_Abstract
12
+ {
13
+ public function getCities() {
14
+ $connection = Mage::getSingleton('core/resource')->getConnection('core_read');
15
+ $sql = "select DISTINCT city_name from saplocation";
16
+ $rows = $connection->fetchAll($sql);
17
+ return $rows;
18
+ }
19
+
20
+
21
+ }
app/code/community/Suyati/Contactforpin/Model/Contactforpin.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Suyati_Contactforpin_Model_Contactforpin extends Mage_Core_Model_Abstract
4
+ {
5
+ protected function _construct(){
6
+ $this->_init("contactforpin/contactforpin");
7
+ }
8
+
9
+ }
10
+
app/code/community/Suyati/Contactforpin/Model/Mysql4/Contactforpin.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Suyati_Contactforpin_Model_Mysql4_Contactforpin extends Mage_Core_Model_Mysql4_Abstract
3
+ {
4
+ /**
5
+ * Initialize resource model
6
+ *
7
+ * @return void
8
+ */
9
+ public function _construct()
10
+ {
11
+ $this->_init('contactforpin/contactforpin', 'entity_id');
12
+ }
13
+ }
app/code/community/Suyati/Contactforpin/Model/Mysql4/Contactforpin/Collection.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Suyati_Contactforpin_Model_Mysql4_Contactforpin_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
3
+ {
4
+ public function _construct()
5
+ {
6
+ parent::_construct();
7
+ $this->_init('contactforpin/contactforpin');
8
+ }
9
+ }
app/code/community/Suyati/Contactforpin/controllers/Adminhtml/ContactforpinController.php ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*!
3
+ * http://suyati.com/
4
+ * Suyati_Contactforpin 1.6.1
5
+ * Copyright (C) 2016, Suyati Technologies
6
+ * This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
7
+ This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
8
+ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
9
+ *
10
+ */
11
+
12
+ class Suyati_Contactforpin_Adminhtml_ContactforpinController extends Mage_Adminhtml_Controller_Action
13
+ {
14
+ /**
15
+ * [_isAllowed for admin group view]
16
+ * @return boolean
17
+ */
18
+ protected function _isAllowed()
19
+ {
20
+ return true;
21
+ }
22
+
23
+ /**
24
+ * Set active menu and Breadcrumb
25
+ * @return \Suyati_Contactforpin_ContactforpinController
26
+ */
27
+ protected function _initAction() {
28
+ $this->loadLayout()
29
+ ->_setActiveMenu("contactforpin/contactforpin");
30
+ return $this;
31
+ }
32
+
33
+ /**
34
+ * [indexAction Contactforpin]
35
+ * @return [type] [Contactforpin]
36
+ */
37
+ public function indexAction()
38
+ {
39
+ $this->_title($this->__("Contactforpin"));
40
+ $this->_initAction();
41
+ $this->renderLayout();
42
+
43
+ }
44
+
45
+ /**
46
+ * Export order grid to CSV format
47
+ */
48
+ public function exportCsvAction() {
49
+ $fileName = 'contactinformation.csv';
50
+ $grid = $this->getLayout()->createBlock('contactforpin/adminhtml_contactforpin_grid');
51
+ $this->_prepareDownloadResponse($fileName, $grid->getCsvFile());
52
+ }
53
+
54
+
55
+
56
+ }
app/code/community/Suyati/Contactforpin/controllers/IndexController.php ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*!
3
+ * http://suyati.com/
4
+ * Suyati_Contactforpin 1.6.1
5
+ * Copyright (C) 2016, Suyati Technologies
6
+ * This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
7
+ This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
8
+ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
9
+ *
10
+ */
11
+ class Suyati_Contactforpin_IndexController extends Mage_Core_Controller_Front_Action
12
+ {
13
+ /**
14
+ * [indexAction description]
15
+ * @return [type] [description]
16
+ */
17
+ public function indexAction()
18
+ {
19
+ $this->loadLayout();
20
+ $this->renderLayout();
21
+ }
22
+
23
+ /**
24
+ * [postAction contact info action]
25
+ * @return
26
+ */
27
+ public function postAction()
28
+ {
29
+ $post = $this->getRequest()->getPost();
30
+
31
+ if ($this->getRequest()->isPost() && $this->getRequest()->getPost('email')) {
32
+
33
+ $session = Mage::getSingleton('core/session');
34
+ $customerSession = Mage::getSingleton('customer/session');
35
+ $firstname = $this->getRequest()->getPost('firstname');
36
+ $email = (string) $this->getRequest()->getPost('email');
37
+ $telephone = $this->getRequest()->getPost('phone1');
38
+ $pincode = $this->getRequest()->getPost('pincode');
39
+ $location = $this->getRequest()->getPost('location');
40
+
41
+
42
+
43
+ try {
44
+
45
+ if (!Zend_Validate::is($email, 'EmailAddress')) {
46
+ Mage::throwException($this->__('Please enter a valid email address.'));
47
+ }
48
+
49
+ if (!Zend_Validate::is(trim($firstname), 'NotEmpty')) {
50
+ Mage::throwException($this->__('Please enter a First name.'));
51
+ }
52
+
53
+ if (!Zend_Validate::is(trim($telephone), 'NotEmpty')) {
54
+ Mage::throwException($this->__('Please enter a Telephone.'));
55
+ }
56
+
57
+
58
+
59
+
60
+ $emailTemplate = Mage::getModel('core/email_template')->loadDefault('suyati_contactforpin');
61
+
62
+
63
+ //Create an array of template variables to assign to template
64
+ $emailTemplateVariables = array();
65
+ $emailTemplateVariables['firstname'] = $firstname;
66
+ $emailTemplateVariables['email'] = $email;
67
+ $emailTemplateVariables['telephone'] = $telephone;
68
+ $emailTemplateVariables['pincode'] = $pincode;
69
+ $emailTemplateVariables['location'] = $location;
70
+
71
+ /**
72
+ * [$actualTemplate passing tempalte variables and receiving the actual template]
73
+ *
74
+ */
75
+ $actualTemplate = $emailTemplate->getProcessedTemplate($emailTemplateVariables);
76
+
77
+ // Getting the admin assigned general email contact
78
+
79
+
80
+ $toadmin_email = Mage::getStoreConfig('trans_email/ident_support/email');
81
+ if ($toadmin_email!="") {
82
+ $toadmin_email = $toadmin_email;
83
+ } else {
84
+ $toadmin1_email = Mage::getStoreConfig('trans_email/ident_support/email');
85
+ if ($toadmin1_email!="") {
86
+ $toadmin_email = $toadmin1_email;
87
+ } else {
88
+ $toadmin_email = Mage::getStoreConfig('trans_email/ident_general/email');
89
+ }
90
+
91
+ }
92
+ $dt = date('d-m-Y H:i:s');
93
+ $mail = Mage::getModel("core/email")
94
+ ->setToEmail($toadmin_email)
95
+ ->setBody($actualTemplate)
96
+ ->setSubject("Contact details submitted for adding pin on date $dt")
97
+ ->setFromEmail($email)
98
+ ->setFromName($firstname)
99
+ ->setType("html");
100
+
101
+
102
+
103
+ $contact = Mage::getModel('contactforpin/contactforpin');
104
+ $contact->setData('name', $firstname);
105
+ $contact->setData('email', $email);
106
+ $contact->setData('mobile', $telephone);
107
+ $contact->setData('location', $location);
108
+ $contact->setData('pincode', $pincode);
109
+ $contact->setData('created_date', $dt);
110
+ $contact->save();
111
+ $session->addSuccess($this->__('Your Request has been received. One of our sales representatives will contact you shortly.'));
112
+ if ($mail->send()) {
113
+ }
114
+
115
+ $this->_redirectReferer();
116
+
117
+ } catch (Mage_Core_Exception $e) {
118
+ $session->addException($e, $this->__('There was a problem with the sign up: %s', $e->getMessage()));
119
+ $this->_redirectReferer();
120
+ }
121
+ catch (Exception $e) {
122
+ $session->addException($e, $this->__('There was a problem with the sign up.'));
123
+ $this->_redirectReferer();
124
+ }
125
+
126
+ } else {
127
+ $this->_redirect('*/*/');
128
+ }
129
+ }
130
+
131
+
132
+
133
+
134
+ }
app/code/community/Suyati/Contactforpin/etc/config.xml ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Suyati_Contactforpin>
5
+ <version>1.6.1</version>
6
+ </Suyati_Contactforpin>
7
+ </modules>
8
+ <frontend>
9
+ <routers>
10
+ <Contactforpin>
11
+ <use>standard</use>
12
+ <args>
13
+ <module>Suyati_Contactforpin</module>
14
+ <frontName>contactinfo</frontName>
15
+ </args>
16
+ </Contactforpin>
17
+ </routers>
18
+
19
+ <layout>
20
+ <updates>
21
+ <Contactforpin>
22
+ <file>suyati_contactforpin.xml</file>
23
+ </Contactforpin>
24
+ </updates>
25
+ </layout>
26
+ </frontend>
27
+ <global>
28
+ <helpers>
29
+ <contactforpin>
30
+ <class>Suyati_Contactforpin_Helper</class>
31
+ </contactforpin>
32
+ </helpers>
33
+ <template>
34
+ <email>
35
+ <suyati_contactforpin module="contactforpin">
36
+ <label>Contactforpin Email</label>
37
+ <file>suyati_contactforpin.html</file>
38
+ <type>html</type>
39
+ </suyati_contactforpin>
40
+ </email>
41
+ </template>
42
+
43
+ <blocks>
44
+ <contactforpin>
45
+ <class>Suyati_Contactforpin_Block</class>
46
+ </contactforpin>
47
+ </blocks>
48
+ <models>
49
+ <contactforpin>
50
+ <class>Suyati_Contactforpin_Model</class>
51
+ <resourceModel>contactforpin_mysql4</resourceModel>
52
+ </contactforpin>
53
+ <contactforpin_mysql4>
54
+ <class>Suyati_Contactforpin_Model_Mysql4</class>
55
+ <entities>
56
+ <contactforpin>
57
+ <table>suyati_contactforpin_details</table>
58
+ </contactforpin>
59
+ </entities>
60
+ </contactforpin_mysql4>
61
+ </models>
62
+ <resources>
63
+ <Suyati_Contactforpin_setup>
64
+ <setup>
65
+ <module>Suyati_Contactforpin</module>
66
+ </setup>
67
+ <connection>
68
+ <use>core_setup</use>
69
+ </connection>
70
+ </Suyati_Contactforpin_setup>
71
+ <contactforpin_write>
72
+ <connection>
73
+ <use>core_write</use>
74
+ </connection>
75
+ </contactforpin_write>
76
+ <contactforpin_read>
77
+ <connection>
78
+ <use>core_read</use>
79
+ </connection>
80
+ </contactforpin_read>
81
+ </resources>
82
+ </global>
83
+ <admin>
84
+ <routers>
85
+ <contactforpin>
86
+ <use>admin</use>
87
+ <args>
88
+ <module>Suyati_Contactforpin</module>
89
+ <frontName>admin_contactforpin</frontName>
90
+ </args>
91
+ </contactforpin>
92
+ </routers>
93
+ </admin>
94
+ <adminhtml>
95
+ <menu>
96
+ <contactforpin module="contactforpin">
97
+ <title>Contact Info</title>
98
+ <action>admin_contactforpin/adminhtml_contactforpin</action>
99
+ <sort_order>81</sort_order>
100
+ </contactforpin>
101
+ </menu>
102
+ <acl>
103
+ <resources>
104
+ <all>
105
+ <title>Allow Everything</title>
106
+ </all>
107
+ <admin>
108
+ <children>
109
+ <contactforpin>
110
+ <title>Contactforpin Module</title>
111
+ <sort_order>200</sort_order>
112
+ </contactforpin>
113
+ </children>
114
+ </admin>
115
+ </resources>
116
+ </acl>
117
+ <layout>
118
+ <updates>
119
+ <contactforpin>
120
+ <file>contactforpin.xml</file>
121
+ </contactforpin>
122
+ </updates>
123
+ </layout>
124
+ </adminhtml>
125
+ </config>
app/code/community/Suyati/Contactforpin/sql/Suyati_Contactforpin_setup/install-1.6.1.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $installer = $this;
4
+
5
+ $installer->startSetup();
6
+
7
+ $contactsforPin = $installer->getConnection()->newTable($installer->getTable('suyati_contactforpin_details'))
8
+ ->addColumn('entity_id', Varien_Db_Ddl_Table::TYPE_INTEGER, 11, array(
9
+ 'unsigned' => true,
10
+ 'nullable' => false,
11
+ 'primary' => true,
12
+ 'identity' => true,
13
+ ), 'Contactforpin id')
14
+
15
+ ->addColumn('name', Varien_Db_Ddl_Table::TYPE_VARCHAR, 255, array(
16
+ 'nullable' => false,
17
+ ), 'Name')
18
+
19
+ ->addColumn('email', Varien_Db_Ddl_Table::TYPE_VARCHAR, 255, array(
20
+ 'nullable' => false,
21
+ ), 'Email')
22
+ ->addColumn('mobile', Varien_Db_Ddl_Table::TYPE_VARCHAR, 15, array(
23
+ 'nullable' => false,
24
+ ), 'Mobile')
25
+ ->addColumn('location', Varien_Db_Ddl_Table::TYPE_VARCHAR, 255, array(
26
+ 'nullable' => false,
27
+ ), 'Location')
28
+ ->addColumn('pincode', Varien_Db_Ddl_Table::TYPE_VARCHAR, 10, array(
29
+ 'nullable' => false,
30
+ ), 'Pincode')
31
+ ->addColumn('city', Varien_Db_Ddl_Table::TYPE_VARCHAR, 255, array(
32
+ 'nullable' => true,
33
+ ), 'City')
34
+ ->addColumn('created_date', Varien_Db_Ddl_Table::TYPE_TIMESTAMP, null, array(
35
+ 'nullable' => false,
36
+ ), 'Created Date')
37
+
38
+ ->addColumn('updated_date', Varien_Db_Ddl_Table::TYPE_TIMESTAMP, null, array(
39
+ 'nullable' => true,
40
+ 'default' => null,
41
+ ), 'Updated Date');
42
+
43
+ $installer->getConnection()->createTable($contactsforPin);
44
+
45
+ $installer->endSetup();
app/code/community/Suyati/Contactforpin/sql/Suyati_Contactforpin_setup/upgrade-1.6.0-1.6.1.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $installer = $this;
3
+ $installer->startSetup();
4
+
5
+ $contactsforPin = $installer->getConnection()->newTable($installer->getTable('suyati_contactforpin_details'))
6
+ ->addColumn('entity_id', Varien_Db_Ddl_Table::TYPE_INTEGER, 11, array(
7
+ 'unsigned' => true,
8
+ 'nullable' => false,
9
+ 'primary' => true,
10
+ 'identity' => true,
11
+ ), 'Contactforpi id')
12
+
13
+ ->addColumn('name', Varien_Db_Ddl_Table::TYPE_VARCHAR, 255, array(
14
+ 'nullable' => false,
15
+ ), 'Name')
16
+
17
+ ->addColumn('email', Varien_Db_Ddl_Table::TYPE_VARCHAR, 255, array(
18
+ 'nullable' => false,
19
+ ), 'Email')
20
+ ->addColumn('mobile', Varien_Db_Ddl_Table::TYPE_VARCHAR, 15, array(
21
+ 'nullable' => false,
22
+ ), 'Mobile')
23
+ ->addColumn('location', Varien_Db_Ddl_Table::TYPE_VARCHAR, 255, array(
24
+ 'nullable' => false,
25
+ ), 'Location')
26
+ ->addColumn('pincode', Varien_Db_Ddl_Table::TYPE_VARCHAR, 10, array(
27
+ 'nullable' => false,
28
+ ), 'Pincode')
29
+ ->addColumn('city', Varien_Db_Ddl_Table::TYPE_VARCHAR, 255, array(
30
+ 'nullable' => true,
31
+ ), 'City')
32
+ ->addColumn('created_date', Varien_Db_Ddl_Table::TYPE_TIMESTAMP, null, array(
33
+ 'nullable' => false,
34
+ ), 'Created Date')
35
+
36
+ ->addColumn('updated_date', Varien_Db_Ddl_Table::TYPE_TIMESTAMP, null, array(
37
+ 'nullable' => true,
38
+ 'default' => null,
39
+ ), 'Updated Date');
40
+
41
+ $installer->getConnection()->createTable($contactsforPin);
42
+
43
+
44
+ $installer->endSetup();
app/design/adminhtml/default/default/layout/contactforpin.xml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <contactforpin_adminhtml_contactforpin_index>
4
+ <reference name="content">
5
+ <block type="contactforpin/adminhtml_contactforpin" name="contactforpin" />
6
+ </reference>
7
+ </contactforpin_adminhtml_contactforpin_index>
8
+ </layout>
app/design/frontend/base/default/layout/suyati_contactforpin.xml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+
3
+ <layout version="0.1.0">
4
+ <default>
5
+
6
+ </default>
7
+
8
+ <contactforpin_index_index translate="label">
9
+ <label>Contactforpin Sign up</label>
10
+ <reference name="head">
11
+ <action method="setTitle" translate="title" module="contacts"><title>Contactforpin Sign up</title></action>
12
+ </reference>
13
+ <reference name="root">
14
+ <action method="setTemplate">
15
+ <template>page/1column.phtml</template>
16
+ <action method="setIsHandle">
17
+ <applied>1</applied>
18
+ </action>
19
+ </action>
20
+ </reference>
21
+ <reference name="content">
22
+ <block type="core/template" name="contactforpin" template="suyati/contactforpin.phtml"/>
23
+ </reference>
24
+ </contactforpin_index_index>
25
+ </layout>
app/design/frontend/base/default/template/suyati/contactforpin.phtml ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ ?>
4
+
5
+ <div class="newlocation">
6
+
7
+ <?php /*?><div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
8
+ <div class="page-title">
9
+ <h1><?php echo $this->__('Contactforpin Sign-Up') ?></h1>
10
+ </div><?php */?>
11
+ <form action="<?php echo $this->getUrl("Contactforpin/index/post"); ?>" id="retailerForm" method="post">
12
+ <div class="row">
13
+ <div class="col-sm-24">
14
+ <div class="fieldset" style="width:100%">
15
+ <?php /*?><h2 class="legend"><?php echo $this->__('New Contactforpins') ?></h2><?php */?>
16
+ <h3><?php echo $this->__('Please let us know your contact information') ?></h3>
17
+ <ul class="form-list" style="list-style: none;margin: 0;padding: 0;">
18
+ <li class="fields">
19
+ <div class="field">
20
+ <label for="firstname" class="required"><em>*</em><?php echo $this->__('Name') ?></label>
21
+ <div class="input-box">
22
+ <input name="firstname" id="firstname" title="<?php echo $this->__('Name') ?>" value="" class="input-text inBx required-entry validate-alpha" type="text" />
23
+ </div>
24
+ </div>
25
+ <div class="field">
26
+ <label for="email" class="required"><em>*</em><?php echo $this->__('Email') ?></label>
27
+ <div class="input-box">
28
+ <input name="email" id="email" title="<?php echo $this->__('Email') ?>" value="<?php echo $this->escapeHtml($this->getUserEmail()) ?>" class="input-text required-entry validate-email" type="text" />
29
+ </div>
30
+ </div>
31
+ </li>
32
+
33
+ <li class="fields">
34
+ <div class="field">
35
+ <label for="telephone" class="required"><em>*</em><?php echo $this->__('Mobile Phone') ?></label>
36
+ <div class="input-box">
37
+ <input name="phone1" id="phone1" title="<?php echo $this->__('Mobile Number') ?>" value="" class="input-text required-entry validate-phoneLax" type="text" />
38
+ </div>
39
+ </div>
40
+ <div class="field">
41
+ <label for="location" class="required"><em>*</em><?php echo $this->__('Your Location') ?></label>
42
+ <div class="input-box">
43
+ <input name="location" id="location" title="<?php echo $this->__('Location') ?>" value="" class="input-text required-entry" type="text" />
44
+ </div>
45
+ </div>
46
+ <div class="field">
47
+ <label for="pincode" class="required"><em>*</em><?php echo $this->__('Pincode') ?></label>
48
+ <div class="input-box">
49
+ <input name="pincode" id="pincode" title="<?php echo $this->__('Pincode') ?>" value="" class="input-text required-entry" type="text" />
50
+ </div>
51
+ </div>
52
+ </li>
53
+ </ul>
54
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
55
+ </div>
56
+ <div class="buttons-set" style="margin-top:20px;">
57
+ <input type="text" name="hideit" id="hideit" value="" style="display:none !important;" />
58
+ <button type="submit" title="<?php echo $this->__('Submit') ?>" class="button"><span><span><?php echo $this->__('Submit') ?></span></span></button>
59
+ </div>
60
+ </div>
61
+ </div>
62
+ </form>
63
+
64
+ <?php echo $this->getChildHtml('retailer_active'); ?>
65
+ <script type="text/javascript">
66
+ //<![CDATA[
67
+ var contactForm = new VarienForm('retailerForm', true);
68
+ (function($) {
69
+ $(".newlocation input").blur();
70
+ window.scrollTo(0,0);
71
+ })(jQuery);
72
+ //]]>
73
+ </script>
74
+ </div>
app/etc/modules/Suyati_Contactforpin.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Suyati_Contactforpin>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ </Suyati_Contactforpin>
8
+ </modules>
9
+ </config>
app/locale/en_US/template/email/suyati_contactforpin.html ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <!--@subject Contactforpin Email @-->
3
+ <html>
4
+ <head>
5
+ <title>Contacted for pin</title>
6
+ </head>
7
+ <body>
8
+ <table border='0' cellpadding='4' cellspacing='0' width='90%'>
9
+ <tbody>
10
+ <tr>
11
+ <td align='center' colspan='2' height='30' >Contacted for pin</td>
12
+ </tr>
13
+ <tr>
14
+ <td align='right' width='40%'><b>Name:</b></td>
15
+ <td width='55%'>{{var firstname}}</td>
16
+ </tr>
17
+ <tr>
18
+ <td align='right' width='40%'><b>Location:</b></td>
19
+ <td width='55%'>{{var location}}</td>
20
+ </tr>
21
+ <tr>
22
+ <td align='right' width='40%'><b>Pincode:</b></td>
23
+ <td width='55%'>{{var pincode}}</td>
24
+ </tr>
25
+ <tr>
26
+ <td align='right' width='40%'><b>Mobile number:</b></td>
27
+ <td width='55%'>{{var telephone}}</td>
28
+ </tr>
29
+ <tr>
30
+ <td align='right' width='40%'><b>Email Address:</b></td>
31
+ <td width='55%'>{{var email}}</td>
32
+ </tr>
33
+ </tbody>
34
+ </body>
35
+ </html>
package.xml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>contactforpin</name>
4
+ <version>1.6.1</version>
5
+ <stability>stable</stability>
6
+ <license>GNU General Public License (GPL)</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Customer contact form extension is a contact form which saves the customer details into the database, and also send an email to the admin support mail and admin can export customer details.</summary>
10
+ <description>Customer contact form extension is a contact form which saves the customer details into the database, and also send an email to the admin support mail and admin can export customer details.</description>
11
+ <notes>Customer contact form extension is a contact form which saves the customer details into the database, and also send an email to the admin support mail and admin can export customer details.&#xD;
12
+ </notes>
13
+ <authors><author><name>Naveenbos</name><user>naveenbos</user><email>naveen.bos@gmail.com</email></author><author><name>Jino varghese chacko</name><user>jnovc</user><email>jinovc@hotmail.com</email></author><author><name>Naveen</name><user>naveenmohanan</user><email>nmohanan@suyati.com</email></author></authors>
14
+ <date>2016-05-25</date>
15
+ <time>07:28:37</time>
16
+ <contents><target name="magecommunity"><dir name="Suyati"><dir name="Contactforpin"><dir name="Block"><dir name="Adminhtml"><dir name="Contactforpin"><dir name="Edit"><file name="Form.php" hash="b0aceac108ee2755bd31b5c2143bf384"/><dir name="Tab"><file name="Form.php" hash="24df815d410183ff46cec134081365f1"/></dir><file name="Tabs.php" hash="4aef125bcc83ba975eaf6fb176e932b8"/></dir><file name="Edit.php" hash="e2953bea5cd68b4c6e5a76b9e0cf63ad"/><file name="Grid.php" hash="47a71acb9a6806a7111f82dd9708c920"/></dir><file name="Contactforpin.php" hash="01c502756c01da1e9e6a4e5517bda830"/></dir><file name="Contactforpin.php" hash="ecff0a314cad5f6d0707834cb557f85a"/></dir><dir name="Helper"><file name="Data.php" hash="4ef4bf81669c7c550f86f4b17f1461ab"/></dir><dir name="Model"><file name="Contactforpin.php" hash="c93a1b813ef96b41eeeca41afd326e85"/><dir name="Mysql4"><dir name="Contactforpin"><file name="Collection.php" hash="38a8d099cb84844667b07eeaa5a7817b"/></dir><file name="Contactforpin.php" hash="f43018ca1f9f2a8a29870e4b5afa4654"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="ContactforpinController.php" hash="1010c16402a370eaa586e421bd11299d"/></dir><file name="IndexController.php" hash="5bb2ab0be1387c50f388304441bc0c10"/></dir><dir name="etc"><file name="config.xml" hash="c4cc14933b141e7a1eea6145c64571d7"/></dir><dir name="sql"><dir name="Suyati_Contactforpin_setup"><file name="install-1.6.1.php" hash="37e6137135b77d56a29e4b95865e6fad"/><file name="upgrade-1.6.0-1.6.1.php" hash="ca4a2292473d670b61411a1911264235"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="contactforpin.xml" hash="0b7f93f3a95ad3bdc2ea491e366a9a73"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="suyati_contactforpin.xml" hash="136621f21ccca00319ab3e6efeadbd5f"/></dir><dir name="template"><dir name="suyati"><file name="contactforpin.phtml" hash="610f49d1508be591ed3feace920ce04b"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><file name="suyati_contactforpin.html" hash="feb1d8807437af9403f5d98ab9ccfd93"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Suyati_Contactforpin.xml" hash="df9640a01af46fe65b3fc8a0bdbe1dff"/></dir></target></contents>
17
+ <compatible/>
18
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
19
+ </package>