Version Notes
Dealer Inquiry
Download this release
Release Info
Developer | Capacity Web Solutions |
Extension | Dealer_Inquery |
Version | 1.1.9 |
Comparing to | |
See all releases |
Code changes from version 1.1.8 to 1.1.9
app/code/community/CapacityWebSolutions/Inquiry/controllers/IndexController.php
CHANGED
@@ -79,7 +79,7 @@ class CapacityWebSolutions_Inquiry_IndexController extends Mage_Core_Controller_
|
|
79 |
|
80 |
$collection->save();
|
81 |
|
82 |
-
|
83 |
if($first_name){
|
84 |
$first_name = Mage::getStoreConfig('inquiry/change_label/f_name');
|
85 |
}else {
|
@@ -105,25 +105,25 @@ class CapacityWebSolutions_Inquiry_IndexController extends Mage_Core_Controller_
|
|
105 |
$vat_number = "TAX/VAT Number";
|
106 |
}
|
107 |
|
108 |
-
$
|
109 |
-
if($
|
110 |
-
$
|
111 |
}else{
|
112 |
-
$
|
113 |
}
|
114 |
|
115 |
-
$
|
116 |
-
if($
|
117 |
-
$
|
118 |
}else{
|
119 |
-
$
|
120 |
}
|
121 |
|
122 |
-
$
|
123 |
-
if($
|
124 |
-
$
|
125 |
}else{
|
126 |
-
$
|
127 |
}
|
128 |
|
129 |
$country = Mage::getStoreConfig('inquiry/change_label/country');
|
@@ -153,11 +153,11 @@ class CapacityWebSolutions_Inquiry_IndexController extends Mage_Core_Controller_
|
|
153 |
$email_name = "Email";
|
154 |
}
|
155 |
|
156 |
-
$
|
157 |
-
if($
|
158 |
-
$
|
159 |
}else{
|
160 |
-
$
|
161 |
}
|
162 |
$description = Mage::getStoreConfig('inquiry/change_label/description');
|
163 |
if($description){
|
@@ -165,7 +165,6 @@ class CapacityWebSolutions_Inquiry_IndexController extends Mage_Core_Controller_
|
|
165 |
}else{
|
166 |
$description = "Business Description";
|
167 |
}
|
168 |
-
|
169 |
|
170 |
$adminContent = '<table border="0">
|
171 |
<tr>
|
@@ -183,7 +182,7 @@ class CapacityWebSolutions_Inquiry_IndexController extends Mage_Core_Controller_
|
|
183 |
</tr>
|
184 |
<tr>
|
185 |
<td>
|
186 |
-
|
187 |
<tr>
|
188 |
<td><label>'.$first_name.':</label></td>
|
189 |
<td><label>'.$fname.'</label></td>
|
@@ -201,15 +200,15 @@ class CapacityWebSolutions_Inquiry_IndexController extends Mage_Core_Controller_
|
|
201 |
<td><label>'.$taxvat.'</label></td>
|
202 |
</tr>
|
203 |
<tr>
|
204 |
-
<td><label>'.$
|
205 |
<td><label>'.$address.'</label></td>
|
206 |
</tr>
|
207 |
<tr>
|
208 |
-
<td><label>'.$
|
209 |
<td><label>'.$city.'</label></td>
|
210 |
</tr>
|
211 |
<tr>
|
212 |
-
<td><label>'.$
|
213 |
<td><label>'.$state.'</label></td>
|
214 |
</tr>
|
215 |
<tr>
|
@@ -229,7 +228,7 @@ class CapacityWebSolutions_Inquiry_IndexController extends Mage_Core_Controller_
|
|
229 |
<td><label>'.$email.'</label></td>
|
230 |
</tr>
|
231 |
<tr>
|
232 |
-
<td><label>'.$
|
233 |
<td><label>'.$website.'</label></td>
|
234 |
</tr>
|
235 |
<tr>
|
79 |
|
80 |
$collection->save();
|
81 |
|
82 |
+
$first_name = Mage::getStoreConfig('inquiry/change_label/f_name');
|
83 |
if($first_name){
|
84 |
$first_name = Mage::getStoreConfig('inquiry/change_label/f_name');
|
85 |
}else {
|
105 |
$vat_number = "TAX/VAT Number";
|
106 |
}
|
107 |
|
108 |
+
$address_name = Mage::getStoreConfig('inquiry/change_label/address');
|
109 |
+
if($address_name){
|
110 |
+
$address_name = Mage::getStoreConfig('inquiry/change_label/address');
|
111 |
}else{
|
112 |
+
$address_name = "Address";
|
113 |
}
|
114 |
|
115 |
+
$city_name = Mage::getStoreConfig('inquiry/change_label/city');
|
116 |
+
if($city_name){
|
117 |
+
$city_name = Mage::getStoreConfig('inquiry/change_label/city');
|
118 |
}else{
|
119 |
+
$city_name = "City";
|
120 |
}
|
121 |
|
122 |
+
$state_name = Mage::getStoreConfig('inquiry/change_label/state');
|
123 |
+
if($state_name){
|
124 |
+
$state_name = Mage::getStoreConfig('inquiry/change_label/state');
|
125 |
}else{
|
126 |
+
$state_name = "State/Province";
|
127 |
}
|
128 |
|
129 |
$country = Mage::getStoreConfig('inquiry/change_label/country');
|
153 |
$email_name = "Email";
|
154 |
}
|
155 |
|
156 |
+
$website_name = Mage::getStoreConfig('inquiry/change_label/website');
|
157 |
+
if($website_name){
|
158 |
+
$website_name = Mage::getStoreConfig('inquiry/change_label/website');
|
159 |
}else{
|
160 |
+
$website_name = "Website";
|
161 |
}
|
162 |
$description = Mage::getStoreConfig('inquiry/change_label/description');
|
163 |
if($description){
|
165 |
}else{
|
166 |
$description = "Business Description";
|
167 |
}
|
|
|
168 |
|
169 |
$adminContent = '<table border="0">
|
170 |
<tr>
|
182 |
</tr>
|
183 |
<tr>
|
184 |
<td>
|
185 |
+
<table border="0">
|
186 |
<tr>
|
187 |
<td><label>'.$first_name.':</label></td>
|
188 |
<td><label>'.$fname.'</label></td>
|
200 |
<td><label>'.$taxvat.'</label></td>
|
201 |
</tr>
|
202 |
<tr>
|
203 |
+
<td><label>'.$address_name.':</label></td>
|
204 |
<td><label>'.$address.'</label></td>
|
205 |
</tr>
|
206 |
<tr>
|
207 |
+
<td><label>'.$city_name.':</label></td>
|
208 |
<td><label>'.$city.'</label></td>
|
209 |
</tr>
|
210 |
<tr>
|
211 |
+
<td><label>'.$state_name.':</label></td>
|
212 |
<td><label>'.$state.'</label></td>
|
213 |
</tr>
|
214 |
<tr>
|
228 |
<td><label>'.$email.'</label></td>
|
229 |
</tr>
|
230 |
<tr>
|
231 |
+
<td><label>'.$website_name.':</label></td>
|
232 |
<td><label>'.$website.'</label></td>
|
233 |
</tr>
|
234 |
<tr>
|
app/design/adminhtml/default/default/template/inquiry/view.phtml
CHANGED
@@ -63,14 +63,14 @@
|
|
63 |
<?php echo $item['company'];?>
|
64 |
</td>
|
65 |
</tr>
|
66 |
-
|
67 |
<tr class="even pointer">
|
68 |
<td class=""width="15%">Tax/VAT Number</td>
|
69 |
<td class="a-left ">
|
70 |
<?php if($item['taxvat']==""): echo "-";else:echo $item['taxvat'];endif;?>
|
71 |
</td>
|
72 |
</tr>
|
73 |
-
|
74 |
<tr class="even pointer">
|
75 |
<td class=""width="15%">Address</td>
|
76 |
<td class="a-left "><?php echo $item['address'];?></td>
|
63 |
<?php echo $item['company'];?>
|
64 |
</td>
|
65 |
</tr>
|
66 |
+
|
67 |
<tr class="even pointer">
|
68 |
<td class=""width="15%">Tax/VAT Number</td>
|
69 |
<td class="a-left ">
|
70 |
<?php if($item['taxvat']==""): echo "-";else:echo $item['taxvat'];endif;?>
|
71 |
</td>
|
72 |
</tr>
|
73 |
+
|
74 |
<tr class="even pointer">
|
75 |
<td class=""width="15%">Address</td>
|
76 |
<td class="a-left "><?php echo $item['address'];?></td>
|
app/design/frontend/base/default/template/inquiry/inquiry.phtml
CHANGED
@@ -125,21 +125,18 @@ jq("#img_refresh").click(function(){
|
|
125 |
<input type="text" name="company" size="45" class="input-text required-entry" />
|
126 |
</div>
|
127 |
</div>
|
128 |
-
|
|
|
129 |
<div class="field">
|
130 |
-
<label
|
131 |
-
<div class="input-box">
|
132 |
-
<input type="text" name="account_taxvat" size="45" class="input-text required-entry" />
|
133 |
-
</div>
|
134 |
-
</div>
|
135 |
-
<?php else: ?>
|
136 |
-
<div class="field">
|
137 |
-
<label for="_accounttaxvat"><?php if($vat_number): ?><?php echo $vat_number; ?><?php else: ?><?php echo "Tax/VAT Number:"; ?><?php endif; ?></label>
|
138 |
<div class="input-box">
|
139 |
-
<input type="text" name="account_taxvat" size="45" class="input-text" />
|
140 |
</div>
|
141 |
</div>
|
142 |
-
<?php endif;
|
|
|
|
|
|
|
143 |
<?php if($address_hide): ?>
|
144 |
<div class="field">
|
145 |
<label><?php if($address): ?><?php echo $address; ?> <?php else: ?><?php echo "Address:"; ?><?php endif; ?><span class="required"><em>*</em></span></label>
|
125 |
<input type="text" name="company" size="45" class="input-text required-entry" />
|
126 |
</div>
|
127 |
</div>
|
128 |
+
|
129 |
+
<?php if($vat_number_hide): ?>
|
130 |
<div class="field">
|
131 |
+
<label><?php if($vat_number): ?><?php echo $vat_number; ?><?php else: ?><?php echo "Tax/VAT Number:"; ?><?php endif; ?></label>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
<div class="input-box">
|
133 |
+
<input type="text" name="account_taxvat" size="45" class="input-text" />
|
134 |
</div>
|
135 |
</div>
|
136 |
+
<?php endif; ?>
|
137 |
+
|
138 |
+
|
139 |
+
|
140 |
<?php if($address_hide): ?>
|
141 |
<div class="field">
|
142 |
<label><?php if($address): ?><?php echo $address; ?> <?php else: ?><?php echo "Address:"; ?><?php endif; ?><span class="required"><em>*</em></span></label>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Dealer_Inquery</name>
|
4 |
-
<version>1.1.
|
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="3abe9fdcbba66f6833b9744240272738"/><dir name="Manage"><file name="Inquiry.php" hash="d0cadb3d6d8ba0622f713825d38e2d3c"/></dir></dir><dir name="Helper"><file name="Data.php" hash="3727f4f66a8f27b8c2aee88808934919"/></dir><dir name="Model"><file name="Inquiry.php" hash="309fa846d6e985e7635661496d4fffce"/><dir name="Mysql4"><dir name="Inquiry"><file name="Collection.php" hash="39606de6d66f5a19431a5d12a3f78805"/></dir><file name="Inquiry.php" hash="dab34dd0311dd0d57f0a95650d01b7f4"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.0.0</min><max>5.5.5</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Dealer_Inquery</name>
|
4 |
+
<version>1.1.9</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-07-15</date>
|
14 |
+
<time>07:10:38</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="3abe9fdcbba66f6833b9744240272738"/><dir name="Manage"><file name="Inquiry.php" hash="d0cadb3d6d8ba0622f713825d38e2d3c"/></dir></dir><dir name="Helper"><file name="Data.php" hash="3727f4f66a8f27b8c2aee88808934919"/></dir><dir name="Model"><file name="Inquiry.php" hash="309fa846d6e985e7635661496d4fffce"/><dir name="Mysql4"><dir name="Inquiry"><file name="Collection.php" hash="39606de6d66f5a19431a5d12a3f78805"/></dir><file name="Inquiry.php" hash="dab34dd0311dd0d57f0a95650d01b7f4"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="953aaa3834f94b1bb549414a47d160c5"/><dir name="Manage"><file name="InquiryController.php" hash="7b05dda8084690b4a3b46c46fbaa5513"/></dir></dir><dir name="etc"><file name="config.xml" hash="fc874c534ecb4d75bfa8f47a0d58bd61"/><file name="system.xml" hash="ca367ee76ce684b33d67b117b157fd52"/></dir><dir name="sql"><dir name="inquiry_setup"><file name="mysql4-install-0.1.0.php" hash="f25e047721509886277ffad7ae554b16"/></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="6f51a9944f76c7f9e5fa86d42687f866"/><file name="thanks.phtml" hash="6eff66d1a3568f57902ff7e774227698"/></dir></dir><dir name="layout"><file name="inquiry.xml" hash="2e980ce32fff84af4cf85565b35e00e1"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="inquiry.xml" hash="ca5a9dd55f3aef957f8e3835518f44f8"/></dir><dir name="template"><dir name="inquiry"><file name="inquiry.phtml" hash="b5706d62df535acba1f76343e29a2832"/><file name="view.phtml" hash="1e9de9b1df49f66f07e86e1831babaed"/></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="0589d70d115a413abe4b93e7920762b5"/></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.0.0</min><max>5.5.5</max></php></required></dependencies>
|
18 |
</package>
|