Dealer_Inquery - Version 1.1.6

Version Notes

Dealer Inquery

Download this release

Release Info

Developer Magento Core Team
Extension Dealer_Inquery
Version 1.1.6
Comparing to
See all releases


Code changes from version 1.1.5 to 1.1.6

app/code/community/CapacityWebSolutions/Inquiry/controllers/IndexController.php CHANGED
@@ -22,11 +22,11 @@ class CapacityWebSolutions_Inquiry_IndexController extends Mage_Core_Controller_
22
 
23
  if($collection->delete())
24
  {
25
- Mage::getSingleton('core/session')->addSuccess("Inquire deleted successfully.");
26
  }
27
  else
28
  {
29
- Mage::getSingleton('core/session')->addError("Sorry inquire is not deleted.");
30
  }
31
  }
32
 
22
 
23
  if($collection->delete())
24
  {
25
+ //Mage::getSingleton('core/session')->addSuccess("Inquiry deleted successfully.");
26
  }
27
  else
28
  {
29
+ Mage::getSingleton('core/session')->addError("Sorry inquiry is not deleted.");
30
  }
31
  }
32
 
app/code/community/CapacityWebSolutions/Inquiry/controllers/Manage/InquiryController.php CHANGED
@@ -17,11 +17,11 @@ class CapacityWebSolutions_Inquiry_Manage_InquiryController extends Mage_Adminht
17
 
18
  if($collection->delete())
19
  {
20
- Mage::getSingleton('core/session')->addSuccess("Inquire deleted successfully.");
21
  }
22
  else
23
  {
24
- Mage::getSingleton('core/session')->addError("Sorry inquire is not deleted.");
25
  }
26
  }
27
 
@@ -99,8 +99,8 @@ class CapacityWebSolutions_Inquiry_Manage_InquiryController extends Mage_Adminht
99
  $customer->setFirstname($values[1]);
100
  $customer->setLastname($values[2]);
101
  $customer->setTaxvat($values[10]);
102
- //$customer->setPassword($randompass);
103
- $customer->setPassword($values[1].'pass');
104
  $customer->setConfirmation(null);
105
  $customer->save();
106
  if($customer->save())
17
 
18
  if($collection->delete())
19
  {
20
+ Mage::getSingleton('core/session')->addSuccess("Inquiry deleted successfully.");
21
  }
22
  else
23
  {
24
+ Mage::getSingleton('core/session')->addError("Sorry inquiry is not deleted.");
25
  }
26
  }
27
 
99
  $customer->setFirstname($values[1]);
100
  $customer->setLastname($values[2]);
101
  $customer->setTaxvat($values[10]);
102
+ $customer->setPassword($randompass);
103
+ //$customer->setPassword($values[1].'pass');
104
  $customer->setConfirmation(null);
105
  $customer->save();
106
  if($customer->save())
app/code/community/CapacityWebSolutions/Inquiry/etc/config.xml CHANGED
@@ -86,7 +86,7 @@
86
  <sort_order>71</sort_order>
87
  <children>
88
  <items module="inquiry">
89
- <title>Delear Management</title>
90
  <sort_order>0</sort_order>
91
  <action>inquiry/manage_inquiry</action> <!-- This is url of admin section module page. we can define it's controller any ware. Here "inquiry" is module name while "manage" is folder name that will be in "controller" folder and 2nd "inquiry" is name of the controller. its action will be indexAction. -->
92
  </items>
86
  <sort_order>71</sort_order>
87
  <children>
88
  <items module="inquiry">
89
+ <title>Dealer Management</title>
90
  <sort_order>0</sort_order>
91
  <action>inquiry/manage_inquiry</action> <!-- This is url of admin section module page. we can define it's controller any ware. Here "inquiry" is module name while "manage" is folder name that will be in "controller" folder and 2nd "inquiry" is name of the controller. its action will be indexAction. -->
92
  </items>
app/design/adminhtml/default/default/template/inquiry/inquiry.phtml CHANGED
@@ -28,13 +28,13 @@
28
  <col width="10">
29
  <thead>
30
  <tr class="headings">
