Dealer_Inquery - Version 1.1.8

Version Notes

Dealer Inquiry

Download this release

Release Info

Developer Capacity Web Solutions
Extension Dealer_Inquery
Version 1.1.8
Comparing to
See all releases


Code changes from version 1.1.7 to 1.1.8

app/code/community/CapacityWebSolutions/Inquiry/Block/Inquiry.php CHANGED
@@ -20,9 +20,10 @@ class CapacityWebSolutions_Inquiry_Block_Inquiry extends Mage_Core_Block_Templat
20
  $collection = Mage::getModel("inquiry/inquiry")->load($delId)->getData();
21
  return $collection;
22
  }
23
- public function getIsCreated($email)
24
  {
25
- $collection = Mage::getModel("customer/customer")->getCollection()->addFieldToFilter("email",$email);
 
26
  if($collection->count())
27
  return 1;
28
  else
20
  $collection = Mage::getModel("inquiry/inquiry")->load($delId)->getData();
21
  return $collection;
22
  }
23
+ public function getIsCreated($email,$website_id)
24
  {
25
+ $collection = Mage::getModel("customer/customer")->getCollection()->addFieldToFilter("email",$email)->addFieldToFilter("website_id",$website_id);
26
+
27
  if($collection->count())
28
  return 1;
29
  else
app/code/community/CapacityWebSolutions/Inquiry/controllers/IndexController.php CHANGED
@@ -34,6 +34,7 @@ class CapacityWebSolutions_Inquiry_IndexController extends Mage_Core_Controller_
34
 
35
  public function thanksAction()
36
  {
 
37
  $this->loadLayout(array('default'));
38
  $this->renderLayout();
39
  if($_POST['SUBMIT']=='SUBMIT')
@@ -78,8 +79,95 @@ class CapacityWebSolutions_Inquiry_IndexController extends Mage_Core_Controller_
78
 
79
  $collection->save();
80
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
 
82
- $adminContent = '<table border="1">
 
83
  <tr>
84
  <td>
85
  <table border="0">
@@ -97,55 +185,55 @@ class CapacityWebSolutions_Inquiry_IndexController extends Mage_Core_Controller_
97
  <td>
98
  <table border="0">
99
  <tr>
100
- <td><label>First Name:</label></td>
101
  <td><label>'.$fname.'</label></td>
102
  </tr>
103
  <tr>
104
- <td><label>Last Name:</label></td>
105
  <td><label>'.$lname.'</label></td>
106
  </tr>
107
  <tr>
108
- <td><label>Company:</label></td>
109
  <td><label>'.$company.'</label></td>
110
  </tr>
111
  <tr>
112
- <td><label>TAX/VAT Number:</label></td>
113
  <td><label>'.$taxvat.'</label></td>
114
  </tr>
115
  <tr>
116
- <td><label>Address:</label></td>
117
  <td><label>'.$address.'</label></td>
118
  </tr>
119
  <tr>
120
- <td><label>City:</label></td>
121
  <td><label>'.$city.'</label></td>
122
  </tr>
123
  <tr>
124
- <td><label>State/Province:</label></td>
125
  <td><label>'.$state.'</label></td>
126
  </tr>
127
  <tr>
128
- <td><label>Country:</label></td>
129
  <td><label>'.$country1[1].'</label></td>
130
  </tr>
131
  <tr>
132
- <td><label>ZIP/Postal Code:</label></td>
133
  <td><label>'.$zip.'</label></td>
134
  </tr>
135
  <tr>
136
- <td><label>Contact Phone Number:</label></td>
137
  <td><label>'.$phone.'</label></td>
138
  </tr>
139
  <tr>
140
- <td><label>Email:</label></td>
141
  <td><label>'.$email.'</label></td>
142
  </tr>
143
  <tr>
144
- <td><label>Website:</label></td>
145
  <td><label>'.$website.'</label></td>
146
  </tr>
147
  <tr>
148
- <td valign="top" width="15%"><label>Business Description:</label></td>
149
  <td><label>'.$bdesc.'</label></td>
150
  </tr>
151
  <tr>
@@ -171,6 +259,7 @@ class CapacityWebSolutions_Inquiry_IndexController extends Mage_Core_Controller_
171
  $email_logo = Mage::getStoreConfig('design/email/logo');
172
  $subject_title = Mage::getStoreConfig('inquiry/customer_email/heading');
173
  $email_desc = Mage::getStoreConfig('inquiry/customer_email/description');
 
174
  $store_name = Mage::getStoreConfig('general/store_information/name');
175
 
176
  $img_media = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'email/logo/';
@@ -178,7 +267,7 @@ class CapacityWebSolutions_Inquiry_IndexController extends Mage_Core_Controller_
178
  $img_logo_final = $img_media.$email_logo;
179
  $default_logo = Mage::getStoreConfig('design/header/logo_src');
180
  $logo_default = Mage::getDesign()->getSkinUrl().$default_logo;
181
-
182
 
183
  if($img_logo_final == $img_media)
184
  {
@@ -196,21 +285,12 @@ class CapacityWebSolutions_Inquiry_IndexController extends Mage_Core_Controller_
196
  <tr>
197
  <Td>'.$logo_img.'</Td>
198
  </tr>
199
- <tr>
200
- <td colspan="2">&nbsp;</td></tr>
201
- <tr>
202
- <Td><p style="Font-size:22px;"></b>Hello '.$fname.' '.$lname.',</b></p></Td>
203
- </tr>
204
  <tr>
205
  <td colspan="2">&nbsp;</td></tr>
206
  <tr>
207
  <Td><p>'.$email_desc.'. </p></Td>
208
  </tr>
209
- <tr>
210
- <td colspan="2">&nbsp;</td></tr>
211
- <tr>
212
- <td colspan="2"><p style="text-align:center;">Thank You,'.$store_name.'</p></td>
213
- </tr>
214
  </table>
215
  </td>
216
  </tr>
34
 
35
  public function thanksAction()
36
  {
37
+
38
  $this->loadLayout(array('default'));
39
  $this->renderLayout();
40
  if($_POST['SUBMIT']=='SUBMIT')
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 {
86
+ $first_name = "First Name";
87
+ }
88
+ $last_name = Mage::getStoreConfig('inquiry/change_label/l_name');
89
+ if($last_name){
90
+ $last_name = Mage::getStoreConfig('inquiry/change_label/l_name');
91
+ }else {
92
+ $last_name = "Last Name";
93
+ }
94
+ $company_name = Mage::getStoreConfig('inquiry/change_label/company_name');
95
+ if($company_name){
96
+ $company_name = Mage::getStoreConfig('inquiry/change_label/company_name');
97
+ }else{
98
+ $company_name = "Last Name";
99
+ }
100
+
101
+ $vat_number = Mage::getStoreConfig('inquiry/change_label/vat_number');
102
+ if($vat_number){
103
+ $vat_number = Mage::getStoreConfig('inquiry/change_label/vat_number');
104
+ }else{
105
+ $vat_number = "TAX/VAT Number";
106
+ }
107
+
108
+ $address = Mage::getStoreConfig('inquiry/change_label/address');
109
+ if($address){
110
+ $address = Mage::getStoreConfig('inquiry/change_label/address');
111
+ }else{
112
+ $address = "Address";
113
+ }
114
+
115
+ $city = Mage::getStoreConfig('inquiry/change_label/city');
116
+ if($city){
117
+ $city = Mage::getStoreConfig('inquiry/change_label/city');
118
+ }else{
119
+ $city = "City";
120
+ }
121
+
122
+ $state = Mage::getStoreConfig('inquiry/change_label/state');
123
+ if($state){
124
+ $state = Mage::getStoreConfig('inquiry/change_label/state');
125
+ }else{
126
+ $state = "State/Province";
127
+ }
128
+
129
+ $country = Mage::getStoreConfig('inquiry/change_label/country');
130
+ if($country){
131
+ $country = Mage::getStoreConfig('inquiry/change_label/country');
132
+ }else{
133
+ $country = "Country";
134
+ }
135
+ $postal_code = Mage::getStoreConfig('inquiry/change_label/postal_code');
136
+ if($postal_code){
137
+ $postal_code = Mage::getStoreConfig('inquiry/change_label/postal_code');
138
+ }else{
139
+ $postal_code = "ZIP/Postal Code";
140
+ }
141
+
142
+ $contact_number = Mage::getStoreConfig('inquiry/change_label/contact_number');
143
+ if($contact_number){
144
+ $contact_number = Mage::getStoreConfig('inquiry/change_label/contact_number');
145
+ }else{
146
+ $contact_number = "Contact Number";
147
+ }
148
+
149
+ $email_name = Mage::getStoreConfig('inquiry/change_label/email');
150
+ if($email_name){
151
+ $email_name = Mage::getStoreConfig('inquiry/change_label/email');
152
+ }else{
153
+ $email_name = "Email";
154
+ }
155
+
156
+ $website = Mage::getStoreConfig('inquiry/change_label/website');
157
+ if($website){
158
+ $website = Mage::getStoreConfig('inquiry/change_label/website');
159
+ }else{
160
+ $website = "Website";
161
+ }
162
+ $description = Mage::getStoreConfig('inquiry/change_label/description');
163
+ if($description){
164
+ $description = Mage::getStoreConfig('inquiry/change_label/description');
165
+ }else{
166
+ $description = "Business Description";
167
+ }
168
 
169
+
170
+ $adminContent = '<table border="0">
171
  <tr>
172
  <td>
173
  <table border="0">
185
  <td>
186
  <table border="0">
187
  <tr>
188
+ <td><label>'.$first_name.':</label></td>
189
  <td><label>'.$fname.'</label></td>
190
  </tr>
191
  <tr>
192
+ <td><label>'.$last_name.':</label></td>
193
  <td><label>'.$lname.'</label></td>
194
  </tr>
195
  <tr>
196
+ <td><label>'.$company_name.':</label></td>
197
  <td><label>'.$company.'</label></td>
198
  </tr>
199
  <tr>
200
+ <td><label>'.$vat_number.':</label></td>
201
  <td><label>'.$taxvat.'</label></td>
202
  </tr>
203
  <tr>
204
+ <td><label>'.$address.':</label></td>
205
  <td><label>'.$address.'</label></td>
206
  </tr>
207
  <tr>
208
+ <td><label>'.$city.':</label></td>
209
  <td><label>'.$city.'</label></td>
210
  </tr>
211
  <tr>
212
+ <td><label>'.$state.':</label></td>
213
  <td><label>'.$state.'</label></td>
214
  </tr>
215
  <tr>
216
+ <td><label>'.$country.':</label></td>
217
  <td><label>'.$country1[1].'</label></td>
218
  </tr>
219
  <tr>
220
+ <td><label>'.$postal_code.':</label></td>
221
  <td><label>'.$zip.'</label></td>
222
  </tr>
223
  <tr>
224
+ <td><label>'.$contact_number.':</label></td>
225
  <td><label>'.$phone.'</label></td>
226
  </tr>
227
  <tr>
228
+ <td><label>'.$email_name.':</label></td>
229
  <td><label>'.$email.'</label></td>
230
  </tr>
231
  <tr>
232
+ <td><label>'.$website.':</label></td>
233
  <td><label>'.$website.'</label></td>
234
  </tr>
235
  <tr>
236
+ <td valign="top" width="15%"><label>'.$description.':</label></td>
237
  <td><label>'.$bdesc.'</label></td>
238
  </tr>
239
  <tr>
259
  $email_logo = Mage::getStoreConfig('design/email/logo');
260
  $subject_title = Mage::getStoreConfig('inquiry/customer_email/heading');
261
  $email_desc = Mage::getStoreConfig('inquiry/customer_email/description');
262
+ $email_desc = str_replace("{{Name}}",$fname.$lname,$email_desc);
263
  $store_name = Mage::getStoreConfig('general/store_information/name');
264
 
265
  $img_media = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'email/logo/';
267
  $img_logo_final = $img_media.$email_logo;
268
  $default_logo = Mage::getStoreConfig('design/header/logo_src');
269
  $logo_default = Mage::getDesign()->getSkinUrl().$default_logo;
270
+ $email_desc = str_replace("{{Storename}}",$store_name,$email_desc);
271
 
272
  if($img_logo_final == $img_media)
273
  {
285
  <tr>
286
  <Td>'.$logo_img.'</Td>
287
  </tr>
 
 
 
 
 
288
  <tr>
289
  <td colspan="2">&nbsp;</td></tr>
290
  <tr>
291
  <Td><p>'.$email_desc.'. </p></Td>
292
  </tr>
293
+
 
 
 
 
294
  </table>
295
  </td>
296
  </tr>
app/code/community/CapacityWebSolutions/Inquiry/controllers/Manage/InquiryController.php CHANGED
@@ -48,6 +48,8 @@ class CapacityWebSolutions_Inquiry_Manage_InquiryController extends Mage_Adminht
48
  {
49
  $del = $this->getRequest()->getParam('multival');
50
  $values = explode('~~',$del);
 
 
51
  $country11 = $values[9];
52
  $country1 = explode('$$$',$country11);
53
  function RandomPassword($PwdLength=8, $PwdType='standard')
@@ -82,16 +84,18 @@ class CapacityWebSolutions_Inquiry_Manage_InquiryController extends Mage_Adminht
82
  $randompass = RandomPassword(9,'standard');
83
 
84
  $customer = Mage::getModel('customer/customer');
85
- $website_id = 1;
86
 
87
  $customer->setWebsiteId($website_id);
88
  $customer->loadByEmail($values[0]);
 
 
89
  if(!$customer->getId())
90
  {
91
  $groups = Mage::getResourceModel('customer/group_collection')->getData();
92
  $groupID = '1';
93
  $customer->setData('group_id', $groupID );
94
- $customer->setData('website_id', '1' );
95
  $customer->setData('is_active', '1');
96
  $customer->setData('customer_activated', '1');
97
  $customer->setStatus(1);
@@ -105,23 +109,24 @@ class CapacityWebSolutions_Inquiry_Manage_InquiryController extends Mage_Adminht
105
  $customer->save();
106
  if($customer->save())
107
  {
108
- $adminEmail = Mage::getStoreConfig('trans_email/ident_general/email');
109
- $adminName = Mage::getStoreConfig('trans_email/ident_general/name');
110
  $fromEmail = $adminEmail;
111
  $fromName = $adminName;
112
 
113
  $toEmail = $values[0];
114
  $toName = $values[1].$values[2];
115
 
116
- $email_logo = Mage::getStoreConfig('design/email/logo');
117
- $subject_title = Mage::getStoreConfig('inquiry/register_email/heading');
118
- $email_desc = Mage::getStoreConfig('inquiry/register_email/description');
119
- $store_name = Mage::getStoreConfig('general/store_information/name');
 
120
  $img_media = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'email/logo/';
121
  $img_logo_final = $img_media.$email_logo;
122
 
123
  $skin = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);
124
- $skin_name = Mage::getStoreConfig('design/theme/skin');
125
  if($skin_name == "")
126
  {
127
  $skin_name = "default";
@@ -130,8 +135,8 @@ class CapacityWebSolutions_Inquiry_Manage_InquiryController extends Mage_Adminht
130
  {
131
  $skin_name = $skin_name;
132
  }
133
- $package = Mage::getStoreConfig('design/package/name');
134
- $default_logo = Mage::getStoreConfig('design/header/logo_src');
135
 
136
  $logo_default = $skin."/frontend/".$package."/".$skin_name."/".$default_logo;
137
 
@@ -144,7 +149,18 @@ class CapacityWebSolutions_Inquiry_Manage_InquiryController extends Mage_Adminht
144
  $logo_img = "<img src='$img_logo_final'/>";
145
  }
146
 
147
- $body = '<table border="1">
 
 
 
 
 
 
 
 
 
 
 
148
  <tr>
149
  <td>
150
  <table border="0">
@@ -155,27 +171,11 @@ class CapacityWebSolutions_Inquiry_Manage_InquiryController extends Mage_Adminht
155
  <td colspan="2">&nbsp;</td></tr>
156
  <tr>
157
 
158
- <tr>
159
- <Td><p style="Font-size:22px;"></b>Hello '.$values[1].' '.$values[2].',</b></p></Td>
160
- </tr>
161
  <tr>
162
  <Td><p>'.$email_desc.'</p></Td>
163
  </tr>
164
- <tr>
165
- <Td><p>Login Email :&nbsp; '.$values[0].' </p></Td>
166
- </tr>
167
- <tr>
168
- <Td><p>Login Password :&nbsp; '.$randompass.' </p></Td>
169
- </tr>
170
- <tr>
171
- <Td><p>You can login directly in your account from here with given login details..... &nbsp;<br /><br />'. Mage::getBaseUrl().'customer/account/login/</p></Td>
172
- </tr>
173
- <tr>
174
- <td colspan="2">&nbsp;</td>
175
- </tr>
176
- <tr>
177
- <td colspan="2"><p style="text-align:center;">Thank You,'.$store_name.'</p></td>
178
- </tr>
179
  </table>
180
  </td>
181
  </tr>
48
  {
49
  $del = $this->getRequest()->getParam('multival');
50
  $values = explode('~~',$del);
51
+
52
+
53
  $country11 = $values[9];
54
  $country1 = explode('$$$',$country11);
55
  function RandomPassword($PwdLength=8, $PwdType='standard')
84
  $randompass = RandomPassword(9,'standard');
85
 
86
  $customer = Mage::getModel('customer/customer');
87
+ $website_id = Mage::getModel('core/store')->load($values[11])->getWebsiteId();
88
 
89
  $customer->setWebsiteId($website_id);
90
  $customer->loadByEmail($values[0]);
91
+
92
+
93
  if(!$customer->getId())
94
  {
95
  $groups = Mage::getResourceModel('customer/group_collection')->getData();
96
  $groupID = '1';
97
  $customer->setData('group_id', $groupID );
98
+ $customer->setData('website_id', $website_id);
99
  $customer->setData('is_active', '1');
100
  $customer->setData('customer_activated', '1');
101
  $customer->setStatus(1);
109
  $customer->save();
110
  if($customer->save())
111
  {
112
+ $adminEmail = Mage::getStoreConfig('trans_email/ident_general/email', $values[11]);
113
+ $adminName = Mage::getStoreConfig('trans_email/ident_general/name', $values[11]);
114
  $fromEmail = $adminEmail;
115
  $fromName = $adminName;
116
 
117
  $toEmail = $values[0];
118
  $toName = $values[1].$values[2];
119
 
120
+ $email_logo = Mage::getStoreConfig('design/email/logo' ,$values[11]);
121
+ $subject_title = Mage::getStoreConfig('inquiry/register_email/heading',$values[11]);
122
+ $email_desc = Mage::getStoreConfig('inquiry/register_email/description',$values[11]);
123
+ $store_name = Mage::getStoreConfig('general/store_information/name', $values[11]);
124
+
125
  $img_media = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'email/logo/';
126
  $img_logo_final = $img_media.$email_logo;
127
 
128
  $skin = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);
129
+ $skin_name = Mage::getStoreConfig('design/theme/skin',$values[11]);
130
  if($skin_name == "")
131
  {
132
  $skin_name = "default";
135
  {
136
  $skin_name = $skin_name;
137
  }
138
+ $package = Mage::getStoreConfig('design/package/name',$values[11]);
139
+ $default_logo = Mage::getStoreConfig('design/header/logo_src',$values[11]);
140
 
141
  $logo_default = $skin."/frontend/".$package."/".$skin_name."/".$default_logo;
142
 
149
  $logo_img = "<img src='$img_logo_final'/>";
150
  }
151
 
152
+ $email_desc = str_replace("{{Name}}",$values[1].' '.$values[2],$email_desc);
153
+ $email_desc = str_replace("{{username}}",$values[0],$email_desc);
154
+ $email_desc = str_replace("{{password}}",$randompass,$email_desc);
155
+ $url = Mage::app()->getStore($values[11])->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK).'customer/account/login/';
156
+ $email_desc = str_replace("{{url}}",$url,$email_desc);
157
+ $email_desc = str_replace("{{storename}}",$store_name,$email_desc);
158
+
159
+ // echo $email_desc;
160
+ // die;
161
+
162
+
163
+ $body = '<table border="0">
164
  <tr>
165
  <td>
166
  <table border="0">
171
  <td colspan="2">&nbsp;</td></tr>
172
  <tr>
173
 
174
+
 
 
175
  <tr>
176
  <Td><p>'.$email_desc.'</p></Td>
177
  </tr>
178
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
179
  </table>
180
  </td>
181
  </tr>
app/code/community/CapacityWebSolutions/Inquiry/etc/config.xml CHANGED
@@ -128,12 +128,31 @@
128
  <success_des>Thank you for contacting us.</success_des>
129
  </general>
130
  <customer_email>
131
- <heading>Thank you for contacting Owner</heading>
132
- <description>Thank you for contacting Owner. A company representative will contact you with more information within two business days.</description>
 
 
 
 
 
 
133
  </customer_email>
134
  <register_email>
135
  <heading>Registration Details of Dealer Inquiry</heading>
136
- <description>Thank You for Register with Owner.Your Login Details for access your Account.....</description>
 
 
 
 
 
 
 
 
 
 
 
 
 
137
  </register_email>
138
  <change_label>
139
  <f_name>First Name</f_name>
128
  <success_des>Thank you for contacting us.</success_des>
129
  </general>
130
  <customer_email>
131
+ <heading>Thank you for contacting Us.</heading>
132
+ <description><![CDATA[<h2>Hello {{Name}}, </h2>
133
+ <br><br>
134
+ Thank you for contacting Owner. A company representative will contact you with more information within two business days.
135
+ <br><br>
136
+ Thank You,{{Storename}}]]>
137
+
138
+ </description>
139
  </customer_email>
140
  <register_email>
141
  <heading>Registration Details of Dealer Inquiry</heading>
142
+ <description><![CDATA[<h2>Hello {{Name}}, </h2>
143
+ <br>
144
+ Thank You for Register with Owner.Your Login Details for access your Account.....
145
+ <br><br>
146
+ Login Email : {{username}}
147
+ <br>
148
+ Login Password : {{password}}
149
+ <br><br>
150
+ You can login directly in your account from here with given login details.....
151
+ <br><br>
152
+ {{url}}
153
+ <br><br>
154
+ Thank You,{{storename}}]]>
155
+ </description>
156
  </register_email>
157
  <change_label>
158
  <f_name>First Name</f_name>
app/code/community/CapacityWebSolutions/Inquiry/etc/system.xml CHANGED
@@ -90,7 +90,7 @@
90
  <groups>
91
  <customer_email translate="label">
92
  <label>Dealer inquiry Email Template</label>
93
- <comment>After submit dealer inquiry form customer get email notification so you can set Email Subject and Email Description here. </comment>
94
  <frontend_type>text</frontend_type>
95
  <sort_order>85</sort_order>
96
  <show_in_default>1</show_in_default>
@@ -106,12 +106,13 @@
106
  <show_in_store>1</show_in_store>
107
  </heading>
108
  <description translate="label">
109
- <label>Email Description</label>
110
  <frontend_type>textarea</frontend_type>
111
  <sort_order>20</sort_order>
112
  <show_in_default>1</show_in_default>
113
  <show_in_website>1</show_in_website>
114
  <show_in_store>1</show_in_store>
 
115
  </description>
116
  </fields>
117
  </customer_email>
@@ -119,7 +120,7 @@
119
  <groups>
120
  <register_email translate="label">
121
  <label>Create Customer Email Template</label>
122
- <comment>When admin click on create customer button. Customer get email notification of his username and password. So for that email you can set email Subject and email description here.</comment>
123
  <frontend_type>text</frontend_type>
124
  <sort_order>90</sort_order>
125
  <show_in_default>1</show_in_default>
@@ -135,12 +136,13 @@
135
  <show_in_store>1</show_in_store>
136
  </heading>
137
  <description translate="label">
138
- <label>Email Description</label>
139
  <frontend_type>textarea</frontend_type>
140
  <sort_order>20</sort_order>
141
  <show_in_default>1</show_in_default>
142
  <show_in_website>1</show_in_website>
143
  <show_in_store>1</show_in_store>
 
144
  </description>
145
  </fields>
146
  </register_email>
90
  <groups>
91
  <customer_email translate="label">
92
  <label>Dealer inquiry Email Template</label>
93
+ <comment>After submit dealer inquiry form customer get email notification so you can set Email Subject and Email content here. </comment>
94
  <frontend_type>text</frontend_type>
95
  <sort_order>85</sort_order>
96
  <show_in_default>1</show_in_default>
106
  <show_in_store>1</show_in_store>
107
  </heading>
108
  <description translate="label">
109
+ <label>Email content</label>
110
  <frontend_type>textarea</frontend_type>
111
  <sort_order>20</sort_order>
112
  <show_in_default>1</show_in_default>
113
  <show_in_website>1</show_in_website>
114
  <show_in_store>1</show_in_store>
115
+ <comment><![CDATA[Please do not change {{Name}} & {{Storename}}]]> </comment>
116
  </description>
117
  </fields>
118
  </customer_email>
120
  <groups>
121
  <register_email translate="label">
122
  <label>Create Customer Email Template</label>
123
+ <comment>When admin click on create customer button. Customer get email notification of his username and password. So for that email you can set email Subject and email content here.</comment>
124
  <frontend_type>text</frontend_type>
125
  <sort_order>90</sort_order>
126
  <show_in_default>1</show_in_default>
136
  <show_in_store>1</show_in_store>
137
  </heading>
138
  <description translate="label">
139
+ <label>Email content</label>
140
  <frontend_type>textarea</frontend_type>
141
  <sort_order>20</sort_order>
142
  <show_in_default>1</show_in_default>
143
  <show_in_website>1</show_in_website>
144
  <show_in_store>1</show_in_store>
145
+ <comment><![CDATA[Please do not change {{Name}},{{username}},{{password}} & {{storename}}]]> </comment>
146
  </description>
147
  </fields>
148
  </register_email>
app/code/community/CapacityWebSolutions/Inquiry/sql/inquiry_setup/mysql4-install-0.1.0.php CHANGED
@@ -7,7 +7,7 @@ $installer->startSetup();
7
  $installer->run("
8
 
9
  -- DROP TABLE IF EXISTS {$this->getTable('dealerinquiry')};
10
- CREATE TABLE IF NOT EXISTS `dealerinquiry` (
11
  `dealerid` int(11) NOT NULL AUTO_INCREMENT,
12
  `firstname` varchar(25) NOT NULL,
13
  `lastname` varchar(25) NOT NULL,
7
  $installer->run("
8
 
9
  -- DROP TABLE IF EXISTS {$this->getTable('dealerinquiry')};
10
+ CREATE TABLE IF NOT EXISTS `{$this->getTable('dealerinquiry')}` (
11
  `dealerid` int(11) NOT NULL AUTO_INCREMENT,
12
  `firstname` varchar(25) NOT NULL,
13
  `lastname` varchar(25) NOT NULL,
app/design/adminhtml/default/default/template/inquiry/inquiry.phtml CHANGED
@@ -65,7 +65,9 @@
65
  $i = 1;
66
  foreach($collections as $item)
67
  {
68
- $IsCreated = $this->getIsCreated($item['email']);
 
 
69
  ?>
70
  <tr class="even pointer">
71
  <td class="" align="center"><?php echo $i;//$this->getIsCreated();?></td>
@@ -81,7 +83,7 @@
81
  <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>
82
 
83
  <?php if($IsCreated==0) {?>
84
- &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>
85
  <?php } ?>
86
  </tr>
87
  <?php $i++;
65
  $i = 1;
66
  foreach($collections as $item)
67
  {
68
+ $website_id = Mage::getModel('core/store')->load($item['storeid'])->getWebsiteId();
69
+
70
+ $IsCreated = $this->getIsCreated($item['email'],$website_id);
71
  ?>
72
  <tr class="even pointer">
73
  <td class="" align="center"><?php echo $i;//$this->getIsCreated();?></td>
83
  <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>
84
 
85
  <?php if($IsCreated==0) {?>
86
+ &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'].'~~'.$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>
87
  <?php } ?>
88
  </tr>
89
  <?php $i++;
app/design/adminhtml/default/default/template/inquiry/view.phtml CHANGED
@@ -5,7 +5,9 @@
5
  */
6
  $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat');
7
  $item = $this->getAllDealer($this->getRequest()->getParam("delid"));
8
- $IsCreated = $this->getIsCreated($item['email']);
 
 
9
 
10
  ?>
11
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
@@ -31,7 +33,7 @@
31
  <?php if($IsCreated==0)
32
  {
33
  ?>
34
- &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?')">Create Customer</a>
35
  <?php
36
  }
37
  $country1 = explode('$$$',$item['country']);
5
  */
6
  $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat');
7
  $item = $this->getAllDealer($this->getRequest()->getParam("delid"));
8
+ $website_id = Mage::getModel('core/store')->load($item['storeid'])->getWebsiteId();
9
+
10
+ $IsCreated = $this->getIsCreated($item['email'],$website_id);
11
 
12
  ?>
13
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
33
  <?php if($IsCreated==0)
34
  {
35
  ?>
36
+ &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'].'~~'.$item['storeid']);?>" onclick="javascript:return confirm('Are you sure to create the account?')">Create Customer</a>
37
  <?php
38
  }
39
  $country1 = explode('$$$',$item['country']);
app/design/frontend/{default → base}/default/layout/inquiry.xml RENAMED
@@ -3,10 +3,13 @@
3
  <layout version="0.1.0">
4
  <default>
5
  <reference name="top.links">
6
- <action method="addLink" translate="label title" module="inquiry" ifconfig="inquiry/general/enabled"><label>Dealer Inquiry</label><url>inquiry/</url><title>Dealer Inquiry</title><prepare>true</prepare><urlParams/><position>100</position></action>
7
  </reference>
8
  </default>
9
  <inquiry_index_index>
 
 
 
10
  <reference name="root">
11
  <action method="setTemplate" ><template>page/1column.phtml</template></action>
12
  </reference>
@@ -17,6 +20,9 @@
17
  </reference>
18
  </inquiry_index_index>
19
  <inquiry_index_thanks>
 
 
 
20
  <reference name="root">
21
  <action method="setTemplate"><template>page/1column.phtml</template></action>
22
  </reference>
3
  <layout version="0.1.0">
4
  <default>
5
  <reference name="top.links">
6
+ <action method="addLink" translate="label title" module="inquiry" ifconfig="inquiry/general/enabled"><label>Dealer Inquiry</label><url>inquiry/</url><title>Dealer Inquiry</title><prepare>true</prepare><urlParams/><position>90</position></action>
7
  </reference>
8
  </default>
9
  <inquiry_index_index>
10
+ <reference name="head">
11
+ <action method="addCss"><stylesheet>css/inquiry.css</stylesheet></action>
12
+ </reference>
13
  <reference name="root">
14
  <action method="setTemplate" ><template>page/1column.phtml</template></action>
15
  </reference>
20
  </reference>
21
  </inquiry_index_index>
22
  <inquiry_index_thanks>
23
+ <reference name="head">
24
+ <action method="addCss"><stylesheet>css/inquiry.css</stylesheet></action>
25
+ </reference>
26
  <reference name="root">
27
  <action method="setTemplate"><template>page/1column.phtml</template></action>
28
  </reference>
app/design/frontend/base/default/template/inquiry/inquiry.phtml ADDED
@@ -0,0 +1,271 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @copyright Copyright (c) 2010 Capacity Web Solutions Pvt. Ltd (http://www.capacitywebsolutions.com)
4
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
5
+ */
6
+ $code = trim($this->getRandomCode());
7
+ $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat');
8
+ $heading = Mage::getStoreConfig('inquiry/general/heading');
9
+ $des_gen = Mage::getStoreConfig('inquiry/general/description');
10
+ $btn_text = Mage::getStoreConfig('inquiry/general/btn_text');
11
+ $first_name = Mage::getStoreConfig('inquiry/change_label/f_name');
12
+ $last_name = Mage::getStoreConfig('inquiry/change_label/l_name');
13
+ $company_name = Mage::getStoreConfig('inquiry/change_label/company_name');
14
+ $vat_number = Mage::getStoreConfig('inquiry/change_label/vat_number');
15
+ $address = Mage::getStoreConfig('inquiry/change_label/address');
16
+ $city = Mage::getStoreConfig('inquiry/change_label/city');
17
+ $state = Mage::getStoreConfig('inquiry/change_label/state');
18
+ $country = Mage::getStoreConfig('inquiry/change_label/country');
19
+ $postal_code = Mage::getStoreConfig('inquiry/change_label/postal_code');
20
+ $contact_number = Mage::getStoreConfig('inquiry/change_label/contact_number');
21
+ $email = Mage::getStoreConfig('inquiry/change_label/email');
22
+ $website = Mage::getStoreConfig('inquiry/change_label/website');
23
+ $description = Mage::getStoreConfig('inquiry/change_label/description');
24
+ $last_name_hide = Mage::getStoreConfig('inquiry/label_hide/l_name');
25
+ $vat_number_hide = Mage::getStoreConfig('inquiry/label_hide/vat_number');
26
+ $address_hide = Mage::getStoreConfig('inquiry/label_hide/address');
27
+ $city_hide = Mage::getStoreConfig('inquiry/label_hide/city');
28
+ $state_hide = Mage::getStoreConfig('inquiry/label_hide/state');
29
+ $country_hide = Mage::getStoreConfig('inquiry/label_hide/country');
30
+ $postal_code_hide = Mage::getStoreConfig('inquiry/label_hide/postal_code');
31
+ $website_hide = Mage::getStoreConfig('inquiry/label_hide/website');
32
+ $captcha_hide = Mage::getStoreConfig('inquiry/label_hide/captcha');
33
+
34
+ ?>
35
+
36
+ <?php if($captcha_hide): ?>
37
+ <script src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS).'inquiry/jquery.min.js'?>">
38
+ </script>
39
+ <script>
40
+ var jq = $.noConflict();
41
+ jq(document).ready(function(){
42
+ jq("#img_refresh").click(function(){
43
+ jq("#captcha").load(location.href + " #captcha");
44
+ });
45
+ });
46
+ </script>
47
+ <script language="JavaScript" type="text/JavaScript">
48
+ function captchacode()
49
+ {
50
+ var captcha = document.getElementById('capt').value;
51
+ var captcha_code = document.getElementById('captcha_code').value;
52
+ if (captcha == "")
53
+ {
54
+ return true;
55
+ }
56
+ if (captcha==captcha_code)
57
+ {
58
+ return true;
59
+ }
60
+ else
61
+ {
62
+ alert ("captcha code does not match!");
63
+ return false;
64
+ }
65
+ }
66
+ </script>
67
+ <?php endif; ?>
68
+
69
+ <div id="about-copy" class="inquiryForm">
70
+ <h1><img src="<?php echo $this->getSkinUrl('images/inquiry-icon.png') ?>" alt="" /><?php if($heading): ?><?php echo $heading; ?><?php endif; ?></h1>
71
+ <p><?php if($des_gen): ?><?php echo $des_gen; ?><?php endif; ?></p>
72
+ <div class="indicates"><span class="required"><em>*</em></span>Indicates required.</div>
73
+ <?php
74
+ $msg = Mage::getSingleton('core/session')->getSomeSessionVar();
75
+ if($msg == 'wrong') { ?>
76
+ <div id="messages">
77
+ <ul class="messages">
78
+ <li class="error-msg">
79
+ <ul><li>
80
+ <span style="font-size:12px;">captcha code does not match!</span>
81
+ </li></ul>
82
+ </li>
83
+ </ul>
84
+ </div>
85
+ <?php Mage::getSingleton('core/session')->unsSomeSessionVar();
86
+ $msg = ''; } ?>
87
+ <?php
88
+ $msgs = Mage::getSingleton('core/session')->getSomeSessionVar();
89
+ if($msgs == 'email_wrong') { ?>
90
+ <div id="messages">
91
+ <ul class="messages">
92
+ <li class="error-msg">
93
+ <ul><li>
94
+ <span style="font-size:12px;">Email id already exits !</span>
95
+ </li></ul>
96
+ </li>
97
+ </ul>
98
+ </div>
99
+ <?php Mage::getSingleton('core/session')->unsSomeSessionVar();
100
+ $msg = ''; } ?>
101
+
102
+ <form name="dealerInquiry" id="dealerInquiry" action="<?php echo $this->getUrl("inquiry/index/thanks"); ?>" method="post">
103
+ <div class="fieldset">
104
+ <ul class="form-list">
105
+ <li class="fields">
106
+ <div class="field">
107
+ <label><?php if($first_name): ?><?php echo $first_name; ?><?php else: ?><?php echo "First Name:"; ?><?php endif; ?><span class="required"><em>*</em></span></label>
108
+ <div class="input-box">
109
+ <input type="text" name="fname" id="fname" size="45" class="input-text required-entry input-box" />
110
+ </div>
111
+ </div>
112
+ <?php if($last_name_hide): ?>
113
+ <div class="field">
114
+ <label><?php if($last_name): ?><?php echo $last_name; ?><?php else: ?><?php echo "Last Name:"; ?><?php endif; ?><span class="required"><em>*</em></span></label>
115
+ <div class="input-box">
116
+ <input type="text" name="lname" size="45" class="input-text required-entry" />
117
+ </div>
118
+ </div>
119
+ <?php endif; ?>
120
+ </li>
121
+ <li class="fields">
122
+ <div class="field">
123
+ <label><?php if($company_name): ?><?php echo $company_name; ?><?php else: ?><?php echo "Company Name:"; ?><?php endif; ?><span class="required"><em>*</em></span></label>
124
+ <div class="input-box">
125
+ <input type="text" name="company" size="45" class="input-text required-entry" />
126
+ </div>
127
+ </div>
128
+ <?php if($vat_number_hide): if($_taxvat->isEnabled()): if($_taxvat->isRequired()): ?>
129
+ <div class="field">
130
+ <label for="_accounttaxvat"><?php if($vat_number): ?><?php echo $vat_number; ?><?php else: ?><?php echo "Tax/VAT Number:"; ?><?php endif; ?><span class="required"><em>*</em></span></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; endif; 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>
146
+ <div class="input-box">
147
+ <textarea name="address" cols="42" rows="1" class="input-text required-entry"></textarea>
148
+ </div>
149
+ </div>
150
+ <?php endif; ?>
151
+ </li>
152
+ <li class="fields">
153
+ <?php if($city_hide): ?>
154
+ <div class="field">
155
+ <label><?php if($city): ?><?php echo $city; ?><?php else: ?><?php echo "City:"; ?><?php endif; ?><span class="required"><em>*</em></span></label>
156
+ <div class="input-box">
157
+ <input type="text" name="city" size="45" class="input-text required-entry" />
158
+ </div>
159
+ </div>
160
+ <?php endif; ?>
161
+ <?php if($state_hide): ?>
162
+ <div class="field">
163
+ <label><?php if($state): ?><?php echo $state; ?><?php else: ?><?php echo "State / Province:"; ?><?php endif; ?><span class="required"><em>*</em></span></label>
164
+ <div class="input-box">
165
+ <input type="text" name="state_id" size="45" class="input-text required-entry" />
166
+ </div>
167
+ </div>
168
+ <?php endif; ?>
169
+ </li>
170
+ <li class="fields">
171
+ <?php if($country_hide): ?>
172
+ <div class="field">
173
+ <label><?php if($country): ?><?php echo $country; ?><?php else: ?><?php echo "Country:"; ?><?php endif; ?><span class="required"><em>*</em></span></label>
174
+ <div class="input-box">
175
+ <select name="country" id="country" class="drop" class="input-text required-entry">
176
+ <?php
177
+ $countryCode = Mage::getStoreConfig('general/country/default');
178
+ $country_name=Mage::app()->getLocale()->getCountryTranslation($countryCode);
179
+ $collection = Mage::getModel('directory/country')->getCollection();
180
+ foreach ($collection as $country)
181
+ {
182
+ $cid = $country->getId();
183
+ $cname = $country->getName();
184
+ ?>
185
+ <option value="<?php echo $cid.'$$$'.$cname; ?>"<?php if($cid == $countryCode) echo "SELECTED" ?> ><?php echo $cname; ?></option>
186
+ <?php
187
+ }
188
+ ?>
189
+ </select>
190
+ </div>
191
+ </div>
192
+ <?php endif; ?>
193
+ <?php if($postal_code_hide): ?>
194
+ <div class="field">
195
+ <label><?php if($postal_code): ?><?php echo $postal_code; ?><?php else: ?><?php echo "ZIP / Postal Code:"; ?><?php endif; ?><span class="required"><em>*</em></span></label>
196
+ <div class="input-box">
197
+ <input type="text" name="zip" id="zip" size="45" maxlength="10" class="required-entry input-text required-entry input-text required-entry validation-passed" />
198
+ </div>
199
+ </div>
200
+ <?php endif; ?>
201
+ </li>
202
+ <li class="fields">
203
+ <div class="field">
204
+ <label><?php if($contact_number): ?><?php echo $contact_number; ?><?php else: ?><?php echo "Contact Number:"; ?><?php endif; ?><span class="required"><em>*</em></span></label>
205
+ <div class="input-box">
206
+ <input type="text" name="phone" size="45" onKeyPress="return isNumberKey(event)" maxlength="15" class="input-text validate input-text required-entry"/>
207
+ </div>
208
+ </div>
209
+ </li>
210
+ <li class="fields">
211
+ <div class="field">
212
+ <label><?php if($email): ?><?php echo $email; ?><?php else: ?><?php echo "Email:"; ?><?php endif; ?><span class="required"><em>*</em></span></label>
213
+ <div class="input-box">
214
+ <input type="text" name="email" size="45" class="input-text validate-email required-entry" />
215
+ </div>
216
+ </div>
217
+ </li>
218
+ <li class="fields">
219
+ <?php if($website_hide): ?>
220
+ <div class="field">
221
+ <label><?php if($website): ?><?php echo $website; ?><?php else: ?><?php echo "Website:"; ?><?php endif; ?></label>
222
+ <div class="input-box">
223
+ <input type="text" name="website" size="45" class="input-text" />
224
+ </div>
225
+ </div>
226
+ <?php endif; ?>
227
+ <div class="field">
228
+ <label><?php if($description): ?><?php echo $description; ?><?php else: ?><?php echo "Business Description:"; ?><?php endif; ?></label>
229
+ <div class="input-box">
230
+ <textarea name="bdesc" cols="75" rows="2" class="input-text"></textarea>
231
+ </div>
232
+ </div>
233
+ </li>
234
+ <li class="fields last">
235
+ <?php if($captcha_hide): ?>
236
+ <label>Capctha<span class="required"><em>*</em></span></label>
237
+ <div class="captcha-main">
238
+ <div id="captcha" class="captcha-left">
239
+ <b><?php echo $code; ?></b>&nbsp;
240
+ <input type="hidden" value="<?php echo $code; ?>" id="captcha_code" size="45" name="captcha_code">
241
+ </div>
242
+ </div>
243
+ <div id="img_refresh"><img src="<?php echo $this->getSkinUrl('images/refresh.png') ?>"></div>
244
+ <div class="clear"></div>
245
+ <input type="text" name="captcha" id="capt" size="24" value="" class="input-text required-entry" />
246
+ <?php endif; ?>
247
+ </li>
248
+ </ul>
249
+ <div class="clear"></div>
250
+ <div class="button-set">
251
+ <button type="submit" name="SUBMIT" class="button" value="SUBMIT" onclick="return captchacode() ;"><span><span><?php if($btn_text): ?><?php echo $btn_text; ?><?php else: ?><?php echo "Submit"; ?><?php endif; ?></span></span></button>
252
+ </div>
253
+ </div>
254
+ </form>
255
+ <div class="clear"></div>
256
+ </div>
257
+ <script type="text/javascript">
258
+ //< ![CDATA[
259
+ var customForm = new VarienForm('dealerInquiry');
260
+ //]]>
261
+ function isNumberKey(evt)
262
+ {
263
+ var charCode = (evt.which) ? evt.which : evt.keyCode
264
+ if (charCode > 31 && (charCode < 48 || charCode > 57))
265
+ {
266
+ return false;
267
+ }
268
+ return true;
269
+ }
270
+
271
+ </script>
app/design/frontend/{default → base}/default/template/inquiry/thanks.phtml RENAMED
@@ -5,17 +5,15 @@
5
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
6
  */
7
  ?>
 
 
8
  <?php
9
  $success_tital = Mage::getStoreConfig('inquiry/general/success_tital');
10
  $success_des = Mage::getStoreConfig('inquiry/general/success_des');
11
  ?>
12
 
13
- <div id="about-copy">
14
- <h1>
15
- <?php if($success_tital): ?>
16
- <?php echo $success_tital; ?>
17
- <?php endif; ?>
18
- </h1>
19
  <p>
20
  <?php if($success_des): ?>
21
  <?php echo $success_des; ?>
5
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
6
  */
7
  ?>
8
+
9
+
10
  <?php
11
  $success_tital = Mage::getStoreConfig('inquiry/general/success_tital');
12
  $success_des = Mage::getStoreConfig('inquiry/general/success_des');
13
  ?>
14
 
15
+ <div id="about-copy" class="inquiryThank">
16
+ <h1><?php if($success_tital): ?><?php echo $success_tital; ?><?php endif; ?></h1>
 
 
 
 
17
  <p>
18
  <?php if($success_des): ?>
19
  <?php echo $success_des; ?>
app/design/frontend/default/default/template/inquiry/inquiry.phtml DELETED
@@ -1,405 +0,0 @@
1
- <?php
2
- /**
3
- * @copyright Copyright (c) 2010 Capacity Web Solutions Pvt. Ltd (http://www.capacitywebsolutions.com)
4
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
5
- */
6
- $code = trim($this->getRandomCode());
7
- $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat');
8
- $heading = Mage::getStoreConfig('inquiry/general/heading');
9
- $des_gen = Mage::getStoreConfig('inquiry/general/description');
10
- $btn_text = Mage::getStoreConfig('inquiry/general/btn_text');
11
- $first_name = Mage::getStoreConfig('inquiry/change_label/f_name');
12
- $last_name = Mage::getStoreConfig('inquiry/change_label/l_name');
13
- $company_name = Mage::getStoreConfig('inquiry/change_label/company_name');
14
- $vat_number = Mage::getStoreConfig('inquiry/change_label/vat_number');
15
- $address = Mage::getStoreConfig('inquiry/change_label/address');
16
- $city = Mage::getStoreConfig('inquiry/change_label/city');
17
- $state = Mage::getStoreConfig('inquiry/change_label/state');
18
- $country = Mage::getStoreConfig('inquiry/change_label/country');
19
- $postal_code = Mage::getStoreConfig('inquiry/change_label/postal_code');
20
- $contact_number = Mage::getStoreConfig('inquiry/change_label/contact_number');
21
- $email = Mage::getStoreConfig('inquiry/change_label/email');
22
- $website = Mage::getStoreConfig('inquiry/change_label/website');
23
- $description = Mage::getStoreConfig('inquiry/change_label/description');
24
- $last_name_hide = Mage::getStoreConfig('inquiry/label_hide/l_name');
25
- $vat_number_hide = Mage::getStoreConfig('inquiry/label_hide/vat_number');
26
- $address_hide = Mage::getStoreConfig('inquiry/label_hide/address');
27
- $city_hide = Mage::getStoreConfig('inquiry/label_hide/city');
28
- $state_hide = Mage::getStoreConfig('inquiry/label_hide/state');
29
- $country_hide = Mage::getStoreConfig('inquiry/label_hide/country');
30
- $postal_code_hide = Mage::getStoreConfig('inquiry/label_hide/postal_code');
31
- $website_hide = Mage::getStoreConfig('inquiry/label_hide/website');
32
- $captcha_hide = Mage::getStoreConfig('inquiry/label_hide/captcha');
33
- ?>
34
- <?php if($captcha_hide): ?>
35
- <script src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).'js/inquiry/jquery.min.js'?>">
36
- </script>
37
- <script>
38
- var jq = $.noConflict();
39
- jq(document).ready(function(){
40
- jq("#img_refresh").click(function(){
41
- jq("#captcha").load(location.href + " #captcha");
42
- });
43
- });
44
- </script>
45
- <script language="JavaScript" type="text/JavaScript">
46
- function captchacode()
47
- {
48
- var captcha = document.getElementById('capt').value;
49
- var captcha_code = document.getElementById('captcha_code').value;
50
- if (captcha == "")
51
- {
52
- return true;
53
- }
54
- if (captcha==captcha_code)
55
- {
56
- return true;
57
- }
58
- else
59
- {
60
- alert ("captcha code does not match!");
61
- return false;
62
- }
63
- }
64
- </script>
65
- <?php endif; ?>
66
-
67
- <style>
68
- .required { color: #EB340A; }
69
- .captcha-left {
70
- border :1px solid;
71
- float: left;
72
- text-align:center;
73
- width: 80px;
74
- height:30px;
75
- font-size:18px; letter-spacing:6px;
76
- }
77
- .captcha-main {
78
- width: 130px;
79
- height : 45px;
80
- }
81
- .captcha-right
82
- {
83
- border: 0 none; cursor: pointer;
84
- float:right;
85
- }
86
- </style>
87
-
88
- <div id="about-copy">
89
- <h1>
90
- <?php if($heading): ?>
91
- <?php echo $heading; ?>
92
- <?php endif; ?>
93
- </h1>
94
- <P>
95
- <?php if($des_gen): ?>
96
- <?php echo $des_gen; ?>
97
- <?php endif; ?>
98
- </p>
99
- <?php
100
- $msg = Mage::getSingleton('core/session')->getSomeSessionVar();
101
- if($msg == 'wrong') { ?>
102
- <div id="messages">
103
- <ul class="messages">
104
- <li class="error-msg">
105
- <ul><li>
106
- <span style="font-size:12px;">captcha code does not match!</span>
107
- </li></ul>
108
- </li>
109
- </ul>
110
- </div>
111
- <?php Mage::getSingleton('core/session')->unsSomeSessionVar();
112
- $msg = ''; } ?>
113
- <?php
114
- $msgs = Mage::getSingleton('core/session')->getSomeSessionVar();
115
- if($msgs == 'email_wrong') { ?>
116
- <div id="messages">
117
- <ul class="messages">
118
- <li class="error-msg">
119
- <ul><li>
120
- <span style="font-size:12px;">Email id already exits !</span>
121
- </li></ul>
122
- </li>
123
- </ul>
124
- </div>
125
- <?php Mage::getSingleton('core/session')->unsSomeSessionVar();
126
- $msg = ''; } ?>
127
-
128
- <form name="dealerInquiry" id="dealerInquiry" action="<?php echo $this->getUrl("inquiry/index/thanks"); ?>" method="post">
129
- <table width="100%" border="0" cellpadding="0" cellspacing="10px" style="border-spacing:10px;">
130
- <tr>
131
- <Td colspan="2" style="text-align:right; color:red;"><span class="required">*</span> Indicates required.</Td>
132
- </tr>
133
- <tr>
134
- <td width="20%">
135
- <?php if($first_name): ?>
136
- <?php echo $first_name; ?>
137
- <?php else: ?>
138
- <?php echo "First Name"; ?>
139
- <?php endif; ?>
140
- <span class="required">*</span>
141
- </td>
142
- <td>
143
- <input type="text" name="fname" id="fname" size="45" class="input-text required-entry" />
144
- </td>
145
- </tr>
146
- <?php if($last_name_hide): ?>
147
- <tr>
148
- <td>
149
- <?php if($last_name): ?>
150
- <?php echo $last_name; ?>
151
- <?php else: ?>
152
- <?php echo "Last Name"; ?>
153
- <?php endif; ?>
154
- <span class="required">*</span>
155
- </td>
156
- <td>
157
- <input type="text" name="lname" size="45" class="input-text required-entry" />
158
- </td>
159
- </tr>
160
- <?php endif; ?>
161
- <tr>
162
- <td>
163
- <?php if($company_name): ?>
164
- <?php echo $company_name; ?>
165
- <?php else: ?>
166
- <?php echo "Company Name"; ?>
167
- <?php endif; ?>
168
- <span class="required">*</span>
169
- </td>
170
- <td>
171
- <input type="text" name="company" size="45" class="input-text required-entry" />
172
- </td>
173
- </tr>
174
- <?php
175
- if($vat_number_hide):
176
- if($_taxvat->isEnabled()):
177
- if($_taxvat->isRequired()):
178
- ?>
179
- <tr>
180
- <td>
181
- <label for="_accounttaxvat">
182
- <?php if($vat_number): ?>
183
- <?php echo $vat_number; ?>
184
- <?php else: ?>
185
- <?php echo "Tax/VAT Number"; ?>
186
- <?php endif; ?>
187
- </label>
188
- <span class="required">*</span>
189
- </td>
190
- <td>
191
- <input type="text" name="account_taxvat" size="45" class="input-text required-entry" /></td>
192
- </tr>
193
- <?php else: ?>
194
- <tr>
195
- <td>
196
- <label for="_accounttaxvat">
197
- <?php if($vat_number): ?>
198
- <?php echo $vat_number; ?>
199
- <?php else: ?>
200
- <?php echo "Tax/VAT Number"; ?>
201
- <?php endif; ?>
202
- </label>
203
- </td>
204
- <td>
205
- <input type="text" name="account_taxvat" size="45" class="input-text" />
206
- </td>
207
- </tr>
208
- <?php endif; endif; endif; ?>
209
- <?php if($address_hide): ?>
210
- <tr>
211
- <td>
212
- <?php if($address): ?>
213
- <?php echo $address; ?>
214
- <?php else: ?>
215
- <?php echo "Address"; ?>
216
- <?php endif; ?>
217
- <span class="required">*</span>
218
- </td>
219
- <td>
220
- <textarea name="address" cols="42" rows="2" class="input-text required-entry"></textarea>
221
- </td>
222
- </tr>
223
- <?php endif; ?>
224
- <?php if($city_hide): ?>
225
- <tr>
226
- <td>
227
- <?php if($city): ?>
228
- <?php echo $city; ?>
229
- <?php else: ?>
230
- <?php echo "City"; ?>
231
- <?php endif; ?>
232
- <span class="required">*</span>
233
- </td>
234
- <td>
235
- <input type="text" name="city" size="45" class="input-text required-entry" />
236
- </td>
237
- </tr>
238
- <?php endif; ?>
239
- <?php if($state_hide): ?>
240
- <tr>
241
- <td>
242
- <?php if($state): ?>
243
- <?php echo $state; ?>
244
- <?php else: ?>
245
- <?php echo "State / Province"; ?>
246
- <?php endif; ?>
247
- <span class="required">*</span>
248
- </td>
249
- <td>
250
- <input type="text" name="state_id" size="45" class="input-text required-entry" />
251
- </td>
252
- </tr>
253
- <?php endif; ?>
254
- <?php if($country_hide): ?>
255
- <tr>
256
- <td>
257
- <?php if($country): ?>
258
- <?php echo $country; ?>
259
- <?php else: ?>
260
- <?php echo "Country"; ?>
261
- <?php endif; ?>
262
- <span class="required">*</span>
263
- </td>
264
- <td>
265
- <select name="country" id="country" class="drop" class="input-text required-entry">
266
- <?php
267
- $countryCode = Mage::getStoreConfig('general/country/default');
268
- $country_name=Mage::app()->getLocale()->getCountryTranslation($countryCode);
269
- $collection = Mage::getModel('directory/country')->getCollection();
270
- foreach ($collection as $country)
271
- {
272
- $cid = $country->getId();
273
- $cname = $country->getName();
274
- ?>
275
- <option value="<?php echo $cid.'$$$'.$cname; ?>"<?php if($cid == $countryCode) echo "SELECTED" ?> ><?php echo $cname; ?></option>
276
- <?php
277
- }
278
- ?>
279
- </select>
280
- </td>
281
- </tr>
282
- <?php endif; ?>
283
- <?php if($postal_code_hide): ?>
284
- <tr>
285
- <td>
286
- <?php if($postal_code): ?>
287
- <?php echo $postal_code; ?>
288
- <?php else: ?>
289
- <?php echo "ZIP / Postal Code"; ?>
290
- <?php endif; ?>
291
- <span class="required">*</span>
292
- </td>
293
- <td>
294
- <input type="text" name="zip" id="zip" size="45" maxlength="10" class="required-entry input-text required-entry input-text required-entry validation-passed" />
295
- </td>
296
- </tr>
297
- <?php endif; ?>
298
- <tr>
299
- <td>
300
- <?php if($contact_number): ?>
301
- <?php echo $contact_number; ?>
302
- <?php else: ?>
303
- <?php echo "Contact Number"; ?>
304
- <?php endif; ?>
305
- <span class="required">*</span>
306
- </td>
307
- <td>
308
- <input type="text" name="phone" size="45" onKeyPress="return isNumberKey(event)" maxlength="15" class="input-text validate input-text required-entry"/>
309
- </td>
310
- </tr>
311
- <tr>
312
- <td>
313
- <?php if($email): ?>
314
- <?php echo $email; ?>
315
- <?php else: ?>
316
- <?php echo "Email"; ?>
317
- <?php endif; ?>
318
- <span class="required">*</span>
319
- </td>
320
- <td>
321
- <input type="text" name="email" size="45" class="input-text validate-email required-entry" />
322
- </td>
323
- </tr>
324
- <?php if($website_hide): ?>
325
- <tr>
326
- <td>
327
- <?php if($website): ?>
328
- <?php echo $website; ?>
329
- <?php else: ?>
330
- <?php echo "Website"; ?>
331
- <?php endif; ?>
332
- </td>
333
- <td>
334
- <input type="text" name="website" size="45" class="input-text" />
335
- </td>
336
- </tr>
337
- <?php endif; ?>
338
- <tr>
339
- <td>
340
- <?php if($description): ?>
341
- <?php echo $description; ?>
342
- <?php else: ?>
343
- <?php echo "Business Description"; ?>
344
- <?php endif; ?>
345
- </td>
346
- <td>
347
- <textarea name="bdesc" cols="75" rows="6" class="input-text"></textarea>
348
- </td>
349
- </tr>
350
- <?php if($captcha_hide): ?>
351
- <tr>
352
- <td>&nbsp;</td>
353
- <td>
354
- <div style="border:1px solid; padding:10px 2px 1px 6px; width:23%;">
355
- <div class="captcha-main" height="25px;">
356
- <div id="captcha" class="captcha-left">
357
- <b><?php echo $code; ?></b>&nbsp;
358
- <input type="hidden" value="<?php
359
- echo $code; ?>" id="captcha_code" size="45" name="captcha_code">
360
- </div>
361
- <div class="captcha-right">
362
- <span id="img_refresh">
363
- <img width="30px" height="30px" src="<?php echo $this->getSkinUrl('images/refresh.jpg') ?>">
364
- </span>
365
- </div>
366
- </div>
367
- <input type="text" name="captcha" id="capt" size="24" value="" class="input-text required-entry" /> &nbsp; &nbsp;&nbsp;
368
- </div>
369
- </td>
370
- </tr>
371
- <?php endif; ?>
372
- <tr>
373
- <td>&nbsp;</td>
374
- <td>
375
- <button type="submit" name="SUBMIT" class="button" value="SUBMIT" onclick="return captchacode() ;">
376
- <span>
377
- <span>
378
- <?php if($btn_text): ?>
379
- <?php echo $btn_text; ?>
380
- <?php else: ?>
381
- <?php echo "Submit"; ?>
382
- <?php endif; ?>
383
- </span>
384
- </span>
385
- </button>
386
- </td>
387
- </tr>
388
- </table>
389
- </form>
390
- </div>
391
- <script type="text/javascript">
392
- //< ![CDATA[
393
- var customForm = new VarienForm('dealerInquiry');
394
- //]]>
395
- function isNumberKey(evt)
396
- {
397
- var charCode = (evt.which) ? evt.which : evt.keyCode
398
- if (charCode > 31 && (charCode < 48 || charCode > 57))
399
- {
400
- return false;
401
- }
402
- return true;
403
- }
404
-
405
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Dealer_Inquery</name>
4
- <version>1.1.7</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,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 "&amp;lt;strong&amp;gt;Dealer Management &amp;lt;/strong&amp;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-04-14</date>
14
- <time>08:00:10</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="7d347b958e48042bf9199dd8652a238c"/><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="980d95e6a6dae2fee3ee13301159fdbe"/><dir name="Manage"><file name="InquiryController.php" hash="3e33e29fabb571398575f6e7d94bb7ff"/></dir></dir><dir name="etc"><file name="config.xml" hash="e066dec62d1274c31ddbad897d7426d9"/><file name="system.xml" hash="fb05d6914d3729f61928afa4041eedec"/></dir><dir name="sql"><dir name="inquiry_setup"><file name="mysql4-install-0.1.0.php" hash="45f417fea69d215ad277cda782b6d992"/></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="a6bc536bd1a4f0e7cf806f2978ec4700"/><file name="thanks.phtml" hash="95d22dd2acc640c5340fe4ab4247fa52"/></dir></dir><dir name="layout"><file name="inquiry.xml" hash="6a0be068b04f1eb8aa4a6364e64e6a55"/></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="8c26b9c35bbb575a7497d403b0fcb26a"/><file name="view.phtml" hash="b469d03f48d7e823b948a776c0a97f2d"/></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="default"><dir name="default"><dir name="images"><file name="refresh.jpg" hash="dc1273e8a796b6bbfcb405ec92ff0b18"/></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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Dealer_Inquery</name>
4
+ <version>1.1.8</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 "&amp;lt;strong&amp;gt;Dealer Management &amp;lt;/strong&amp;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-06-24</date>
14
+ <time>12:22:10</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="6f9822737fdc0a54fd836cda31f3c8ee"/><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="2f8c53443abb7d65b914bd306b8ead61"/><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="4ae05129216a0d7e34831a13857b18e8"/></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>
skin/frontend/base/default/css/inquiry.css ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ @import url(http://fonts.googleapis.com/css?family=Roboto:100,100italic,300,300italic,400,400italic,500,500italic,700,700italic,900,900italic);
3
+ @import url(http://fonts.googleapis.com/css?family=Special+Elite);
4
+ .clear { clear:both; }
5
+ .inquiryForm { width:100%; background:#f7f7f7; padding:20px; font-family:'Roboto', Arial, Helvetica, sans-serif; box-sizing:border-box; }
6
+ .inquiryForm h1 { color:#346699; font:500 30px/32px 'Roboto', Arial, Helvetica, sans-serif; padding:0; text-shadow:0 2px 0px #fff; border-bottom:2px solid #ddd; padding-bottom:10px; margin:0 0 10px; }
7
+ .inquiryForm h1 img { float:left; margin-right:7px; vertical-align:middle; }
8
+ .indicates { float:right; color:#FF0000; margin-bottom:10px; }
9
+ .inquiryForm .fieldset { clear:both; background:none; border:0 none; padding:0; margin:0; }
10
+ .inquiryForm .form-list .field, .inquiryForm .form-list .wide, .inquiryForm .form-list .control { margin-bottom:0; }
11
+ .inquiryForm .fieldset .form-list li { margin-bottom:0; }
12
+ .inquiryForm .fieldset .form-list .field { width:600px; margin:0 0 10px 0; float:none; }
13
+ .inquiryForm .fieldset .form-list .input-box { width:500px; }
14
+ .inquiryForm .fieldset .form-list .fields.last { width:310px; float:left; }
15
+ .inquiryForm .fieldset .form-list textarea { height:inherit; }
16
+ .inquiryForm .fieldset .form-list label { color:#333; font:500 14px/18px 'Roboto', Arial, Helvetica, sans-serif; margin-bottom:3px; display:block; }
17
+ .inquiryForm .fieldset .form-list input, .inquiryForm .fieldset .form-list select,
18
+ .inquiryForm .fieldset .form-list textarea { background:#fff; border:1px solid #ddd; padding:5px; font-size:14px; color:#555; }
19
+ .inquiryForm .fieldset .form-list input, .inquiryForm .fieldset .form-list select,
20
+ .inquiryForm .fieldset .form-list textarea { width:100%; border-radius:0 0 0; -webkit-border-radius:0 0 0; box-shadow:1px 1px 1px #ddd; -webkit-box-shadow:1px 1px 1px #ddd; }
21
+ .inquiryForm .fieldset .form-list input:focus, .inquiryForm .fieldset .form-list select:focus,
22
+ .inquiryForm .fieldset .form-list textarea:focus { box-shadow:0 0 3px #ffc45d; -webkit-box-shadow:0 0 3px #ffc45d; transition:all 0.5s ease-in-out 0s; -moz-transition:all 0.5s ease-in-out; -webkit-transition:all 0.5s ease-in-out; }
23
+ .inquiryForm .fieldset .form-list li:after { clear:both; content:"."; display:block; font-size:0; height:0; line-height:0; overflow:hidden; }
24
+ .input-box:after { clear:both; content:""; display:table; }
25
+ .required { color:#EB340A; }
26
+ .captcha-left { float:left; }
27
+ .captcha-left b { color:#000; font:28px/32px 'Special Elite'; border:1px solid #ddd; padding:11px 90px 2px; background:#fff1d8; text-align:center; margin-right:10px; box-shadow:1px 1px 1px #ddd; -webkit-box-shadow:1px 1px 1px #ddd; }
28
+ .inquiryForm .fieldset .form-list .fields.last label { margin-bottom:15px; }
29
+ .inquiryForm .fieldset .form-list .fields.last input.input-text { width:77%; margin-top:10px; }
30
+ #img_refresh { float:left; margin-top:-11px; }
31
+ #img_refresh img { cursor:pointer; background:#ffa200; border:2px solid #555; padding:10px; box-shadow:1px 1px 1px #ddd; -webkit-box-shadow:1px 1px 1px #ddd; border-radius:30px; -webkit-border-radius:30px; }
32
+ .inquiryForm .button { color:#000; background:#ffa200; padding:10px 30px; font:600 18px/22px 'Roboto', Arial, Helvetica, sans-serif; text-shadow:0 1px 0px #fff; margin-top:15px; transition:all 0.5s ease-in-out 0s; -moz-transition:all 0.5s ease-in-out; -webkit-transition:all 0.5s ease-in-out; border:2px solid #fff; box-shadow:1px 2px 2px #999; -webkit-box-shadow:1px 2px 2px #999; }
33
+ .inquiryForm .button:hover { color:#fff; background:#346699; text-shadow:0 1px 0px #888; }
34
+ .inquiryForm button.button span { color:inherit; }
35
+ .inquiryForm button.button span { background:none; border:0 none; font:inherit; height:inherit; }
36
+ p.required, .validation-advice { color:#FF0000; font-size:13px; margin:5px 0 0; }
37
+
38
+ @media (max-width:1200px) {
39
+ .inquiryForm .fieldset .form-list .field { width:60%; margin:0 0 10px 0; float:none; }
40
+ .inquiryForm .fieldset .form-list .input-box { width:100%; }
41
+ .inquiryForm .fieldset .form-list .fields.last { width:50%; margin:0; }
42
+
43
+ }
44
+ @media (max-width:770px) {
45
+ .inquiryForm .fieldset .form-list .field { width:100%; clear:both; }
46
+ .inquiryForm .fieldset .form-list input, .inquiryForm .fieldset .form-list select, .inquiryForm .fieldset .form-list textarea,
47
+ .inquiryForm .fieldset .form-list .fields.last input.input-text, .inquiryForm .fieldset .form-list .fields.last { width:100%; }
48
+ }
49
+ @media (max-width:470px) {
50
+ .inquiryForm .fieldset .form-list .field { width:100%; clear:both; }
51
+ .inquiryForm .fieldset .form-list input, .inquiryForm .fieldset .form-list select, .inquiryForm .fieldset .form-list textarea,
52
+ .inquiryForm .fieldset .form-list .fields.last input.input-text, .inquiryForm .fieldset .form-list .fields.last { width:100%; }
53
+ }
54
+
55
+ @media (max-width:390px) {
56
+ .inquiryForm h1 { font-size:28px; }
57
+ .captcha-left { margin-bottom:15px; }
58
+ #img_refresh, .captcha-left { clear:both; float:none; }
59
+ #img_refresh { text-align:center; }
60
+ }
61
+
62
+
63
+
64
+ .inquiryThank { width:100%; background:#f7f7f7; padding:20px; font-family:'Roboto', Arial, Helvetica, sans-serif; box-sizing:border-box; }
65
+ .inquiryThank h1 { border-bottom:2px solid #ddd; color:#346699; font:500 30px/32px 'Roboto',Arial,Helvetica,sans-serif; margin:0 0 10px; padding:0 0 10px; text-shadow:0 2px 0 #fff; }
skin/frontend/base/default/images/inquiry-icon.png ADDED
Binary file
skin/frontend/base/default/images/refresh.png ADDED
Binary file
skin/frontend/default/default/images/refresh.jpg DELETED
Binary file