cart_inquiry - Version 1.0.1

Version Notes

After installing extension Follow below points:
1. Refresh all cache from admin panel.
2. Enable extension from setting tab
3. Configured email and title.
4. See results on cart page
5. For custom theme place files at specific path.

Download this release

Release Info

Developer Manish Mittal
Extension cart_inquiry
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

Files changed (23) hide show
  1. app/code/community/Ranosys/Inquiry/Block/Adminhtml/Inquiry.php +20 -0
  2. app/code/community/Ranosys/Inquiry/Block/Adminhtml/Inquiry/Edit.php +41 -0
  3. app/code/community/Ranosys/Inquiry/Block/Adminhtml/Inquiry/Edit/Form.php +24 -0
  4. app/code/community/Ranosys/Inquiry/Block/Adminhtml/Inquiry/Edit/Tab/Form.php +85 -0
  5. app/code/community/Ranosys/Inquiry/Block/Adminhtml/Inquiry/Edit/Tabs.php +30 -0
  6. app/code/community/Ranosys/Inquiry/Block/Adminhtml/Inquiry/Grid.php +131 -0
  7. app/code/community/Ranosys/Inquiry/Helper/Data.php +12 -0
  8. app/code/community/Ranosys/Inquiry/Helper/Data.php~ +6 -0
  9. app/code/community/Ranosys/Inquiry/Model/Information.php~ +0 -0
  10. app/code/community/Ranosys/Inquiry/Model/Inquiry.php +16 -0
  11. app/code/community/Ranosys/Inquiry/Model/Mysql4/Information.php~ +10 -0
  12. app/code/community/Ranosys/Inquiry/Model/Mysql4/Inquiry.php +15 -0
  13. app/code/community/Ranosys/Inquiry/Model/Mysql4/Inquiry/Collection.php +16 -0
  14. app/code/community/Ranosys/Inquiry/Model/Mysql4/Inquiry/Collection.php~ +10 -0
  15. app/code/community/Ranosys/Inquiry/controllers/Adminhtml/InquiryController.php +206 -0
  16. app/code/community/Ranosys/Inquiry/controllers/IndexController.php +79 -0
  17. app/code/community/Ranosys/Inquiry/controllers/IndexController.php~ +9 -0
  18. app/code/community/Ranosys/Inquiry/etc/config.xml +125 -0
  19. app/code/community/Ranosys/Inquiry/etc/system.xml +54 -0
  20. app/code/community/Ranosys/Inquiry/sql/inquiry_setup/mysql4-install-0.1.0.php +34 -0
  21. app/code/community/Ranosys/Inquiry/sql/mysql4-install-0.1.0.php~ +24 -0
  22. app/design/frontend/base/default/template/inquiry/inquiry.phtml +0 -95
  23. package.xml +7 -6