31
- <th><span class="nobr"><a class="not-sort" title="asc" name="title">Sr#</a></span></th>
32
- <th><span class="nobr"><a class="not-sort" title="desc" name="identifier">First Name</a></span></th>
33
- <th><span class="nobr"><a class="not-sort" title="asc" name="root_template">Last Name</a></span></th>
34
- <th><span class="nobr"><a class="not-sort" title="asc" name="is_active">Company Name</a></span></th>
35
- <th><span class="nobr"><a class="not-sort" title="asc" name="creation_time">Email</a></span></th>
36
- <th><span class="nobr"><a class="not-sort" title="asc" name="update_time">Is Created</a></span></th>
37
- <th><span class="nobr"><a class="not-sort" title="asc" name="update_time">Created Date</a></span></th>
38
  <th class=" no-link last"><span class="nobr">Action</span></th>
39
  </tr>
40
  </thead>
@@ -61,9 +61,8 @@
61
  <td class="a-left ">&nbsp;
62
 
63
 
64
- <a href="<?php echo $this->getUrl("inquiry/index/del/delid/".$item['dealerid'])?>" onclick="javascript:return confirm('Are you sure to delete this Inquire?')"><img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN)."adminhtml/default/default/images/icon_btn_delete.gif";?>" alt="Delete" title="Delete" /></a>&nbsp;&nbsp;
65
-
66
- <a href="<?php echo Mage::helper("adminhtml")->getUrl("inquiry/manage_inquiry/view/delid/".$item['dealerid']);?>"><img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN)."adminhtml/default/default/images/fam_page_white.gif";?>" alt="View" title="View" /></a>
67
 
68
  <?php if($IsCreated==0) {?>
69
  &nbsp;&nbsp;<a href="<?php echo Mage::helper("adminhtml")->getUrl("inquiry/manage_inquiry/createCustomer/multival/".$item['email'].'~~'.$item['firstname'].'~~'.$item['lastname'].'~~'.$item['company'].'~~'.$item['address'].'~~'.$item['city'].'~~'.$item['state'].'~~'.$item['zip'].'~~'.$item['phone'].'~~'.$item['country'].'~~'.$item['taxvat']);?>" onclick="javascript:return confirm('Are you sure to create the account?')"><img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN)."adminhtml/default/default/images/fam_page_white_edit.gif";?>" alt="Create Customer" title="Create Customer" /></a></td>
28
  <col width="10">
29
  <thead>
30
  <tr class="headings">
31
+ <th><span class="nobr"><a class="not-sort" title="Sr#" name="title">Sr#</a></span></th>
32
+ <th><span class="nobr"><a class="not-sort" title="First Name" name="identifier">First Name</a></span></th>
33
+ <th><span class="nobr"><a class="not-sort" title="Last Name" name="root_template">Last Name</a></span></th>
34
+ <th><span class="nobr"><a class="not-sort" title="Company Name" name="is_active">Company Name</a></span></th>
35
+ <th><span class="nobr"><a class="not-sort" title="Email" name="creation_time">Email</a></span></th>
36
+ <th><span class="nobr"><a class="not-sort" title="Is Created" name="update_time">Is Created</a></span></th>
37
+ <th><span class="nobr"><a class="not-sort" title="Created Date" name="update_time">Created Date</a></span></th>
38
  <th class=" no-link last"><span class="nobr">Action</span></th>
39
  </tr>
40
  </thead>
61
  <td class="a-left ">&nbsp;
62
 
63
 
64
+ <a href="<?php echo $this->getUrl("inquiry/index/del/delid/".$item['dealerid'])?>" onclick="javascript:return confirm('Are you sure to delete this Inquiry?')"><img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN)."adminhtml/default/default/images/icon_btn_delete.gif";?>" alt="Delete" title="Delete" /></a>&nbsp;&nbsp;
65
+ <a href="<?php echo Mage::helper("adminhtml")->getUrl("inquiry/manage_inquiry/view/delid/".$item['dealerid']);?>"><img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN)."adminhtml/default/default/images/fam_page_white.gif";?>" alt="View" title="View" /></a>
 
66
 
67
  <?php if($IsCreated==0) {?>
68
  &nbsp;&nbsp;<a href="<?php echo Mage::helper("adminhtml")->getUrl("inquiry/manage_inquiry/createCustomer/multival/".$item['email'].'~~'.$item['firstname'].'~~'.$item['lastname'].'~~'.$item['company'].'~~'.$item['address'].'~~'.$item['city'].'~~'.$item['state'].'~~'.$item['zip'].'~~'.$item['phone'].'~~'.$item['country'].'~~'.$item['taxvat']);?>" onclick="javascript:return confirm('Are you sure to create the account?')"><img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN)."adminhtml/default/default/images/fam_page_white_edit.gif";?>" alt="Create Customer" title="Create Customer" /></a></td>
