Version Notes
Dealer Inquiry
Download this release
Release Info
Developer | Capacity Web Solutions |
Extension | Dealer_Inquery |
Version | 1.2.1 |
Comparing to | |
See all releases |
Code changes from version 1.2.0 to 1.2.1
- app/code/community/CapacityWebSolutions/Inquiry/controllers/{Manage → Adminhtml}/InquiryController.php +1 -1
- app/code/community/CapacityWebSolutions/Inquiry/etc/config.xml +3 -2
- app/code/community/CapacityWebSolutions/Inquiry/etc/system.xml +9 -0
- app/design/adminhtml/default/default/layout/inquiry.xml +4 -4
- app/design/adminhtml/default/default/template/inquiry/inquiry.phtml +2 -2
- app/design/adminhtml/default/default/template/inquiry/view.phtml +2 -2
- app/design/frontend/base/default/template/inquiry/inquiry.phtml +22 -18
- package.xml +4 -4
app/code/community/CapacityWebSolutions/Inquiry/controllers/{Manage → Adminhtml}/InquiryController.php
RENAMED
@@ -8,7 +8,7 @@
|
|
8 |
@support : magento@capacitywebsolutions.com
|
9 |
***************************************************************************/
|
10 |
|
11 |
-
class
|
12 |
{
|
13 |
public function indexAction()
|
14 |
{
|
8 |
@support : magento@capacitywebsolutions.com
|
9 |
***************************************************************************/
|
10 |
|
11 |
+
class CapacityWebSolutions_Inquiry_Adminhtml_InquiryController extends Mage_Adminhtml_Controller_Action
|
12 |
{
|
13 |
public function indexAction()
|
14 |
{
|
app/code/community/CapacityWebSolutions/Inquiry/etc/config.xml
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
<config>
|
14 |
<modules>
|
15 |
<CapacityWebSolutions_Inquiry>
|
16 |
-
<version>1.2.
|
17 |
</CapacityWebSolutions_Inquiry>
|
18 |
</modules>
|
19 |
<global>
|
@@ -92,7 +92,7 @@
|
|
92 |
<items module="inquiry">
|
93 |
<title>Dealer Management</title>
|
94 |
<sort_order>0</sort_order>
|
95 |
-
<action>inquiry/
|
96 |
</items>
|
97 |
<dealer_settings module="inquiry">
|
98 |
<title>Settings</title>
|
@@ -137,6 +137,7 @@
|
|
137 |
<description>Write description here and it will display after Title.</description>
|
138 |
<success_tital>Thank You.</success_tital>
|
139 |
<success_des>Thank you for contacting us.</success_des>
|
|
|
140 |
</general>
|
141 |
<customer_email>
|
142 |
<heading>Thank you for contacting Us.</heading>
|
13 |
<config>
|
14 |
<modules>
|
15 |
<CapacityWebSolutions_Inquiry>
|
16 |
+
<version>1.2.1</version>
|
17 |
</CapacityWebSolutions_Inquiry>
|
18 |
</modules>
|
19 |
<global>
|
92 |
<items module="inquiry">
|
93 |
<title>Dealer Management</title>
|
94 |
<sort_order>0</sort_order>
|
95 |
+
<action>inquiry/adminhtml_inquiry/index</action>
|
96 |
</items>
|
97 |
<dealer_settings module="inquiry">
|
98 |
<title>Settings</title>
|
137 |
<description>Write description here and it will display after Title.</description>
|
138 |
<success_tital>Thank You.</success_tital>
|
139 |
<success_des>Thank you for contacting us.</success_des>
|
140 |
+
<indicates>Indicates Required.</indicates>
|
141 |
</general>
|
142 |
<customer_email>
|
143 |
<heading>Thank you for contacting Us.</heading>
|
app/code/community/CapacityWebSolutions/Inquiry/etc/system.xml
CHANGED
@@ -87,6 +87,15 @@
|
|
87 |
<show_in_website>1</show_in_website>
|
88 |
<show_in_store>1</show_in_store>
|
89 |
</success_des>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
</fields>
|
91 |
</general>
|
92 |
</groups>
|
87 |
<show_in_website>1</show_in_website>
|
88 |
<show_in_store>1</show_in_store>
|
89 |
</success_des>
|
90 |
+
<indicates translate="label">
|
91 |
+
<label>Indicates Required Label</label>
|
92 |
+
<comment>Here, We can Change Dealer inquiry Indicates Required Label. </comment>
|
93 |
+
<frontend_type>text</frontend_type>
|
94 |
+
<sort_order>50</sort_order>
|
95 |
+
<show_in_default>1</show_in_default>
|
96 |
+
<show_in_website>1</show_in_website>
|
97 |
+
<show_in_store>1</show_in_store>
|
98 |
+
</indicates>
|
99 |
</fields>
|
100 |
</general>
|
101 |
</groups>
|
app/design/adminhtml/default/default/layout/inquiry.xml
CHANGED
@@ -10,16 +10,16 @@
|
|
10 |
-->
|
11 |
|
12 |
<layout>
|
13 |
-
<
|
14 |
<reference name="content">
|
15 |
<block type="inquiry/inquiry" name="inquiry" template="inquiry/inquiry.phtml"/>
|
16 |
</reference>
|
17 |
-
</
|
18 |
|
19 |
-
<
|
20 |
<reference name="content">
|
21 |
<block type="inquiry/inquiry" name="inquiry" template="inquiry/view.phtml"/>
|
22 |
</reference>
|
23 |
-
</
|
24 |
|
25 |
</layout>
|
10 |
-->
|
11 |
|
12 |
<layout>
|
13 |
+
<inquiry_adminhtml_inquiry_index>
|
14 |
<reference name="content">
|
15 |
<block type="inquiry/inquiry" name="inquiry" template="inquiry/inquiry.phtml"/>
|
16 |
</reference>
|
17 |
+
</inquiry_adminhtml_inquiry_index>
|
18 |
|
19 |
+
<inquiry_adminhtml_inquiry_view>
|
20 |
<reference name="content">
|
21 |
<block type="inquiry/inquiry" name="inquiry" template="inquiry/view.phtml"/>
|
22 |
</reference>
|
23 |
+
</inquiry_adminhtml_inquiry_view>
|
24 |
|
25 |
</layout>
|
app/design/adminhtml/default/default/template/inquiry/inquiry.phtml
CHANGED
@@ -83,10 +83,10 @@
|
|
83 |
<td class="a-left ">
|
84 |
<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>
|
85 |
|
86 |
-
<a href="<?php echo Mage::helper("adminhtml")->getUrl("inquiry/
|
87 |
|
88 |
<?php if($IsCreated==0) {?>
|
89 |
-
<a href="<?php echo Mage::helper("adminhtml")->getUrl("inquiry/
|
90 |
<?php } ?>
|
91 |
</tr>
|
92 |
<?php $i++;
|
83 |
<td class="a-left ">
|
84 |
<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>
|
85 |
|
86 |
+
<a href="<?php echo Mage::helper("adminhtml")->getUrl("inquiry/adminhtml_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>
|
87 |
|
88 |
<?php if($IsCreated==0) {?>
|
89 |
+
<a href="<?php echo Mage::helper("adminhtml")->getUrl("inquiry/adminhtml_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'].'~~'.$item['storeid']);?>" 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>
|
90 |
<?php } ?>
|
91 |
</tr>
|
92 |
<?php $i++;
|
app/design/adminhtml/default/default/template/inquiry/view.phtml
CHANGED
@@ -30,7 +30,7 @@
|
|
30 |
</table>
|
31 |
</div>
|
32 |
<?php
|
33 |
-
$prevurl = Mage::helper("adminhtml")->getUrl("inquiry/
|
34 |
<div class="back">
|
35 |
<a href="<?php echo $prevurl;?>">
|
36 |
<span><font size="4px">«</font> Back</span>
|
@@ -38,7 +38,7 @@
|
|
38 |
<?php if($IsCreated==0)
|
39 |
{
|
40 |
?>
|
41 |
-
<a href="<?php echo Mage::helper("adminhtml")->getUrl("inquiry/
|
42 |
<?php
|
43 |
}
|
44 |
$country1 = explode('$$$',$item['country']);
|
30 |
</table>
|
31 |
</div>
|
32 |
<?php
|
33 |
+
$prevurl = Mage::helper("adminhtml")->getUrl("inquiry/adminhtml_inquiry/index/"); ?>
|
34 |
<div class="back">
|
35 |
<a href="<?php echo $prevurl;?>">
|
36 |
<span><font size="4px">«</font> Back</span>
|
38 |
<?php if($IsCreated==0)
|
39 |
{
|
40 |
?>
|
41 |
+
<a href="<?php echo Mage::helper("adminhtml")->getUrl("inquiry/adminhtml_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'].'~~'.$item['storeid']);?>" onclick="javascript:return confirm('Are you sure to create the account?')">Create Customer</a>
|
42 |
<?php
|
43 |
}
|
44 |
$country1 = explode('$$$',$item['country']);
|
app/design/frontend/base/default/template/inquiry/inquiry.phtml
CHANGED
@@ -9,22 +9,23 @@
|
|
9 |
|
10 |
$code = trim($this->getRandomCode());
|
11 |
$_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat');
|
12 |
-
$heading = Mage::getStoreConfig('inquiry/general/heading');
|
13 |
-
$
|
14 |
-
$
|
15 |
-
$
|
16 |
-
$
|
17 |
-
$
|
18 |
-
$
|
19 |
-
$
|
20 |
-
$
|
21 |
-
$
|
22 |
-
$
|
23 |
-
$
|
24 |
-
$
|
25 |
-
$
|
26 |
-
$
|
27 |
-
$
|
|
|
28 |
$last_name_hide = Mage::getStoreConfig('inquiry/label_hide/l_name');
|
29 |
$vat_number_hide = Mage::getStoreConfig('inquiry/label_hide/vat_number');
|
30 |
$address_hide = Mage::getStoreConfig('inquiry/label_hide/address');
|
@@ -71,9 +72,12 @@ jq("#img_refresh").click(function(){
|
|
71 |
<?php endif; ?>
|
72 |
|
73 |
<div id="about-copy" class="inquiryForm">
|
74 |
-
<h1><img src="<?php echo $this->getSkinUrl('images/inquiry-icon.png') ?>" alt="" /><?php if($heading): ?><?php echo $this->__($heading); ?><?php
|
75 |
<p><?php if($des_gen): ?><?php echo $des_gen; ?><?php endif; ?></p>
|
76 |
-
|
|
|
|
|
|
|
77 |
<?php
|
78 |
$msg = Mage::getSingleton('core/session')->getSomeSessionVar();
|
79 |
if($msg == 'wrong') { ?>
|
9 |
|
10 |
$code = trim($this->getRandomCode());
|
11 |
$_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat');
|
12 |
+
$heading = trim(Mage::getStoreConfig('inquiry/general/heading'));
|
13 |
+
$indicates = trim(Mage::getStoreConfig('inquiry/general/indicates'));
|
14 |
+
$des_gen = trim(Mage::getStoreConfig('inquiry/general/description'));
|
15 |
+
$btn_text = trim(Mage::getStoreConfig('inquiry/general/btn_text'));
|
16 |
+
$first_name = trim(Mage::getStoreConfig('inquiry/change_label/f_name'));
|
17 |
+
$last_name = trim(Mage::getStoreConfig('inquiry/change_label/l_name'));
|
18 |
+
$company_name = trim(Mage::getStoreConfig('inquiry/change_label/company_name'));
|
19 |
+
$vat_number = trim(Mage::getStoreConfig('inquiry/change_label/vat_number'));
|
20 |
+
$address = trim(Mage::getStoreConfig('inquiry/change_label/address'));
|
21 |
+
$city = trim(Mage::getStoreConfig('inquiry/change_label/city'));
|
22 |
+
$state = trim(Mage::getStoreConfig('inquiry/change_label/state'));
|
23 |
+
$country = trim(Mage::getStoreConfig('inquiry/change_label/country'));
|
24 |
+
$postal_code = trim(Mage::getStoreConfig('inquiry/change_label/postal_code'));
|
25 |
+
$contact_number = trim(Mage::getStoreConfig('inquiry/change_label/contact_number'));
|
26 |
+
$email = trim(Mage::getStoreConfig('inquiry/change_label/email'));
|
27 |
+
$website = trim(Mage::getStoreConfig('inquiry/change_label/website'));
|
28 |
+
$description = trim(Mage::getStoreConfig('inquiry/change_label/description'));
|
29 |
$last_name_hide = Mage::getStoreConfig('inquiry/label_hide/l_name');
|
30 |
$vat_number_hide = Mage::getStoreConfig('inquiry/label_hide/vat_number');
|
31 |
$address_hide = Mage::getStoreConfig('inquiry/label_hide/address');
|
72 |
<?php endif; ?>
|
73 |
|
74 |
<div id="about-copy" class="inquiryForm">
|
75 |
+
<h1><img src="<?php echo $this->getSkinUrl('images/inquiry-icon.png') ?>" alt="" /><?php if($heading): ?><?php echo $this->__($heading); ?><?php endif; ?></h1>
|
76 |
<p><?php if($des_gen): ?><?php echo $des_gen; ?><?php endif; ?></p>
|
77 |
+
<?php if($indicates != "") { ?>
|
78 |
+
<div class="indicates"><span class="required"><em>*</em></span><?php echo $this->__($indicates); ?></div>
|
79 |
+
<?php } ?>
|
80 |
+
|
81 |
<?php
|
82 |
$msg = Mage::getSingleton('core/session')->getSomeSessionVar();
|
83 |
if($msg == 'wrong') { ?>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Dealer_Inquery</name>
|
4 |
-
<version>1.2.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL 3.0</license>
|
7 |
<channel>community</channel>
|
@@ -10,9 +10,9 @@
|
|
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 Inquiry</notes>
|
12 |
<authors><author><name>Capacity Web Solutions</name><user>capacitywebsolutions</user><email>magento@capacitywebsolutions.com</email></author></authors>
|
13 |
-
<date>2014-
|
14 |
-
<time>
|
15 |
-
<contents><target name="mageetc"><dir name="modules"><file name="CapacityWebSolutions_Inquiry.xml" hash="02eb95f93a47babe658b8cacd8a79dba"/></dir></target><target name="magecommunity"><dir name="CapacityWebSolutions"><dir name="Inquiry"><dir name="Block"><file name="Inquiry.php" hash="23a62e5deeb24a4ab7ad826d919353c1"/><dir name="Manage"><file name="Inquiry.php" hash="90d6fe51fa5abf054d262f6279e18f39"/></dir></dir><dir name="Helper"><file name="Data.php" hash="fda6bfc3e3979943b3a167a837d00f45"/></dir><dir name="Model"><file name="Inquiry.php" hash="3c54695e0e9c360a875b349d1301c8f7"/><dir name="Mysql4"><dir name="Inquiry"><file name="Collection.php" hash="d01946e0515a76d6f2c8f794c06fd91f"/></dir><file name="Inquiry.php" hash="86118762d4971fd3b686fd434da94b6a"/></dir></dir><dir name="controllers"><file name="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.0.0</min><max>5.6.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Dealer_Inquery</name>
|
4 |
+
<version>1.2.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL 3.0</license>
|
7 |
<channel>community</channel>
|
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 Inquiry</notes>
|
12 |
<authors><author><name>Capacity Web Solutions</name><user>capacitywebsolutions</user><email>magento@capacitywebsolutions.com</email></author></authors>
|
13 |
+
<date>2014-10-02</date>
|
14 |
+
<time>05:15:42</time>
|
15 |
+
<contents><target name="mageetc"><dir name="modules"><file name="CapacityWebSolutions_Inquiry.xml" hash="02eb95f93a47babe658b8cacd8a79dba"/></dir></target><target name="magecommunity"><dir name="CapacityWebSolutions"><dir name="Inquiry"><dir name="Block"><file name="Inquiry.php" hash="23a62e5deeb24a4ab7ad826d919353c1"/><dir name="Manage"><file name="Inquiry.php" hash="90d6fe51fa5abf054d262f6279e18f39"/></dir></dir><dir name="Helper"><file name="Data.php" hash="fda6bfc3e3979943b3a167a837d00f45"/></dir><dir name="Model"><file name="Inquiry.php" hash="3c54695e0e9c360a875b349d1301c8f7"/><dir name="Mysql4"><dir name="Inquiry"><file name="Collection.php" hash="d01946e0515a76d6f2c8f794c06fd91f"/></dir><file name="Inquiry.php" hash="86118762d4971fd3b686fd434da94b6a"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="InquiryController.php" hash="5dd96985283df7940e7a8fabc9de7dfd"/></dir><file name="IndexController.php" hash="6ccaed60590252cd6d379800761bff7e"/></dir><dir name="etc"><file name="config.xml" hash="5c9a67f6adf4d630f773752f9635987e"/><file name="system.xml" hash="017874e9cb007ab7f7d19b8ce9a50502"/></dir><dir name="sql"><dir name="inquiry_setup"><file name="mysql4-install-0.1.0.php" hash="cd84ab6495a0e3fc3a388fe13f8d0d59"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="inquiry"><file name="inquiry.phtml" hash="c05f64463bf4fe256710ac73fcda498a"/><file name="thanks.phtml" hash="0028949ed1f8deead827b44489478402"/></dir></dir><dir name="layout"><file name="inquiry.xml" hash="9ff204bfe2c79b0aa2f3c9ebc65b95f4"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="inquiry.xml" hash="8794f07ab9ccacb445b0845f11676ca0"/></dir><dir name="template"><dir name="inquiry"><file name="inquiry.phtml" hash="066107c160d4f43dc9d823b650f30bc8"/><file name="view.phtml" hash="90300190327f8d74f76f82bbdbb1cb29"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="inquiry"><file name="jquery.min.js" hash="8fc25e27d42774aeae6edbc0a18b72aa"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><file name="refresh.png" hash="cb4184defa247c1b3ebfcf89cd279872"/><file name="inquiry-icon.png" hash="2fe54ac19c9baab1c6ac4927b6a034f5"/></dir><dir name="css"><file name="inquiry.css" hash="f6a43a7ffe6144e603fb7c09155557d6"/></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.0.0</min><max>5.6.0</max></php></required></dependencies>
|
18 |
</package>
|