app/code/community/Ranosys/Inquiry/Block/Adminhtml/Inquiry.php ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Adminhtml cart inquiry page content block
4
+ *
5
+ * @category Ranosys
6
+ * @package Ranosys_Inquiry
7
+ * @author Ranosys Technologies Pvt. Ltd.
8
+ */
9
+ class Ranosys_Inquiry_Block_Adminhtml_Inquiry extends Mage_Adminhtml_Block_Widget_Grid_Container
10
+ {
11
+ public function __construct()
12
+ {
13
+ $this->_controller = 'adminhtml_inquiry';
14
+ $this->_blockGroup = 'inquiry';
15
+ $this->_headerText = Mage::helper('inquiry')->__('Inquiry');
16
+ $this->_addButtonLabel = Mage::helper('inquiry')->__('Add');
17
+ parent::__construct();
18
+ $this->_removeButton('add');
19
+ }
20
+ }
app/code/community/Ranosys/Inquiry/Block/Adminhtml/Inquiry/Edit.php ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * cart inquiry tag edit block
4
+ *
5
+ * @category Ranosys
6
+ * @package Ranosys_Inquiry
7
+ * @author Ranosys Technologies Pvt. Ltd.
8
+ */
9
+ class Ranosys_Inquiry_Block_Adminhtml_Inquiry_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
10
+ {
11
+ public function __construct()
12
+ {
13
+ parent::__construct();
14
+ $this->_objectId = 'id';
15
+ $this->_blockGroup = 'inquiry';
16
+ $this->_controller = 'adminhtml_inquiry';
17
+ $this->_updateButton('save', 'label', Mage::helper('inquiry')->__('Save'));
18
+ $this->_updateButton('delete', 'label', Mage::helper('inquiry')->__('Delete'));
19
+
20
+ $this->_addButton('save_and_continue', array(
21
+ 'label' => Mage::helper('adminhtml')->__('Save And Continue Edit'),
22
+ 'onclick' => 'saveAndContinueEdit()',
23
+ 'class' => 'save',
24
+ ), -100);
25
+
26
+ $this->_formScripts[] = "
27
+ function saveAndContinueEdit(){
28
+ editForm.submit($('edit_form').action+'back/edit/');
29
+ }
30
+ ";
31
+ }
32
+ public function getHeaderText()
33
+ {
34
+ if( Mage::registry('inquiry_data') && Mage::registry('inquiry_data')->getId() ) {
35
+ return Mage::helper('inquiry')->__("Edit '%s'", $this->htmlEscape(Mage::registry('inquiry_data')->getFirstname()));
36
+
37
+ } else {
38
+ return Mage::helper('inquiry')->__('Add');
39
+ }
40
+ }
41
+ }
app/code/community/Ranosys/Inquiry/Block/Adminhtml/Inquiry/Edit/Form.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Base block for rendering cart inquiry forms
4
+ *
5
+ * @category Ranosys
6
+ * @package Ranosys_Inquiry
7
+ * @author Ranosys Technologies Pvt. Ltd.
8
+ */
9
+ class Ranosys_Inquiry_Block_Adminhtml_Inquiry_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
10
+ {
11
+ protected function _prepareForm()
12
+ {
13
+ $form = new Varien_Data_Form(array(
14
+ 'id' => 'edit_form',
15
+ 'action' => $this->getUrl('*/*/save', array('id' => $this->getRequest()->getParam('id'))),
16
+ 'method' => 'post',
17
+ )
18
+ );
19
+
20
+ $form->setUseContainer(true);
21
+ $this->setForm($form);
22
+ return parent::_prepareForm();
23
+ }
24
+ }
app/code/community/Ranosys/Inquiry/Block/Adminhtml/Inquiry/Edit/Tab/Form.php ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Cart inquiry tag edit form
4
+ *
5
+ * @category Ranosys
6
+ * @package Ranosys_Inquiry
7
+ * @author Ranosys Technologies Pvt. Ltd.
8
+ */
9
+ class Ranosys_Inquiry_Block_Adminhtml_Inquiry_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
10
+ {
11
+ protected function _prepareForm()
12
+ {
13
+ $form = new Varien_Data_Form();
14
+ $this->setForm($form);
15
+ $fieldset = $form->addFieldset('inquiry_form', array('legend'=>Mage::helper('inquiry')->__('Inquiry')));
16
+
17
+ $fieldset->addField('pid', 'label', array(
18
+ 'label' => Mage::helper('inquiry')->__('Product ID'),
19
+ 'value' => Mage::helper('inquiry')->__('pid'),
20
+ ));
21
+ $fieldset->addField('pname', 'label', array(
22
+ 'label' => Mage::helper('inquiry')->__('Product Name'),
23
+ 'value' => Mage::helper('inquiry')->__('pname'),
24
+ ));
25
+ $fieldset->addField('psku', 'label', array(
26
+ 'label' => Mage::helper('inquiry')->__('Product SKU'),
27
+ 'value' => Mage::helper('inquiry')->__('psku'),
28
+ ));
29
+ $fieldset->addField('firstname', 'text', array(
30
+ 'label' => Mage::helper('inquiry')->__('First Name'),
31
+ 'class' => 'required-entry validate-alpha',
32
+ 'required' => true,
33
+ 'name' => 'firstname',
34
+ ));
35
+ $fieldset->addField('lastname', 'text', array(
36
+ 'label' => Mage::helper('inquiry')->__('Last Name'),
37
+ 'class' => 'required-entry validate-alpha',
38
+ 'required' => true,
39
+ 'name' => 'lastname',
40
+ ));
41
+ $fieldset->addField('email', 'text', array(
42
+ 'label' => Mage::helper('inquiry')->__('Email'),
43
+ 'class' => 'required-entry validate-email',
44
+ 'required' => true,
45
+ 'name' => 'email',
46
+ ));
47
+ $fieldset->addField('phone', 'text', array(
48
+ 'label' => Mage::helper('inquiry')->__('Phone'),
49
+ 'class' => 'validate-number',
50
+ 'name' => 'phone',
51
+ ));
52
+ $fieldset->addField('message', 'textarea', array(
53
+ 'label' => Mage::helper('inquiry')->__('Message'),
54
+ 'class' => 'required-entry',
55
+ 'required' => true,
56
+ 'name' => 'message',
57
+ ));
58
+
59
+ $fieldset->addField('status', 'select', array(
60
+ 'label' => Mage::helper('inquiry')->__('Status'),
61
+ 'name' => 'status',
62
+ 'values' => array(
63
+ array(
64
+ 'value' => 1,
65
+ 'label' => Mage::helper('inquiry')->__('Active'),
66
+ ),
67
+
68
+ array(
69
+ 'value' => 0,
70
+ 'label' => Mage::helper('inquiry')->__('Inactive'),
71
+ ),
72
+ ),
73
+ ));
74
+ if ( Mage::getSingleton('adminhtml/session')->getInquiryData() )
75
+ {
76
+ $form->setValues(Mage::getSingleton('adminhtml/session')->getInquiryData());
77
+ Mage::getSingleton('adminhtml/session')->setInquiryData(null);
78
+ }
79
+ elseif ( Mage::registry('inquiry_data') )
80
+ {
81
+ $form->setValues(Mage::registry('inquiry_data')->getData());
82
+ }
83
+ return parent::_prepareForm();
84
+ }
85
+ }
app/code/community/Ranosys/Inquiry/Block/Adminhtml/Inquiry/Edit/Tabs.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * cart inquiry tag add new
4
+ *
5
+ * @category Ranosys
6
+ * @package Ranosys_Inquiry
7
+ * @author Ranosys Technologies Pvt. Ltd.
8
+ */
9
+ class Ranosys_Inquiry_Block_Adminhtml_Inquiry_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
10
+ {
11
+
12
+ public function __construct()
13
+ {
14
+ parent::__construct();
15
+ $this->setId('inquiry_tabs');
16
+ $this->setDestElementId('edit_form');
17
+ $this->setTitle(Mage::helper('inquiry')->__('Cart Inquiry'));
18
+ }
19
+
20
+ protected function _beforeToHtml()
21
+ {
22
+ $this->addTab('form_section', array(
23
+ 'label' => Mage::helper('inquiry')->__('Detail'),
24
+ 'title' => Mage::helper('inquiry')->__('Detail'),
25
+ 'content' => $this->getLayout()->createBlock('inquiry/adminhtml_inquiry_edit_tab_form')->toHtml(),
26
+ ));
27
+
28
+ return parent::_beforeToHtml();
29
+ }
30
+ }
app/code/community/Ranosys/Inquiry/Block/Adminhtml/Inquiry/Grid.php ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Adminhtml cart inquiry page grid
4
+ *
5
+ * @category Ranosys
6
+ * @package Ranosys_Inquiry
7
+ * @author Ranosys Technologies Pvt. Ltd.
8
+ */
9
+ class Ranosys_Inquiry_Block_Adminhtml_Inquiry_Grid extends Mage_Adminhtml_Block_Widget_Grid
10
+ {
11
+ public function __construct()
12
+ {
13
+ parent::__construct();
14
+ $this->setId('inquiryGrid');
15
+ // This is the primary key of the database
16
+ $this->setDefaultSort('id');
17
+ $this->setDefaultDir('ASC');
18
+ $this->setSaveParametersInSession(true);
19
+
20
+ }
21
+
22
+ protected function _prepareCollection()
23
+ {
24
+ $collection = Mage::getModel('inquiry/inquiry')->getCollection();
25
+ $this->setCollection($collection);
26
+ return parent::_prepareCollection();
27
+ }
28
+
29
+ protected function _prepareColumns()
30
+ {
31
+ $this->addColumn('id', array(
32
+ 'header' => Mage::helper('inquiry')->__('ID'),
33
+ 'align' =>'right',
34
+ 'width' => '50px',
35
+ 'index' => 'id',
36
+ ));
37
+
38
+ $this->addColumn('firstname', array(
39
+ 'header' => Mage::helper('inquiry')->__('First Name'),
40
+ 'align' =>'left',
41
+ 'index' => 'firstname',
42
+ ));
43
+ $this->addColumn('lastname', array(
44
+ 'header' => Mage::helper('inquiry')->__('Last Name'),
45
+ 'align' =>'left',
46
+ 'index' => 'lastname',
47
+ ));
48
+ $this->addColumn('email', array(
49
+ 'header' => Mage::helper('inquiry')->__('Email'),
50
+ 'align' =>'left',
51
+ 'index' => 'email',
52
+ ));
53
+ $this->addColumn('phone', array(
54
+ 'header' => Mage::helper('inquiry')->__('Phone'),
55
+ 'align' =>'left',
56
+ 'index' => 'phone',
57
+ ));
58
+ $this->addColumn('message', array(
59
+ 'header' => Mage::helper('inquiry')->__('Message'),
60
+ 'align' =>'left',
61
+ 'index' => 'message',
62
+ ));
63
+ $this->addColumn('created_time', array(
64
+ 'header' => Mage::helper('inquiry')->__('Created Time'),
65
+ 'align' =>'left',
66
+ 'index' => 'created_time',
67
+ ));
68
+
69
+ $this->addColumn('status', array(
70
+
71
+ 'header' => Mage::helper('inquiry')->__('Status'),
72
+ 'align' => 'left',
73
+ 'width' => '80px',
74
+ 'index' => 'status',
75
+ 'type' => 'options',
76
+ 'options' => array(
77
+ 1 => 'Active',
78
+ 0 => 'Inactive',
79
+ ),
80
+ ));
81
+ $this->addColumn('pid', array(
82
+ 'header' => Mage::helper('inquiry')->__('Product Id'),
83
+ 'align' =>'right',
84
+ 'width' => '50px',
85
+ 'index' => 'pid',
86
+ ));
87
+ $this->addColumn('pname', array(
88
+ 'header' => Mage::helper('inquiry')->__('Product Name'),
89
+ 'align' =>'right',
90
+ 'width' => '50px',
91
+ 'index' => 'pname',
92
+ ));
93
+ $this->addColumn('psku', array(
94
+ 'header' => Mage::helper('inquiry')->__('Product SKU'),
95
+ 'align' =>'right',
96
+ 'width' => '50px',
97
+ 'index' => 'psku',
98
+
99
+ ));
100
+
101
+ return parent::_prepareColumns();
102
+ }
103
+
104
+ public function getRowUrl($row)
105
+ {
106
+ return $this->getUrl('*/*/edit', array('id' => $row->getId()));
107
+ }
108
+
109
+ protected function _prepareMassaction()
110
+ {
111
+ $this->setMassactionIdField('inquiry_id');
112
+ $this->getMassactionBlock()->setFormFieldName('inquiryIds');
113
+
114
+ $this->getMassactionBlock()->addItem('delete', array(
115
+ 'label' => Mage::helper('inquiry')->__('Delete'),
116
+ 'url' => $this->getUrl('*/*/massDelete'),
117
+ 'confirm' => Mage::helper('inquiry')->__('Are you sure?')
118
+ ));
119
+ $this->getMassactionBlock()->addItem('active', array(
120
+ 'label' => Mage::helper('inquiry')->__('Active'),
121
+ 'url' => $this->getUrl('*/*/massActive'),
122
+ 'confirm' => Mage::helper('inquiry')->__('Are you sure?')
123
+ ));
124
+ $this->getMassactionBlock()->addItem('inactive', array(
125
+ 'label' => Mage::helper('inquiry')->__('Inactive'),
126
+ 'url' => $this->getUrl('*/*/massInactive'),
127
+ 'confirm' => Mage::helper('inquiry')->__('Are you sure?')
128
+ ));
129
+ return $this;
130
+ }
131
+ }
app/code/community/Ranosys/Inquiry/Helper/Data.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Cart inquiry Data Helper
4
+ *
5
+ * @category Ranosys
6
+ * @package Ranosys_Inquiry
7
+ * @author Ranosys Technologies Pvt. Ltd.
8
+ */
9
+ class Ranosys_Inquiry_Helper_Data extends Mage_Core_Helper_Abstract
10
+ {
11
+
12
+ }
app/code/community/Ranosys/Inquiry/Helper/Data.php~ ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class <Namespace>_<Module>_Helper_Data extends Mage_Core_Helper_Abstract
4
+ {
5
+
6
+ }
app/code/community/Ranosys/Inquiry/Model/Information.php~ ADDED
File without changes
app/code/community/Ranosys/Inquiry/Model/Inquiry.php ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Cart inquiry
4
+ *
5
+ * @category Ranosys
6
+ * @package Ranosys_Inquiry
7
+ * @author Ranosys Technologies Pvt. Ltd.
8
+ */
9
+ class Ranosys_Inquiry_Model_Inquiry extends Mage_Core_Model_Abstract
10
+ {
11
+ public function _construct()
12
+ {
13
+ parent::_construct();
14
+ $this->_init('inquiry/inquiry');
15
+ }
16
+ }
app/code/community/Ranosys/Inquiry/Model/Mysql4/Information.php~ ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Registration_Information_Model_<Module> extends Mage_Core_Model_Abstract
4
+ {
5
+ public function _construct()
6
+ {
7
+ parent::_construct();
8
+ $this->_init('information/information');
9
+ }
10
+ }
app/code/community/Ranosys/Inquiry/Model/Mysql4/Inquiry.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Cart inquiry
4
+ *
5
+ * @category Ranosys
6
+ * @package Ranosys_Inquiry
7
+ * @author Ranosys Technologies Pvt. Ltd.
8
+ */
9
+ class Ranosys_Inquiry_Model_Mysql4_Inquiry extends Mage_Core_Model_Mysql4_Abstract
10
+ {
11
+ public function _construct()
12
+ {
13
+ $this->_init('inquiry/inquiry', 'id');
14
+ }
15
+ }
app/code/community/Ranosys/Inquiry/Model/Mysql4/Inquiry/Collection.php ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Cart inquiry
4
+ *
5
+ * @category Ranosys
6
+ * @package Ranosys_Inquiry
7
+ * @author Ranosys Technologies Pvt. Ltd.
8
+ */
9
+ class Ranosys_Inquiry_Model_Mysql4_Inquiry_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
10
+ {
11
+ public function _construct()
12
+ {
13
+ //parent::__construct();
14
+ $this->_init('inquiry/inquiry');
15
+ }
16
+ }
app/code/community/Ranosys/Inquiry/Model/Mysql4/Inquiry/Collection.php~ ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Registration_Information_Model_Mysql4_<Module>_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
4
+ {
5
+ public function _construct()
6
+ {
7
+ //parent::__construct();
8
+ $this->_init('information/information');
9
+ }
10
+ }
app/code/community/Ranosys/Inquiry/controllers/Adminhtml/InquiryController.php ADDED
@@ -0,0 +1,206 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Cart inquiry adminhtml controller
4
+ *
5
+ * @category Ranosys
6
+ * @package Ranosys_Inquiry
7
+ * @author Ranosys Technologies Pvt. Ltd.
8
+ */
9
+ class Ranosys_Inquiry_Adminhtml_InquiryController extends Mage_Adminhtml_Controller_Action
10
+ {
11
+ protected function _initAction()
12
+ {
13
+ $this->loadLayout()
14
+ ->_setActiveMenu('inquiry/inquiry')
15
+ ->_addBreadcrumb(Mage::helper('adminhtml')->__('Detail'), Mage::helper('adminhtml')->__('Detail'));
16
+ return $this;
17
+ }
18
+ public function indexAction()
19
+ {
20
+ $this->_initAction();
21
+ $this->_addContent($this->getLayout()->createBlock('inquiry/adminhtml_inquiry'));
22
+ $this->renderLayout();
23
+ }
24
+
25
+ public function editAction()
26
+ {
27
+ $inquiryId = $this->getRequest()->getParam('id');
28
+ $inquiryModel = Mage::getModel('inquiry/inquiry')->load($inquiryId);
29
+ if ($inquiryModel->getId() || $inquiryId == 0)
30
+ {
31
+ Mage::register('inquiry_data', $inquiryModel);
32
+ $this->loadLayout();
33
+ $this->_setActiveMenu('inquiry/inquiry');
34
+ $this->_addBreadcrumb(Mage::helper('adminhtml')->__('Detail'), Mage::helper('adminhtml')->__('Detail'));
35
+ $this->_addBreadcrumb(Mage::helper('adminhtml')->__('Cart Inquiry'), Mage::helper('adminhtml')->__('Cart Inquiry'));
36
+ $this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
37
+ $this->_addContent($this->getLayout()->createBlock('inquiry/adminhtml_inquiry_edit'))
38
+ ->_addLeft($this->getLayout()->createBlock('inquiry/adminhtml_inquiry_edit_tabs'));
39
+ $this->renderLayout();
40
+ }
41
+ else
42
+ {
43
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('inquiry')->__('Information does not exist'));
44
+ $this->_redirect('*/*/');
45
+ }
46
+ }
47
+
48
+ public function newAction()
49
+ {
50
+ $inquiryId = $this->getRequest()->getParam('id');
51
+ $inquiryModel = Mage::getModel('inquiry/inquiry')->load($inquiryId);
52
+
53
+ if ($inquiryModel->getId() || $inquiryId == 0) {
54
+ Mage::register('inquiry_data', $inquiryModel);
55
+ $this->loadLayout();
56
+ $this->_setActiveMenu('inquiry/inquiry');
57
+ $this->_addBreadcrumb(Mage::helper('adminhtml')->__('Detail'), Mage::helper('adminhtml')->__('Detail'));
58
+ $this->_addBreadcrumb(Mage::helper('adminhtml')->__('Cart Inquiry'), Mage::helper('adminhtml')->__('Cart Inquiry'));
59
+ $this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
60
+ $this->_addContent($this->getLayout()->createBlock('inquiry/adminhtml_inquiry_edit'))
61
+ ->_addLeft($this->getLayout()->createBlock('inquiry/adminhtml_inquiry_edit_tabs'));
62
+ $this->renderLayout();
63
+ }
64
+ else
65
+ {
66
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('inquiry')->__('Information does not exist'));
67
+ $this->_redirect('*/*/');
68
+ }
69
+ }
70
+
71
+ public function saveAction()
72
+ {
73
+ if ( $this->getRequest()->getPost() ) {
74
+ try {
75
+ $postData = $this->getRequest()->getPost();
76
+ $inquiryModel = Mage::getModel('inquiry/inquiry');
77
+ $inquiryModel->setId($this->getRequest()->getParam('id'))
78
+ ->setFirstname($postData['firstname'])
79
+ ->setLastname($postData['lastname'])
80
+ ->setEmail($postData['email'])
81
+ ->setPhone($postData['phone'])
82
+ ->setMessage($postData['message'])
83
+ ->setStatus($postData['status'])
84
+ ->save();
85
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Inquiry was successfully saved'));
86
+ Mage::getSingleton('adminhtml/session')->setInquiryData(false);
87
+ if ($this->getRequest()->getParam('back')) {
88
+ $this->_redirect(
89
+ '*/*/edit',
90
+ array(
91
+ 'id' => $this->getRequest()->getParam('id'),
92
+ )
93
+ );
94
+ return;
95
+ }
96
+ $this->_redirect('*/*/');
97
+ return;
98
+ } catch (Exception $e) {
99
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
100
+ Mage::getSingleton('adminhtml/session')->setInquiryData($this->getRequest()->getPost());
101
+ $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
102
+ return;
103
+ }
104
+ }
105
+ $this->_redirect('*/*/');
106
+ }
107
+
108
+ public function deleteAction()
109
+ {
110
+ if( $this->getRequest()->getParam('id') > 0 ) {
111
+ try {
112
+ $inquiryModel = Mage::getModel('inquiry/inquiry');
113
+ $inquiryModel->setId($this->getRequest()->getParam('id'))
114
+ ->delete();
115
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Inquiry was successfully deleted'));
116
+ $this->_redirect('*/*/');
117
+ } catch (Exception $e) {
118
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
119
+ $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
120
+ }
121
+ }
122
+ $this->_redirect('*/*/');
123
+ }
124
+ public function gridAction()
125
+ {
126
+ $this->loadLayout();
127
+ $this->getResponse()->setBody(
128
+ $this->getLayout()->createBlock('inquiry/adminhtml_inquiry_grid')->toHtml()
129
+ );
130
+ }
131
+ public function massDeleteAction()
132
+ {
133
+ $Ids = $this->getRequest()->getParam('inquiryIds');
134
+ if(is_array(Ids)) {
135
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('inquiry')->__('Please select any one id'));
136
+ } else {
137
+ try {
138
+ foreach ($Ids as $Id)
139
+ {
140
+ $inquiryModel = Mage::getModel('inquiry/inquiry');
141
+ $inquiryModel->setId($Id)
142
+ ->delete();
143
+ $this->_redirect('*/*/');
144
+ }
145
+ Mage::getSingleton('adminhtml/session')->addSuccess(
146
+ Mage::helper('inquiry')->__(
147
+ 'Total of %d inquiry(s) were successfully deleted to the inquiry list', count($Ids)
148
+ )
149
+ );
150
+ } catch (Exception $e) {
151
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
152
+ }
153
+ }
154
+ $this->_redirect('*/*/index');
155
+ }
156
+ public function massActiveAction()
157
+ {
158
+ $Ids = $this->getRequest()->getParam('inquiryIds');
159
+ if (!is_array($Ids)) {
160
+ Mage::getSingleton('adminhtml/session')->addError($this->__('Please select inquiry(s)'));
161
+ } else {
162
+ try
163
+ {
164
+ foreach ($Ids as $Id){
165
+ Mage::getSingleton('inquiry/inquiry')
166
+ ->load($Id)
167
+ ->setStatus(1)
168
+ ->save();
169
+ }
170
+ $this->_getSession()->addSuccess(
171
+ $this->__('Total of %d inquiry(s) were successfully updated', count($Ids))
172
+ );
173
+ }
174
+ catch (Exception $e)
175
+ {
176
+ $this->_getSession()->addError($e->getMessage());
177
+ }
178
+ }
179
+ $this->_redirect('*/*/index');
180
+ }
181
+ public function massInactiveAction()
182
+ {
183
+ $Ids = $this->getRequest()->getParam('inquiryIds');
184
+ if (!is_array($Ids)) {
185
+ Mage::getSingleton('adminhtml/session')->addError($this->__('Please select inquiry(s)'));
186
+ } else {
187
+ try
188
+ {
189
+ foreach ($Ids as $Id){
190
+ Mage::getSingleton('inquiry/inquiry')
191
+ ->load($Id)
192
+ ->setStatus(0)
193
+ ->save();
194
+ }
195
+ $this->_getSession()->addSuccess(
196
+ $this->__('Total of %d inquiry(s) were successfully updated', count($Ids))
197
+ );
198
+ }
199
+ catch (Exception $e)
200
+ {
201
+ $this->_getSession()->addError($e->getMessage());
202
+ }
203
+ }
204
+ $this->_redirect('*/*/index');
205
+ }
206
+ }
app/code/community/Ranosys/Inquiry/controllers/IndexController.php ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Cart inquiry frontend controller
4
+ *
5
+ * @category Ranosys
6
+ * @package Ranosys_Inquiry
7
+ * @author Ranosys Technologies Pvt. Ltd.
8
+ */
9
+ class Ranosys_Inquiry_IndexController extends Mage_Core_Controller_Front_Action
10
+ {
11
+ public function indexAction()
12
+ {
13
+ $this->loadLayout();
14
+ $this->renderLayout();
15
+ }
16
+ public function saveAction()
17
+ {
18
+ if ( $this->getRequest()->getPost() ) {
19
+ try
20
+ {
21
+ $postData = $this->getRequest()->getPost();
22
+ $inquiryModel = Mage::getModel('inquiry/inquiry');
23
+
24
+ $inquiryModel->setId($this->getRequest()->getParam('id'))
25
+ ->setFirstname($postData['firstname'])
26
+ ->setLastname($postData['lastname'])
27
+ ->setEmail($postData['email'])
28
+ ->setPhone($postData['phone'])
29
+ ->setMessage($postData['message'])
30
+ ->setPid($postData['productId'])
31
+ ->setPname($postData['productName'])
32
+ ->setPsku($postData['productSku'])
33
+ ->save();
34
+ $adminEmailOption = Mage::getStoreConfig('ranosys/ranosys_group/ranosys_ranosys_input',Mage::app()->getStore());
35
+ if($adminEmailOption=='')
36
+ {
37
+ $adminEmail= Mage::getStoreConfig('trans_email/ident_general/email');
38
+ }
39
+ else
40
+ {
41
+ $adminEmail= $adminEmailOption;
42
+ }
43
+ $adminName = Mage::getStoreConfig('trans_email/ident_general/name');
44
+ $emailTemplate = Mage::getModel('core/email_template')->loadDefault('inquiry_template');
45
+ $senderName =$postData['firstname'];
46
+ $senderEmail = $postData['email'];
47
+ $emailTemplateVariables = array();
48
+ $emailTemplateVariables['firstName'] = $postData['firstname'];
49
+ $emailTemplateVariables['productId'] = $postData['productId'];
50
+ $emailTemplateVariables['productName']=$postData['productName'];
51
+ $emailTemplateVariables['productSku'] = $postData['productSku'];
52
+ $emailTemplateVariables['message'] = $postData['message'];
53
+ $emailTemplate->getProcessedTemplate($emailTemplateVariables);
54
+
55
+ $emailTemplate
56
+ ->setSubject('Subject :Inquiry by '. $postData['firstname'])
57
+ ->setSenderEmail($senderEmail)
58
+ ->setSenderName($senderName)
59
+ ->setType('html');
60
+ //echo "<pre>";print_r($emailTemplate->getData());die;
61
+ $emailTemplate->send($adminEmail, $adminName, $emailTemplateVariables);
62
+
63
+ Mage::getSingleton('core/session')->addSuccess(Mage::helper('core')->__('Your message was sent successfully. We will reach you soon as we review.'));
64
+ Mage::getSingleton('core/session')->setInquiryData(false);
65
+ $this->_redirect('checkout/cart');
66
+ return;
67
+ }
68
+ catch (Exception $e)
69
+ {
70
+ Mage::getSingleton('core/session')->addError($e->getMessage());
71
+ Mage::getSingleton('core/session')->setInquiryData($this->getRequest()->getPost());
72
+ $this->_redirect('checkout/cart', array('id' => $this->getRequest()->getParam('id')));
73
+ return;
74
+ }
75
+ }
76
+ $this->_redirect('*/*/');
77
+
78
+ }
79
+ }
app/code/community/Ranosys/Inquiry/controllers/IndexController.php~ ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Registration_Information_IndexController extends Mage_Core_Controller_Front_Action
3
+ {
4
+ public function indexAction()
5
+ {
6
+ $this->loadLayout();
7
+ $this->renderLayout();
8
+ }
9
+ }
app/code/community/Ranosys/Inquiry/etc/config.xml ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Ranosys_Inquiry>
5
+ <version>0.1.0</version>
6
+ </Ranosys_Inquiry>
7
+ </modules>
8
+ <frontend>
9
+ <routers>
10
+ <inquiry>
11
+ <use>standard</use>
12
+ <args>
13
+ <module>Ranosys_Inquiry</module>
14
+ <frontName>inquiry</frontName>
15
+ </args>
16
+ </inquiry>
17
+ </routers>
18
+ <layout>
19
+ <updates>
20
+ <inquiry>
21
+ <file>inquiry.xml</file>
22
+ </inquiry>
23
+ </updates>
24
+ </layout>
25
+ </frontend>
26
+ <global>
27
+ <models>
28
+ <inquiry>
29
+ <class>Ranosys_Inquiry_Model</class>
30
+ </inquiry>
31
+ <inquiry>
32
+ <class>Ranosys_Inquiry_Model</class>
33
+ <resourceModel>inquiry_mysql4</resourceModel>
34
+ </inquiry>
35
+ <inquiry_mysql4>
36
+ <class>Ranosys_Inquiry_Model_Mysql4</class>
37
+ <entities>
38
+ <inquiry>
39
+ <table>inquiry</table>
40
+ </inquiry>
41
+ </entities>
42
+ </inquiry_mysql4>
43
+ </models>
44
+ <resources>
45
+ <inquiry_setup>
46
+ <setup>
47
+ <module>Ranosys_Inquiry</module>
48
+ </setup>
49
+ <connection>
50
+ <use>core_setup</use>
51
+ </connection>
52
+ </inquiry_setup>
53
+ <inquiry_write>
54
+ <connection>
55
+ <use>core_write</use>
56
+ </connection>
57
+ </inquiry_write>
58
+ <inquiry_read>
59
+ <connection>
60
+ <use>core_read</use>
61
+ </connection>
62
+ </inquiry_read>
63
+ </resources>
64
+ <blocks>
65
+ <inquiry>
66
+ <class>Ranosys_Inquiry_Block</class>
67
+ </inquiry>
68
+ </blocks>
69
+ <helpers>
70
+ <inquiry>
71
+ <class>Ranosys_Inquiry_Helper</class>
72
+ </inquiry>
73
+ </helpers>
74
+ <template>
75
+ <email>
76
+ <inquiry_template module="inquiry">
77
+ <label>Cart inquiry</label>
78
+ <file>inquiry_template.html</file> // this specifies the path where the custom template is located
79
+ <type>html</type>
80
+ </inquiry_template>
81
+ </email>
82
+ </template>
83
+ </global>
84
+ <adminhtml>
85
+ <menu>
86
+ <inquiry module="inquiry">
87
+ <title>Cart Inquiry</title>
88
+ <sort_order>71</sort_order>
89
+ <children>
90
+ <inquiry module="inquiry">
91
+ <title>Details</title>
92
+ <sort_order>0</sort_order>
93
+ <action>inquiry/adminhtml_inquiry</action>
94
+ </inquiry>
95
+ </children>
96
+ </inquiry>
97
+ </menu>
98
+ <acl>
99
+ <resources>
100
+ <all>
101
+ <title>Allow Everything</title>
102
+ </all>
103
+ <admin>
104
+ <children>
105
+ <inquiry>
106
+ <title>Inquiry Module</title>
107
+ <sort_order>200</sort_order>
108
+ </inquiry>
109
+ <system>
110
+ <children>
111
+ <config>
112
+ <children>
113
+ <ranosys>
114
+ <title>Ranosys - All</title>
115
+ </ranosys>
116
+ </children>
117
+ </config>
118
+ </children>
119
+ </system>
120
+ </children>
121
+ </admin>
122
+ </resources>
123
+ </acl>
124
+ </adminhtml>
125
+ </config>
app/code/community/Ranosys/Inquiry/etc/system.xml ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <config>
3
+ <tabs>
4
+ <ranosys translate="label" module="inquiry">
5
+ <label>Cart Inquiry</label>
6
+ <sort_order>100</sort_order>
7
+ </ranosys>
8
+ </tabs>
9
+ <sections>
10
+ <ranosys translate="label" module="inquiry">
11
+ <label>Cart Inquiry Settings</label>
12
+ <tab>ranosys</tab>
13
+ <sort_order>1000</sort_order>
14
+ <show_in_default>1</show_in_default>
15
+ <show_in_website>1</show_in_website>
16
+ <show_in_store>1</show_in_store>
17
+ <groups>
18
+ <ranosys_group translate="label" module="inquiry">
19
+ <label>Cart Inquiry Settings</label>
20
+ <frontend_type>text</frontend_type>
21
+ <sort_order>1000</sort_order>
22
+ <show_in_default>1</show_in_default>
23
+ <show_in_website>1</show_in_website>
24
+ <show_in_store>1</show_in_store>
25
+ <fields>
26
+ <ranosys_enabledisable translate="label">
27
+ <label>Cart Inquiry Enable / Disable </label>
28
+ <frontend_type>select</frontend_type>
29
+ <source_model>adminhtml/system_config_source_enabledisable</source_model>
30
+ <sort_order>1</sort_order>
31
+ <show_in_default>1</show_in_default>
32
+ <show_in_website>1</show_in_website>
33
+ <show_in_store>1</show_in_store>
34
+ </ranosys_enabledisable>
35
+ <ranosys_input translate="label">
36
+ <label>Cart Title </label>
37
+ <frontend_type>text</frontend_type>
38
+ <show_in_default>1</show_in_default>
39
+ <show_in_website>1</show_in_website>
40
+ <show_in_store>1</show_in_store>
41
+ </ranosys_input>
42
+ <ranosys_ranosys_input translate="label">
43
+ <label>Email To: </label>
44
+ <frontend_type>text</frontend_type>
45
+ <show_in_default>1</show_in_default>
46
+ <show_in_website>1</show_in_website>
47
+ <show_in_store>1</show_in_store>
48
+ </ranosys_ranosys_input>
49
+ </fields>
50
+ </ranosys_group>
51
+ </groups>
52
+ </ranosys>
53
+ </sections>
54
+ </config>
app/code/community/Ranosys/Inquiry/sql/inquiry_setup/mysql4-install-0.1.0.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Cart inquiry
4
+ *
5
+ * @category Ranosys
6
+ * @package Ranosys_Inquiry
7
+ * @author Ranosys Technologies Pvt. Ltd.
8
+ */
9
+ $installer = $this;
10
+
11
+ $installer->startSetup();
12
+
13
+ $installer->run("
14
+ -- DROP TABLE IF EXISTS {$this->getTable('inquiry')};
15
+ CREATE TABLE {$this->getTable('inquiry')} (
16
+ `id` int(11) unsigned NOT NULL auto_increment,
17
+ `firstname` varchar(255) NOT NULL default '',
18
+ `lastname` varchar(255) NOT NULL default '',
19
+ `email` varchar(255) NOT NULL default '',
20
+ `phone` bigint(20) NOT NULL default '0',
21
+ `message` text NOT NULL default '',
22
+ `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
23
+ `status` enum('0','1') NOT NULL DEFAULT '0',
24
+ `pid` text NOT NULL default '',
25
+ `pname` text NOT NULL default '',
26
+ `psku` text NOT NULL default '',
27
+ PRIMARY KEY (`id`)
28
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
29
+
30
+ ");
31
+
32
+ $installer->endSetup();
33
+
34
+
app/code/community/Ranosys/Inquiry/sql/mysql4-install-0.1.0.php~ ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $installer = $this;
4
+
5
+ $installer->startSetup();
6
+
7
+ $installer->run("
8
+
9
+ -- DROP TABLE IF EXISTS {$this->getTable('information')};
10
+ CREATE TABLE {$this->getTable('information')} (
11
+ `information_id` int(11) unsigned NOT NULL auto_increment,
12
+ `firstname` varchar(255) NOT NULL default '',
13
+ `lastname` varchar(255) NOT NULL default '',
14
+ `email` varchar(255) NOT NULL default '',
15
+ `phone` bigint(20) NOT NULL default '0',
16
+ `message` text NOT NULL default '',
17
+ `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
18
+ `status` enum('0','1') NOT NULL DEFAULT '0',
19
+ PRIMARY KEY (`information_id`)
20
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
21
+
22
+ ");
23
+
24
+ $installer->endSetup();
app/design/frontend/base/default/template/inquiry/inquiry.phtml DELETED
@@ -1,95 +0,0 @@
1
- <?php
2
- /**
3
- * Cart inquiry
4
- *
5
- * @category Ranosys
6
- * @package Ranosys_Inquiry
7
- * @author Ranosys Technologies Pvt. Ltd.
8
- */
9
- ?>
10
- <?php
11
- $enableorDisable = Mage::getStoreConfig('ranosys/ranosys_group/ranosys_enabledisable',Mage::app()->getStore());
12
-
13
- if($enableorDisable==1){
14
- $cart_qty = (int) Mage::getModel('checkout/cart')->getQuote()->getItemsQty();
15
- if($cart_qty)
16
- {
17
- $itemsCollection = Mage::getSingleton('checkout/session')->getQuote()->getItemsCollection();
18
- $itemsVisible = Mage::getSingleton('checkout/session')->getQuote()->getAllVisibleItems();
19
- $items = Mage::getSingleton('checkout/session')->getQuote()->getAllItems();
20
-
21
- foreach($items as $item) {
22
- $product['id'][]=$item->getProductId();
23
- $product['name'][]=$item->getName();
24
- $product['sku'][]=$item->getSku();
25
- }
26
- $productId=implode(',',$product['id']);
27
- $productName=implode(',',$product['name']);
28
- $productSku=implode(',',$product['sku']);
29
- ?>
30
- <div id="messages"><?php //echo $this->getMessagesBlock()->toHtml() ?></div>
31
- <div class="page-title">
32
- <?php
33
- $cartTittle = Mage::getStoreConfig('ranosys/ranosys_group/ranosys_input',Mage::app()->getStore());
34
- if($cartTittle!=''){
35
- $tittle=$cartTittle;
36
- }
37
- else{
38
- $tittle=Mage::helper('inquiry')->__('Cart Inquiry');
39
- }?>
40
- <h1><?php echo $tittle ?></h1>
41
- </div>
42
- <form action="<?php echo $this->getUrl('inquiry/index/save') ?>" id="inquiryForm" method="post" class="scaffold-form">
43
- <div class="fieldset">
44
- <p class="required"><?php echo Mage::helper('inquiry')->__('* Required Fields') ?></p>
45
- <ul class="form-list">
46
- <li class="fields">
47
- <div class="field">
48
- <label for="firstname" class="required"><em>*</em><?php echo Mage::helper('inquiry')->__('First Name') ?></label>
49
- <div class="input-box">
50
- <input name="firstname" id="firstname" title="<?php echo Mage::helper('inquiry')->__('First Name') ?>" value="" class="input-text required-entry validate-alpha" type="text" />
51
- </div>
52
- </div>
53
- <div class="field">
54
- <label for="lastname" class="required"><em>*</em><?php echo Mage::helper('inquiry')->__('Last Name') ?></label>
55
- <div class="input-box">
56
- <input name="lastname" id="lastname" title="<?php echo Mage::helper('inquiry')->__('Last Name') ?>" value="" class="input-text required-entry validate-alpha" type="text" />
57
- </div>
58
- </div>
59
- <div class="field">
60
- <label for="email" class="required"><em>*</em><?php echo Mage::helper('inquiry')->__('Email') ?></label>
61
- <div class="input-box">
62
- <input name="email" id="email" title="<?php echo Mage::helper('inquiry')->__('Email') ?>" value="" class="input-text required-entry validate-email" type="email" autocapitalize="off" autocorrect="off" spellcheck="false" />
63
- </div>
64
- </div>
65
- </li>
66
- <li>
67
- <label for="phone"><?php echo Mage::helper('inquiry')->__('Phone') ?></label>
68
- <div class="input-box">
69
- <input name="phone" id="phone" title="<?php echo Mage::helper('inquiry')->__('Phone') ?>" value="" class="input-text" type="text" />
70
- </div>
71
- </li>
72
- <li class="wide">
73
- <label for="message" class="required"><em>*</em><?php echo Mage::helper('inquiry')->__('Message') ?></label>
74
- <div class="input-box">
75
- <textarea name="message" id="message" title="<?php echo Mage::helper('inquiry')->__('Message') ?>" class="required-entry input-text" cols="5" rows="3"></textarea>
76
- </div>
77
- </li>
78
- </ul>
79
- </div>
80
- <input type="hidden" name="productId" value="<?php echo $productId; ?>">
81
- <input type="hidden" name="productName" value="<?php echo $productName;?>">
82
- <input type="hidden" name="productSku" value="<?php echo $productSku;?>">
83
- <div class="buttons-set">
84
- <input type="text" name="hideit" id="hideit" value="" style="display:none !important;" />
85
- <button type="submit" title="<?php echo Mage::helper('inquiry')->__('Submit') ?>" class="button" style="float: left !important;"><span><span><?php echo Mage::helper('inquiry')->__('Submit') ?></span></span></button>
86
- </div>
87
- </form>
88
- <script type="text/javascript">
89
- //<![CDATA[
90
- var contactForm = new VarienForm('inquiryForm', true);
91
- //]]>
92
- </script>
93
- <?php }
94
-
95
- }?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>cart_inquiry</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
@@ -34,11 +34,12 @@ Support Email: manish@ranosys.com&#xD;
34
  1. Refresh all cache from admin panel.&#xD;
35
  2. Enable extension from setting tab&#xD;
36
  3. Configured email and title.&#xD;
37
- 4. See results on cart page</notes>
38
- <authors><author><name>Manish Mittal</name><user>ranomanish</user><email>manish@ranosys.com</email></author><author><name>Hanu Gupta</name><user>ranohanu</user><email>hanu@ranosys.com</email></author><author><name>Vivek Chaturvedi</name><user>ranoVivek</user><email>vivek@ranosys.com</email></author></authors>
39
- <date>2015-03-23</date>
40
- <time>17:17:04</time>
41
- <contents><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="inquiry.xml" hash="2e771abf63301133d470cec8d1c58d49"/><file name="local.xml" hash="16dc8d0a4e7e224cb6e47f92baa1aee0"/></dir><dir name="template"><dir name="inquiry"><file name="inquiry.phtml" hash="2d021f428679542cb3f1351d984fd306"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ranosys_Inquiry.xml" hash="1f12b2bb10c991f5da5d8f391fa3b795"/></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><file name="inquiry_template.html" hash="78238ff907c5d822485d138fd3204a46"/></dir></dir></dir></target></contents>
 
42
  <compatible/>
43
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
44
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>cart_inquiry</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
34
  1. Refresh all cache from admin panel.&#xD;
35
  2. Enable extension from setting tab&#xD;
36
  3. Configured email and title.&#xD;
37
+ 4. See results on cart page&#xD;
38
+ 5. For custom theme place files at specific path.</notes>
39
+ <authors><author><name>Manish Mittal</name><user>ranosysmanish</user><email>manish@ranosys.com</email></author><author><name>Hanu Gupta</name><user>hanu</user><email>hanu@ranosys.com</email></author><author><name>Vivek Chaturvedi</name><user>ranovivek</user><email>vivek@ranosys.com</email></author></authors>
40
+ <date>2015-04-09</date>
41
+ <time>18:15:41</time>
42
+ <contents><target name="magecommunity"><dir name="Ranosys"><dir name="Inquiry"><dir name="Block"><dir name="Adminhtml"><dir name="Inquiry"><dir name="Edit"><file name="Form.php" hash="84050d92abb9a1b0c1e9d11752e28ead"/><dir name="Tab"><file name="Form.php" hash="bc2b5b0fb69fc9ede7a34dbe3cacd74a"/></dir><file name="Tabs.php" hash="c94d16ceb1cf389749c6c5e02f8801f8"/></dir><file name="Edit.php" hash="516b50058262d7bb16d16df23cb733d9"/><file name="Grid.php" hash="f8668c2a14621b86b0443a5030032897"/></dir><file name="Inquiry.php" hash="252911329e2a7e192a5db1fdd53f7979"/></dir></dir><dir name="Helper"><file name="Data.php" hash="7cd99f4ac52e4980194c039b1d79598c"/><file name="Data.php~" hash="b7cfd638af670216c7bdc4a1a2db600d"/></dir><dir name="Model"><file name="Information.php~" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Inquiry.php" hash="9301d8ba19e6af3e57dc08c637d796a9"/><dir name="Mysql4"><file name="Information.php~" hash="37a0865a62f25f684a6bd92e870e556d"/><dir name="Inquiry"><file name="Collection.php" hash="2f39db1876e424125bd4f871baf82b55"/><file name="Collection.php~" hash="1d5e42748311bb1adac7c602c8657b1f"/></dir><file name="Inquiry.php" hash="da71478527a4bfb5b2f0fad0943bdf81"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="InquiryController.php" hash="33ef8b072a239ca776c77a2e8edc5b58"/></dir><file name="IndexController.php" hash="608da48bc9f5050f8b9dd5a622bbf60c"/><file name="IndexController.php~" hash="9854866ff055d53565d2acd4b4890d72"/></dir><dir name="etc"><file name="config.xml" hash="165557a9aa596e1cc30fe506e2a60b03"/><file name="system.xml" hash="f6e56ee2839de36f6bb14600dc02b36c"/></dir><dir name="sql"><dir name="inquiry_setup"><file name="mysql4-install-0.1.0.php" hash="f7b2c447a8e88a74c22edd0f406547e4"/></dir><file name="mysql4-install-0.1.0.php~" hash="e041c85ffc560a173e24375a6f62d930"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="inquiry.xml" hash="2e771abf63301133d470cec8d1c58d49"/><file name="local.xml" hash="16dc8d0a4e7e224cb6e47f92baa1aee0"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ranosys_Inquiry.xml" hash="1f12b2bb10c991f5da5d8f391fa3b795"/></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><file name="inquiry_template.html" hash="78238ff907c5d822485d138fd3204a46"/></dir></dir></dir></target></contents>
43
  <compatible/>
44
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
45
  </package>