app/design/frontend/default/default/layout/inquiry.xml CHANGED
@@ -3,7 +3,7 @@
3
  <layout version="0.1.0">
4
  <default>
5
  <reference name="top.links">
6
- <action method="addLink" translate="label title" module="inquiry"><label>Delear Inquery</label><url>inquiry/</url><title>Delear Inquery</title><prepare>ture</prepare><urlParams/><position>100</position></action>
7
  </reference>
8
  </default>
9
 
3
  <layout version="0.1.0">
4
  <default>
5
  <reference name="top.links">
6
+ <action method="addLink" translate="label title" module="inquiry"><label>Dealer Inquiry</label><url>inquiry/</url><title>Dealer Inquiry</title><prepare>true</prepare><urlParams/><position>100</position></action>
7
  </reference>
8
  </default>
9
 
app/design/frontend/default/default/template/inquiry/inquiry.phtml CHANGED
@@ -7,7 +7,9 @@
7
  $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat');
8
  ?>
9
 
10
-
 
 
11
 
12
  <div id="about-copy">
13
  <h1>Dealer inquiries</h1>
@@ -15,7 +17,7 @@
15
  <form name="dealerInquiry" id="dealerInquiry" action="<?php echo $this->getUrl("inquiry/index/thanks"); ?>" method="post">
16
  <table width="100%" border="0" cellpadding="0" cellspacing="10px" style="border-spacing:10px;">
17
  <tr>
18
- <Td colspan="2" style="text-align:right;"><span class="required">*</span> Indicates required.</Td>
19
  </tr>
20
  <tr>
21
  <td width="20%">First Name&nbsp;<span class="required">*</span></td>
7
  $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat');
8
  ?>
9
 
10
+ <style>
11
+ .required { color: #EB340A; }
12
+ </style>
13
 
14
  <div id="about-copy">
15
  <h1>Dealer inquiries</h1>
17
  <form name="dealerInquiry" id="dealerInquiry" action="<?php echo $this->getUrl("inquiry/index/thanks"); ?>" method="post">
18
  <table width="100%" border="0" cellpadding="0" cellspacing="10px" style="border-spacing:10px;">
19
  <tr>
20
+ <Td colspan="2" style="text-align:right; color:red;"><span class="required">*</span> Indicates required.</Td>
21
  </tr>
22
  <tr>
23
  <td width="20%">First Name&nbsp;<span class="required">*</span></td>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Dealer_Inquery</name>
4
- <version>1.1.5</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>This extension is providing inquiry form.</summary>
10
- <description>Dealer filled the details like name, address, contact number, email, website and description inquiry form. It informs to customer and admin by email when customer submits inquiry form. This extension also provides customer listing who submit inquiry form in admin under &amp;amp;amp;#x201C;Dealer Management &amp;amp;amp;#x201C;section. You can view inquiry details of customer and also delete the inquiry information. This extension provides create customer link from dealer listing page.</description>
11
  <notes>Dealer Inquery</notes>
12
- <authors><author><name>Capacity Web Solutions</name><user>capacitywebsolutions</user><email>magento@capacitywebsolutions.com</email></author></authors>
13
- <date>2012-07-04</date>
14
- <time>10:18:51</time>
15
- <contents><target name="magecommunity"><dir name="CapacityWebSolutions"><dir name="Inquiry"><dir name="Block"><file name="Inquiry.php" hash="c57724e9f9ee110749fb069ecef725b8"/><dir name="Manage"><file name="Inquiry.php" hash="9763614178f7d3b9988f4dda528ab2fc"/></dir></dir><dir name="Helper"><file name="Data.php" hash="3727f4f66a8f27b8c2aee88808934919"/></dir><dir name="Model"><file name="Inquiry.php" hash="cf83fcc67ad4fa8906f3a73266e48827"/><dir name="Mysql4"><dir name="Inquiry"><file name="Collection.php" hash="31cfb1582d408a5495f3863fc84937f2"/></dir><file name="Inquiry.php" hash="c248c2c9e909dc5d3d9179c470c2bb91"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="c712d8d1a6e5e059c796db4569148542"/><dir name="Manage"><file name="InquiryController.php" hash="29be2a96b8308d4ba0f66a5d566a3fd4"/></dir></dir><dir name="etc"><file name="config.xml" hash="563243d20691ea9fc803c46564c46044"/><file name="system.xml" hash="a7fa4e299399752f973cfb7c23b09946"/></dir><dir name="sql"><dir name="inquiry_setup"><file name="mysql4-install-0.1.0.php" hash="e45204de22d11c996a2e2165fd168b40"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="CapacityWebSolutions_Inquiry.xml" hash="6cab57f39d7ee7c749a6076924a644ad"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="inquiry"><file name="inquiry.phtml" hash="ca32ddf5cf0bb8379e05d80072aea8e6"/><file name="view.phtml" hash="cc2c314a773639ca2e5711270267b7d8"/></dir></dir><dir name="layout"><file name="inquiry.xml" hash="ca5a9dd55f3aef957f8e3835518f44f8"/></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="inquiry"><file name="inquiry.phtml" hash="00757b932ca8ddc80ea4c90860231658"/><file name="thanks.phtml" hash="157c91baa6227dc09a17a6b3f65d5844"/></dir></dir></dir></dir></dir><dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="inquiry.xml" hash="5aef78924cf5494891d4143a0375a1e3"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="images"><file name="button_submit.jpg" hash="c55995572964cf7462fcb452ff919dee"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
- <dependencies><required><php><min>5.0.0</min><max>5.5.2</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Dealer_Inquery</name>
4
+ <version>1.1.6</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>This extension is providing inquiry form.</summary>
10
+ <description>Dealer filled the details like name, address, contact number, email, website and description inquiry form. It informs to customer and admin by email when customer submits inquiry form. This extension also provides customer listing who submit inquiry form in admin under "&lt;strong&gt;Dealer Management &lt;/strong&gt;"section. You can view inquiry details of customer and also delete the inquiry information. This extension provides create customer link from dealer listing page.</description>
11
  <notes>Dealer Inquery</notes>
12
+ <authors><author><name>Capacity Web Solutions</name><user>auto-converted</user><email>magento@capacitywebsolutions.com</email></author></authors>
13
+ <date>2013-11-28</date>
14
+ <time>11:07:33</time>
15
+ <contents><target name="magecommunity"><dir name="CapacityWebSolutions"><dir name="Inquiry"><dir name="Block"><dir name="Manage"><file name="Inquiry.php" hash="9763614178f7d3b9988f4dda528ab2fc"/></dir><file name="Inquiry.php" hash="c57724e9f9ee110749fb069ecef725b8"/></dir><dir name="Helper"><file name="Data.php" hash="3727f4f66a8f27b8c2aee88808934919"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Inquiry"><file name="Collection.php" hash="31cfb1582d408a5495f3863fc84937f2"/></dir><file name="Inquiry.php" hash="c248c2c9e909dc5d3d9179c470c2bb91"/></dir><file name="Inquiry.php" hash="cf83fcc67ad4fa8906f3a73266e48827"/></dir><dir name="controllers"><dir name="Manage"><file name="InquiryController.php" hash="ba21a4a145adb5e4d107e52ea3b1bbb4"/></dir><file name="IndexController.php" hash="e94f4c84e03abb4bb33ca3a85467e15f"/></dir><dir name="etc"><file name="config.xml" hash="690e51b57a6da38cfac4f4264ad915cf"/><file name="system.xml" hash="a7fa4e299399752f973cfb7c23b09946"/></dir><dir name="sql"><dir name="inquiry_setup"><file name="mysql4-install-0.1.0.php" hash="e45204de22d11c996a2e2165fd168b40"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="inquiry"><file name="inquiry.phtml" hash="4444e7b6c5c68fe86afa134fa9ff2df8"/><file name="thanks.phtml" hash="157c91baa6227dc09a17a6b3f65d5844"/></dir></dir><dir name="layout"><file name="inquiry.xml" hash="7d6fb2dcd394f4f3ae1226e7c649c482"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="inquiry"><file name="inquiry.phtml" hash="22e51268e679274c93909d007d6483fb"/><file name="view.phtml" hash="cc2c314a773639ca2e5711270267b7d8"/></dir></dir><dir name="layout"><file name="inquiry.xml" hash="ca5a9dd55f3aef957f8e3835518f44f8"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="CapacityWebSolutions_Inquiry.xml" hash="6cab57f39d7ee7c749a6076924a644ad"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="images"><file name="button_submit.jpg" hash="c55995572964cf7462fcb452ff919dee"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
+ <dependencies/>
18
  </package>