Simtech_Searchanise - Version 1.0.7

Version Notes

[!] Fixed an SQL error that would appear on relevance result sort under certain MySQL server configurations.

[!] Fixed an issue with wrong path to the Searchanise admin panel in the Magento admin panel menu that would occur if the setting 'Add Store Code to URLs' was checked.

[+] Added an extra check for the standard search autocomplete being turned off (useful for non-standard skins, e.g. Shopper by Themeforest.)

Download this release

Release Info

Developer Simbirsk Technologies, Ltd.
Extension Simtech_Searchanise
Version 1.0.7
Comparing to
See all releases


Code changes from version 1.0.6 to 1.0.7

app/code/community/Simtech/Searchanise/Block/Autocomplete.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /***************************************************************************
3
+ * *
4
+ * (c) 2004 Vladimir V. Kalynyak, Alexey V. Vinokurov, Ilya M. Shalnev *
5
+ * *
6
+ * This is commercial software, only users who have purchased a valid *
7
+ * license and accept to the terms of the License Agreement can install *
8
+ * and use this program. *
9
+ * *
10
+ ****************************************************************************
11
+ * PLEASE READ THE FULL TEXT OF THE SOFTWARE LICENSE AGREEMENT IN THE *
12
+ * "copyright.txt" FILE PROVIDED WITH THIS DISTRIBUTION PACKAGE. *
13
+ ****************************************************************************/
14
+ /**
15
+ * Autocomplete queries list
16
+ */
17
+ class Simtech_Searchanise_Block_Autocomplete extends Mage_CatalogSearch_Block_Autocomplete
18
+ {
19
+ protected function _toHtml()
20
+ {
21
+ $html = '';
22
+ $showDefaultAutocomplete = true;
23
+
24
+ $searchaniseDisabled = Mage::getStoreConfigFlag('advanced/modules_disable_output/Simtech_Searchanise');
25
+ if (!$searchaniseDisabled) {
26
+ $store = Mage::app()->getStore();
27
+ $showDefaultAutocomplete = !Mage::helper('searchanise/ApiSe')->checkSearchaniseResult(true, $store);
28
+ }
29
+
30
+ if ($searchaniseDisabled) {
31
+ $html = parent::_toHtml();
32
+ }
33
+
34
+ return $html;
35
+ }
36
+ }
app/code/community/Simtech/Searchanise/Block/Jsinit.php CHANGED
@@ -16,8 +16,9 @@ class Simtech_Searchanise_Block_Jsinit extends Mage_Core_Block_Text
16
  protected function _toHtml()
17
  {
18
  $html = '';
 
19
 
20
- if (!Mage::helper('searchanise/ApiSe')->checkSearchaniseResult(true)) {
21
  return $html;
22
  }
23
 
@@ -97,6 +98,14 @@ class Simtech_Searchanise_Block_Jsinit extends Mage_Core_Block_Text
97
  //]]>
98
  </script>";
99
 
 
 
 
 
 
 
 
 
100
  return $html;
101
  }
102
  }
16
  protected function _toHtml()
17
  {
18
  $html = '';
19
+ $store = Mage::app()->getStore();
20
 
21
+ if (!Mage::helper('searchanise/ApiSe')->checkSearchaniseResult(true, $store)) {
22
  return $html;
23
  }
24
 
98
  //]]>
99
  </script>";
100
 
101
+ // Uncomment the lines below if it is necessary to hide price in search widget
102
+ // $html .= '
103
+ // <style type="text/css">
104
+ // .snize-price {
105
+ // display: none !important;
106
+ // }
107
+ // </style>';
108
+
109
  return $html;
110
  }
111
  }
app/code/community/Simtech/Searchanise/Helper/ApiSe.php CHANGED
@@ -143,10 +143,10 @@ class Simtech_Searchanise_Helper_ApiSe
143
  return self::getServiceUrl($onlyHttp) . '/widgets/v1.0/init.js';
144
  }
145
 
146
- public static function checkSearchaniseResult($searchaniseRequest = null)
147
  {
148
- if ((self::getStatusModule() == 'Y') &&
149
- (self::checkExportStatus()) &&
150
  (!empty($searchaniseRequest))) {
151
 
152
  if ($searchaniseRequest === true) {
143
  return self::getServiceUrl($onlyHttp) . '/widgets/v1.0/init.js';
144
  }
145
 
146
+ public static function checkSearchaniseResult($searchaniseRequest = null, $store = null)
147
  {
148
+ if ((self::getStatusModule($store) == 'Y') &&
149
+ (self::checkExportStatus($store)) &&
150
  (!empty($searchaniseRequest))) {
151
 
152
  if ($searchaniseRequest === true) {
app/code/community/Simtech/Searchanise/Helper/ApiXML.php CHANGED
@@ -145,27 +145,31 @@ class Simtech_Searchanise_Helper_ApiXML extends Mage_Core_Helper_Data
145
 
146
  // <image_link>
147
  {
148
- $image_link = '';
149
- $small_image = null;
150
- // Uncomment the lines below if it is necessary to send image icons.
151
- //~ $small_image = $product->getData('small_image');
152
-
153
- if (!empty($small_image) && $small_image != 'no_selection') {
154
- $image_link = $product->getSmallImageUrl();
155
 
156
  } else {
157
- $image = $product->getData('image');
158
-
159
- if (!empty($image) && $image != 'no_selection') {
160
- $image_link = $product->getImageUrl();
 
161
  } else {
162
  $thumbnail = $product->getData('thumbnail');
163
 
164
- if (!empty($thumbnail) && $thumbnail != 'no_selection') { $image_link = $product->getThumbnailUrl(); }
 
 
165
  }
166
  }
167
-
168
- $entry .= '<cs:image_link><![CDATA[' . $image_link . ']]></cs:image_link>' . self::XML_END_LINE;
 
 
169
  }
170
  // </image_link>
171
 
145
 
146
  // <image_link>
147
  {
148
+ $imageLink = '';
149
+
150
+ $image = $product->getData('image');
151
+
152
+ if (!empty($image) && $image != 'no_selection') {
153
+ $imageLink = $product->getImageUrl();
 
154
 
155
  } else {
156
+ $smallImage = $product->getData('small_image');
157
+
158
+ if (!empty($smallImage) && $smallImage != 'no_selection') {
159
+ $imageLink = $product->getSmallImageUrl();
160
+
161
  } else {
162
  $thumbnail = $product->getData('thumbnail');
163
 
164
+ if (!empty($thumbnail) && $thumbnail != 'no_selection') {
165
+ $imageLink = $product->getThumbnailUrl();
166
+ }
167
  }
168
  }
169
+
170
+ if ($imageLink != '') {
171
+ $entry .= '<cs:image_link><![CDATA[' . $imageLink . ']]></cs:image_link>' . self::XML_END_LINE;
172
+ }
173
  }
174
  // </image_link>
175
 
app/code/community/Simtech/Searchanise/Helper/Data.php CHANGED
@@ -126,6 +126,8 @@ class Simtech_Searchanise_Helper_Data extends Mage_Core_Helper_Abstract
126
  $params['union'] = array();
127
  }
128
  }
 
 
129
  }
130
 
131
  protected function getUrlSuggestion($suggestion)
126
  $params['union'] = array();
127
  }
128
  }
129
+
130
+ return $this;
131
  }
132
 
133
  protected function getUrlSuggestion($suggestion)
app/code/community/Simtech/Searchanise/Model/Resource/Advanced/Collection.php CHANGED
@@ -72,7 +72,8 @@ class Simtech_Searchanise_Model_Resource_Advanced_Collection extends Mage_Catalo
72
  ->getSearchaniseRequest()
73
  ->getProductIdsString();
74
  if (!empty($product_ids)) {
75
- $this->getSelect()->order("FIELD (e.entity_id, {$product_ids}) {$dir}");
 
76
  }
77
  } else {
78
  parent::setOrder($attribute, $dir);
72
  ->getSearchaniseRequest()
73
  ->getProductIdsString();
74
  if (!empty($product_ids)) {
75
+ $sortBy = "FIELD(e.entity_id, {$product_ids}) {$dir}";
76
+ $this->getSelect()->order(new Zend_Db_Expr($sortBy));
77
  }
78
  } else {
79
  parent::setOrder($attribute, $dir);
app/code/community/Simtech/Searchanise/Model/Resource/Fulltext/Collection.php CHANGED
@@ -72,7 +72,8 @@ class Simtech_Searchanise_Model_Resource_Fulltext_Collection extends Mage_Catalo
72
  ->getSearchaniseRequest()
73
  ->getProductIdsString();
74
  if (!empty($product_ids)) {
75
- $this->getSelect()->order("FIELD (e.entity_id, {$product_ids}) {$dir}");
 
76
  }
77
  } else {
78
  parent::setOrder($attribute, $dir);
72
  ->getSearchaniseRequest()
73
  ->getProductIdsString();
74
  if (!empty($product_ids)) {
75
+ $sortBy = "FIELD(e.entity_id, {$product_ids}) {$dir}";
76
+ $this->getSelect()->order(new Zend_Db_Expr($sortBy));
77
  }
78
  } else {
79
  parent::setOrder($attribute, $dir);
app/code/community/Simtech/Searchanise/Model/Resource/Product/Collection.php CHANGED
@@ -93,7 +93,8 @@ class Simtech_Searchanise_Model_Resource_Product_Collection extends Mage_Catalog
93
  ->getProductIdsString();
94
 
95
  if (!empty($product_ids)) {
96
- $this->getSelect()->order("FIELD (e.entity_id, {$product_ids}) {$dir}");
 
97
  }
98
 
99
  } else {
93
  ->getProductIdsString();
94
 
95
  if (!empty($product_ids)) {
96
+ $sortBy = "FIELD(e.entity_id, {$product_ids}) {$dir}";
97
+ $this->getSelect()->order(new Zend_Db_Expr($sortBy));
98
  }
99
 
100
  } else {
app/code/community/Simtech/Searchanise/controllers/InfoController.php CHANGED
@@ -15,11 +15,13 @@
15
  class Simtech_Searchanise_InfoController extends Mage_Core_Controller_Front_Action
16
  {
17
  const OUTPUT = 'visual';
 
18
  const PARENT_PRIVATE_KEY = 'parent_private_key';
19
 
20
  public function indexAction()
21
  {
22
  $visual = $this->getRequest()->getParam(self::OUTPUT);
 
23
  $parentPrivateKey = $this->getRequest()->getParam(self::PARENT_PRIVATE_KEY);
24
 
25
  if ((empty($parentPrivateKey)) ||
@@ -38,12 +40,22 @@ class Simtech_Searchanise_InfoController extends Mage_Core_Controller_Front_Acti
38
  echo Mage::helper('core')->jsonEncode($options);
39
  }
40
  } else {
41
- $options = Mage::helper('searchanise/ApiSe')->getAddonOptions();
 
42
 
43
- if ($visual) {
44
- Mage::helper('searchanise/ApiSe')->printR($options);
 
 
 
45
  } else {
46
- echo Mage::helper('core')->jsonEncode($options);
 
 
 
 
 
 
47
  }
48
  }
49
 
15
  class Simtech_Searchanise_InfoController extends Mage_Core_Controller_Front_Action
16
  {
17
  const OUTPUT = 'visual';
18
+ const PRODUCT_IDS = 'product_ids';
19
  const PARENT_PRIVATE_KEY = 'parent_private_key';
20
 
21
  public function indexAction()
22
  {
23
  $visual = $this->getRequest()->getParam(self::OUTPUT);
24
+ $productIds = $this->getRequest()->getParam(self::PRODUCT_IDS);
25
  $parentPrivateKey = $this->getRequest()->getParam(self::PARENT_PRIVATE_KEY);
26
 
27
  if ((empty($parentPrivateKey)) ||
40
  echo Mage::helper('core')->jsonEncode($options);
41
  }
42
  } else {
43
+ if (!empty($productIds)) {
44
+ $productFeeds = Mage::helper('searchanise/ApiXML')->generateProductsXML($productIds);
45
 
46
+ if ($visual) {
47
+ Mage::helper('searchanise/ApiSe')->printR($productFeeds);
48
+ } else {
49
+ echo Mage::helper('core')->jsonEncode($productFeeds);
50
+ }
51
  } else {
52
+ $options = Mage::helper('searchanise/ApiSe')->getAddonOptions();
53
+
54
+ if ($visual) {
55
+ Mage::helper('searchanise/ApiSe')->printR($options);
56
+ } else {
57
+ echo Mage::helper('core')->jsonEncode($options);
58
+ }
59
  }
60
  }
61
 
app/code/community/Simtech/Searchanise/etc/config.xml CHANGED
@@ -1,483 +1,495 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /***************************************************************************
4
- * *
5
- * (c) 2004 Vladimir V. Kalynyak, Alexey V. Vinokurov, Ilya M. Shalnev *
6
- * *
7
- * This is commercial software, only users who have purchased a valid *
8
- * license and accept to the terms of the License Agreement can install *
9
- * and use this program. *
10
- * *
11
- ****************************************************************************
12
- * PLEASE READ THE FULL TEXT OF THE SOFTWARE LICENSE AGREEMENT IN THE *
13
- * "copyright.txt" FILE PROVIDED WITH THIS DISTRIBUTION PACKAGE. *
14
- ****************************************************************************/ -->
15
- <config>
16
- <modules>
17
- <Simtech_Searchanise>
18
- <version>0.1.5</version>
19
- </Simtech_Searchanise>
20
- </modules>
21
- <frontend>
22
- <routers>
23
- <!-- OVERRIDE CATALOG CONTOLLERS -->
24
- <catalog>
25
- <args>
26
- <modules>
27
- <Simtech_Searchanise before="Mage_Catalog">Simtech_Searchanise</Simtech_Searchanise>
28
- </modules>
29
- </args>
30
- </catalog>
31
- <!-- OVERRIDE CATALOGSEARCH CONTOLLERS -->
32
- <catalogsearch>
33
- <args>
34
- <modules>
35
- <Simtech_Searchanise before="Mage_CatalogSearch">Simtech_Searchanise</Simtech_Searchanise>
36
- </modules>
37
- </args>
38
- </catalogsearch>
39
- <!-- OVERRIDE TAG CONTOLLERS -->
40
- <tag>
41
- <args>
42
- <modules>
43
- <Simtech_Searchanise before="Mage_Tag">Simtech_Searchanise</Simtech_Searchanise>
44
- </modules>
45
- </args>
46
- </tag>
47
- <!-- END -->
48
- <searchanise>
49
- <use>standard</use>
50
- <args>
51
- <module>Simtech_Searchanise</module>
52
- <frontName>searchanise</frontName>
53
- </args>
54
- </searchanise>
55
- </routers>
56
- <translate>
57
- <modules>
58
- <Simtech_Searchanise>
59
- <files>
60
- <default>Simtech_Searchanise.csv</default>
61
- </files>
62
- </Simtech_Searchanise>
63
- </modules>
64
- </translate>
65
- <layout>
66
- <updates>
67
- <searchanise>
68
- <file>searchanise.xml</file>
69
- </searchanise>
70
- </updates>
71
- </layout>
72
- </frontend>
73
- <adminhtml>
74
- <menu>
75
- <catalog>
76
- <children>
77
- <searchanise module="searchanise">
78
- <title>Searchanise</title>
79
- <action>searchanise/index/index</action>
80
- </searchanise>
81
- </children>
82
- </catalog>
83
- </menu>
84
- <acl>
85
- <resources>
86
- <all>
87
- <title>Allow Everything</title>
88
- </all>
89
- <admin>
90
- <children>
91
- <Simtech_Searchanise>
92
- <title>Searchanise Module</title>
93
- <sort_order>10</sort_order>
94
- </Simtech_Searchanise>
95
- <system>
96
- <children>
97
- <config>
98
- <children>
99
- <searchanise translate="title" module="searchanise">
100
- <title>Searchanise Settings</title>
101
- </searchanise>
102
- </children>
103
- </config>
104
- </children>
105
- </system>
106
- </children>
107
- </admin>
108
- </resources>
109
- </acl>
110
- <translate>
111
- <modules>
112
- <Simtech_Searchanise>
113
- <files>
114
- <default>Simtech_Searchanise.csv</default>
115
- </files>
116
- </Simtech_Searchanise>
117
- </modules>
118
- </translate>
119
- <layout>
120
- <updates>
121
- <searchanise>
122
- <file>searchanise.xml</file>
123
- </searchanise>
124
- </updates>
125
- </layout>
126
- </adminhtml>
127
- <global>
128
- <models>
129
- <!-- OVERRIDE CATALOG MODEL -->
130
- <catalog>
131
- <rewrite>
132
- <layer>Simtech_Searchanise_Model_Layer</layer>
133
- <layer_filter_category>Simtech_Searchanise_Model_Layer_Filter_Category</layer_filter_category>
134
- <layer_filter_price>Simtech_Searchanise_Model_Layer_Filter_Price</layer_filter_price>
135
- </rewrite>
136
- </catalog>
137
- <!-- END -->
138
- <!-- <OVERRIDE CATALOG RESOURCE> -->
139
- <catalog_resource>
140
- <rewrite>
141
- <product_collection>Simtech_Searchanise_Model_Resource_Product_Collection</product_collection>
142
- <layer_filter_attribute>Simtech_Searchanise_Model_Resource_Layer_Filter_Attribute</layer_filter_attribute>
143
- <layer_filter_price>Simtech_Searchanise_Model_Resource_Layer_Filter_Price</layer_filter_price>
144
- </rewrite>
145
- </catalog_resource>
146
- <!-- END -->
147
- <!-- OVERRIDE CATALOGSEARCH MODEL -->
148
- <catalogsearch>
149
- <rewrite>
150
- <layer>Simtech_Searchanise_Model_LayerCatalogSearch</layer>
151
- <advanced>Simtech_Searchanise_Model_Advanced</advanced>
152
- </rewrite>
153
- </catalogsearch>
154
- <!-- END -->
155
- <!-- <OVERRIDE CATALOGSEARCH RESOURCE> -->
156
- <catalogsearch_resource>
157
- <rewrite>
158
- <fulltext>Simtech_Searchanise_Model_Resource_Fulltext</fulltext>
159
- <fulltext_collection>Simtech_Searchanise_Model_Resource_Fulltext_Collection</fulltext_collection>
160
- <advanced_collection>Simtech_Searchanise_Model_Resource_Advanced_Collection</advanced_collection>
161
- </rewrite>
162
- </catalogsearch_resource>
163
- <!-- END -->
164
- <!-- OVERRIDE TAG MODEL -->
165
- <tag>
166
- <rewrite>
167
- <tag_relation>Simtech_Searchanise_Model_Tag_Relation</tag_relation>
168
- </rewrite>
169
- </tag>
170
- <!-- END -->
171
- <!-- OVERRIDE CATALOGSEARCH MODEL -->
172
- <tag_resource>
173
- <rewrite>
174
- <product_collection>Simtech_Searchanise_Model_Resource_Product_CollectionTag</product_collection>
175
- </rewrite>
176
- </tag_resource>
177
- <!-- END -->
178
- <!-- OVERRIDE IMPORTEXPORT MODEL -->
179
- <importexport>
180
- <rewrite>
181
- <import_entity_product>Simtech_Searchanise_Model_Import_Entity_Product</import_entity_product>
182
- </rewrite>
183
- </importexport>
184
- <!-- END -->
185
- <!-- <OVERRIDE CORE RESOURCE> -->
186
- <core_resource>
187
- <rewrite>
188
- <store>Simtech_Searchanise_Model_Resource_Store</store>
189
- </rewrite>
190
- </core_resource>
191
- <!-- END -->
192
- <!-- OVERRIDE ADMINHTML MODEL -->
193
- <adminhtml>
194
- <rewrite>
195
- <config_data>Simtech_Searchanise_Model_Config_Data</config_data>
196
- <layer_filter_category>Simtech_Searchanise_Model_Layer_Filter_Category</layer_filter_category>
197
- </rewrite>
198
- </adminhtml>
199
- <!-- END -->
200
- <searchanise>
201
- <class>Simtech_Searchanise_Model</class>
202
- <resourceModel>searchanise_mysql4</resourceModel>
203
- </searchanise>
204
- <searchanise_mysql4>
205
- <class>Simtech_Searchanise_Model_Mysql4</class>
206
- <entities>
207
- <queue>
208
- <table>searchanise_queue</table>
209
- </queue>
210
- <config>
211
- <table>searchanise_config</table>
212
- </config>
213
- </entities>
214
- </searchanise_mysql4>
215
- </models>
216
- <resources>
217
- <searchanise_setup>
218
- <setup>
219
- <module>Simtech_Searchanise</module>
220
- <!--<class>Simtech_Searchanise_Model_Entity_Setup</class>-->
221
- </setup>
222
- <connection>
223
- <use>core_setup</use>
224
- </connection>
225
- </searchanise_setup>
226
- <searchanise_write>
227
- <connection>
228
- <use>core_write</use>
229
- </connection>
230
- </searchanise_write>
231
- <searchanise_read>
232
- <connection>
233
- <use>core_read</use>
234
- </connection>
235
- </searchanise_read>
236
- </resources>
237
- <helpers>
238
- <searchanise>
239
- <class>Simtech_Searchanise_Helper</class>
240
- </searchanise>
241
- </helpers>
242
- <events>
243
- <!-- CATALOG -->
244
- <!-- products -->
245
- <catalog_product_save_before>
246
- <observers>
247
- <rating>
248
- <class>searchanise/observer</class>
249
- <method>catalogProductSaveBefore</method>
250
- </rating>
251
- </observers>
252
- </catalog_product_save_before>
253
- <catalog_product_save_after>
254
- <observers>
255
- <rating>
256
- <class>searchanise/observer</class>
257
- <method>catalogProductSaveAfter</method>
258
- </rating>
259
- </observers>
260
- </catalog_product_save_after>
261
- <catalog_product_delete_before>
262
- <observers>
263
- <rating>
264
- <class>searchanise/observer</class>
265
- <method>catalogProductDeleteBefore</method>
266
- </rating>
267
- </observers>
268
- </catalog_product_delete_before>
269
- <catalog_product_attribute_update_before>
270
- <observers>
271
- <rating>
272
- <class>searchanise/observer</class>
273
- <method>catalogProductAttributeUpdateBefore</method>
274
- </rating>
275
- </observers>
276
- </catalog_product_attribute_update_before>
277
- <catalog_product_website_update_before>
278
- <observers>
279
- <rating>
280
- <class>searchanise/observer</class>
281
- <method>catalogProductWebsiteUpdateBefore</method>
282
- </rating>
283
- </observers>
284
- </catalog_product_website_update_before>
285
- <!-- facets-->
286
- <catalog_entity_attribute_save_before>
287
- <observers>
288
- <rating>
289
- <class>searchanise/observer</class>
290
- <method>catalogEntityAttributeSaveBefore</method>
291
- </rating>
292
- </observers>
293
- </catalog_entity_attribute_save_before>
294
- <catalog_entity_attribute_save_after>
295
- <observers>
296
- <rating>
297
- <class>searchanise/observer</class>
298
- <method>catalogEntityAttributeSaveAfter</method>
299
- </rating>
300
- </observers>
301
- </catalog_entity_attribute_save_after>
302
- <catalog_entity_attribute_delete_after>
303
- <observers>
304
- <rating>
305
- <class>searchanise/observer</class>
306
- <method>catalogEntityAttributeDeleteAfter</method>
307
- </rating>
308
- </observers>
309
- </catalog_entity_attribute_delete_after>
310
- <!-- facet-categories -->
311
- <catalog_category_save_before>
312
- <observers>
313
- <rating>
314
- <class>searchanise/observer</class>
315
- <method>catalogCategorySaveBefore</method>
316
- </rating>
317
- </observers>
318
- </catalog_category_save_before>
319
- <catalog_category_save_after>
320
- <observers>
321
- <rating>
322
- <class>searchanise/observer</class>
323
- <method>catalogCategorySaveAfter</method>
324
- </rating>
325
- </observers>
326
- </catalog_category_save_after>
327
- <!-- END CATALOG-->
328
- <!-- SALES -->
329
- <!-- products -->
330
- <sales_order_save_after>
331
- <observers>
332
- <rating>
333
- <class>searchanise/observer</class>
334
- <method>salesOrderSaveAfter</method>
335
- </rating>
336
- </observers>
337
- </sales_order_save_after>
338
- <!-- END SALES -->
339
- <!-- IMPORTEXPORT -->
340
- <!-- products -->
341
- <searchanise_import_save_product_entity_after>
342
- <observers>
343
- <rating>
344
- <class>searchanise/observer</class>
345
- <method>searchaniseImportSaveProductEntityAfter</method>
346
- </rating>
347
- </observers>
348
- </searchanise_import_save_product_entity_after>
349
- <searchanise_import_delete_product_entity_after>
350
- <observers>
351
- <rating>
352
- <class>searchanise/observer</class>
353
- <method>searchaniseImportDeleteProductEntityAfter</method>
354
- </rating>
355
- </observers>
356
- </searchanise_import_delete_product_entity_after>
357
- <!-- END IMPORTEXPORT -->
358
- <!-- CORE -->
359
- <!-- store -->
360
- <searchanise_core_save_store_before>
361
- <observers>
362
- <rating>
363
- <class>searchanise/observer</class>
364
- <method>searchaniseCoreSaveStoreBefore</method>
365
- </rating>
366
- </observers>
367
- </searchanise_core_save_store_before>
368
- <searchanise_core_save_store_after>
369
- <observers>
370
- <rating>
371
- <class>searchanise/observer</class>
372
- <method>searchaniseCoreSaveStoreAfter</method>
373
- </rating>
374
- </observers>
375
- </searchanise_core_save_store_after>
376
- <searchanise_core_delete_store_after>
377
- <observers>
378
- <rating>
379
- <class>searchanise/observer</class>
380
- <method>searchaniseCoreDeleteStoreAfter</method>
381
- </rating>
382
- </observers>
383
- </searchanise_core_delete_store_after>
384
- <!-- ADMINHTML-->
385
- <searchanise_adminhtml_config_data_save_before>
386
- <observers>
387
- <rating>
388
- <class>searchanise/observer</class>
389
- <method>searchaniseAdminhtmlConfigDataSaveBefore</method>
390
- </rating>
391
- </observers>
392
- </searchanise_adminhtml_config_data_save_before>
393
- <searchanise_adminhtml_config_data_save_after>
394
- <observers>
395
- <rating>
396
- <class>searchanise/observer</class>
397
- <method>searchaniseAdminhtmlConfigDataSaveAfter</method>
398
- </rating>
399
- </observers>
400
- </searchanise_adminhtml_config_data_save_after>
401
- <!-- END ADMINHTML -->
402
- <!-- TAG -->
403
- <!-- tag -->
404
- <tag_save_after>
405
- <observers>
406
- <rating>
407
- <class>searchanise/observer</class>
408
- <method>tagSaveAfter</method>
409
- </rating>
410
- </observers>
411
- </tag_save_after>
412
- <tag_delete_before>
413
- <observers>
414
- <rating>
415
- <class>searchanise/observer</class>
416
- <method>tagDeleteBefore</method>
417
- </rating>
418
- </observers>
419
- </tag_delete_before>
420
- <!-- tag_relation -->
421
- <searchanise_tag_relation_save_after>
422
- <observers>
423
- <rating>
424
- <class>searchanise/observer</class>
425
- <method>searchaniseTagRelationSaveAfter</method>
426
- </rating>
427
- </observers>
428
- </searchanise_tag_relation_save_after>
429
- <!-- END TAG -->
430
- </events>
431
- <blocks>
432
- <!-- OVERRIDE BLOCK CATALOG -->
433
- <catalog>
434
- <rewrite>
435
- <product_list_toolbar>Simtech_Searchanise_Block_Product_List_Toolbar</product_list_toolbar>
436
- </rewrite>
437
- </catalog>
438
- <!-- END -->
439
- <!-- OVERRIDE BLOCK CATALOGSEARCH -->
440
- <catalogsearch>
441
- <rewrite>
442
- <result>Simtech_Searchanise_Block_Result</result>
443
- </rewrite>
444
- </catalogsearch>
445
- <!-- END -->
446
- <!-- OVERRIDE BLOCK TAG -->
447
- <tag>
448
- <rewrite>
449
- <product_result>Simtech_Searchanise_Block_Product_Result</product_result>
450
- </rewrite>
451
- </tag>
452
- <!-- END -->
453
- </blocks>
454
- </global>
455
- <default>
456
- <searchanise>
457
- <config>
458
- <version>1.2</version>
459
- <search_timeout>3</search_timeout>
460
- <request_timeout>15</request_timeout>
461
- <ajax_async_timeout>1</ajax_async_timeout>
462
- <products_per_pass>200</products_per_pass>
463
- <max_error_count>25</max_error_count>
464
- <max_processing_thread>3</max_processing_thread>
465
- <max_processing_time>720</max_processing_time>
466
- <max_search_request_length>8000</max_search_request_length>
467
- <service_url>http://www.searchanise.com</service_url>
468
- <cron_enabled>1</cron_enabled>
469
- <input_id_search>search</input_id_search>
470
- <type_async>2</type_async>
471
- </config>
472
- </searchanise>
473
- </default>
474
- <crontab>
475
- <jobs>
476
- <cronjob_name>
477
- <!-- runs every 1 minutes as below. Change to (0 1 * * *) to run every night at 1am -->
478
- <schedule><cron_expr>*/1 * * * *</cron_expr></schedule>
479
- <run><model>searchanise/observer::autoSync</model></run>
480
- </cronjob_name>
481
- </jobs>
482
- </crontab>
 
 
 
 
 
 
 
 
 
 
 
 
483
  </config>
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /***************************************************************************
4
+ * *
5
+ * (c) 2004 Vladimir V. Kalynyak, Alexey V. Vinokurov, Ilya M. Shalnev *
6
+ * *
7
+ * This is commercial software, only users who have purchased a valid *
8
+ * license and accept to the terms of the License Agreement can install *
9
+ * and use this program. *
10
+ * *
11
+ ****************************************************************************
12
+ * PLEASE READ THE FULL TEXT OF THE SOFTWARE LICENSE AGREEMENT IN THE *
13
+ * "copyright.txt" FILE PROVIDED WITH THIS DISTRIBUTION PACKAGE. *
14
+ ****************************************************************************/ -->
15
+ <config>
16
+ <modules>
17
+ <Simtech_Searchanise>
18
+ <version>1.0.7</version>
19
+ </Simtech_Searchanise>
20
+ </modules>
21
+ <frontend>
22
+ <routers>
23
+ <!-- OVERRIDE CATALOG CONTOLLERS -->
24
+ <catalog>
25
+ <args>
26
+ <modules>
27
+ <Simtech_Searchanise before="Mage_Catalog">Simtech_Searchanise</Simtech_Searchanise>
28
+ </modules>
29
+ </args>
30
+ </catalog>
31
+ <!-- OVERRIDE CATALOGSEARCH CONTOLLERS -->
32
+ <catalogsearch>
33
+ <args>
34
+ <modules>
35
+ <Simtech_Searchanise before="Mage_CatalogSearch">Simtech_Searchanise</Simtech_Searchanise>
36
+ </modules>
37
+ </args>
38
+ </catalogsearch>
39
+ <!-- OVERRIDE TAG CONTOLLERS -->
40
+ <tag>
41
+ <args>
42
+ <modules>
43
+ <Simtech_Searchanise before="Mage_Tag">Simtech_Searchanise</Simtech_Searchanise>
44
+ </modules>
45
+ </args>
46
+ </tag>
47
+ <!-- END -->
48
+ <searchanise>
49
+ <use>standard</use>
50
+ <args>
51
+ <module>Simtech_Searchanise</module>
52
+ <frontName>searchanise</frontName>
53
+ </args>
54
+ </searchanise>
55
+ </routers>
56
+ <translate>
57
+ <modules>
58
+ <Simtech_Searchanise>
59
+ <files>
60
+ <default>Simtech_Searchanise.csv</default>
61
+ </files>
62
+ </Simtech_Searchanise>
63
+ </modules>
64
+ </translate>
65
+ <layout>
66
+ <updates>
67
+ <searchanise>
68
+ <file>searchanise.xml</file>
69
+ </searchanise>
70
+ </updates>
71
+ </layout>
72
+ </frontend>
73
+ <admin>
74
+ <routers>
75
+ <searchanise>
76
+ <use>admin</use>
77
+ <args>
78
+ <module>Simtech_Searchanise</module>
79
+ <frontName>searchanise</frontName>
80
+ </args>
81
+ </searchanise>
82
+ </routers>
83
+ </admin>
84
+ <adminhtml>
85
+ <menu>
86
+ <catalog>
87
+ <children>
88
+ <searchanise translate="title" module="searchanise">
89
+ <title>Searchanise</title>
90
+ <action>searchanise/index/index</action>
91
+ </searchanise>
92
+ </children>
93
+ </catalog>
94
+ </menu>
95
+ <acl>
96
+ <resources>
97
+ <all>
98
+ <title>Allow Everything</title>
99
+ </all>
100
+ <admin>
101
+ <children>
102
+ <Simtech_Searchanise>
103
+ <title>Searchanise Module</title>
104
+ <sort_order>10</sort_order>
105
+ </Simtech_Searchanise>
106
+ <system>
107
+ <children>
108
+ <config>
109
+ <children>
110
+ <searchanise translate="title" module="searchanise">
111
+ <title>Searchanise Settings</title>
112
+ </searchanise>
113
+ </children>
114
+ </config>
115
+ </children>
116
+ </system>
117
+ </children>
118
+ </admin>
119
+ </resources>
120
+ </acl>
121
+ <translate>
122
+ <modules>
123
+ <Simtech_Searchanise>
124
+ <files>
125
+ <default>Simtech_Searchanise.csv</default>
126
+ </files>
127
+ </Simtech_Searchanise>
128
+ </modules>
129
+ </translate>
130
+ <layout>
131
+ <updates>
132
+ <searchanise>
133
+ <file>searchanise.xml</file>
134
+ </searchanise>
135
+ </updates>
136
+ </layout>
137
+ </adminhtml>
138
+ <global>
139
+ <models>
140
+ <!-- OVERRIDE CATALOG MODEL -->
141
+ <catalog>
142
+ <rewrite>
143
+ <layer>Simtech_Searchanise_Model_Layer</layer>
144
+ <layer_filter_category>Simtech_Searchanise_Model_Layer_Filter_Category</layer_filter_category>
145
+ <layer_filter_price>Simtech_Searchanise_Model_Layer_Filter_Price</layer_filter_price>
146
+ </rewrite>
147
+ </catalog>
148
+ <!-- END -->
149
+ <!-- <OVERRIDE CATALOG RESOURCE> -->
150
+ <catalog_resource>
151
+ <rewrite>
152
+ <product_collection>Simtech_Searchanise_Model_Resource_Product_Collection</product_collection>
153
+ <layer_filter_attribute>Simtech_Searchanise_Model_Resource_Layer_Filter_Attribute</layer_filter_attribute>
154
+ <layer_filter_price>Simtech_Searchanise_Model_Resource_Layer_Filter_Price</layer_filter_price>
155
+ </rewrite>
156
+ </catalog_resource>
157
+ <!-- END -->
158
+ <!-- OVERRIDE CATALOGSEARCH MODEL -->
159
+ <catalogsearch>
160
+ <rewrite>
161
+ <layer>Simtech_Searchanise_Model_LayerCatalogSearch</layer>
162
+ <advanced>Simtech_Searchanise_Model_Advanced</advanced>
163
+ </rewrite>
164
+ </catalogsearch>
165
+ <!-- END -->
166
+ <!-- <OVERRIDE CATALOGSEARCH RESOURCE> -->
167
+ <catalogsearch_resource>
168
+ <rewrite>
169
+ <fulltext>Simtech_Searchanise_Model_Resource_Fulltext</fulltext>
170
+ <fulltext_collection>Simtech_Searchanise_Model_Resource_Fulltext_Collection</fulltext_collection>
171
+ <advanced_collection>Simtech_Searchanise_Model_Resource_Advanced_Collection</advanced_collection>
172
+ </rewrite>
173
+ </catalogsearch_resource>
174
+ <!-- END -->
175
+ <!-- OVERRIDE TAG MODEL -->
176
+ <tag>
177
+ <rewrite>
178
+ <tag_relation>Simtech_Searchanise_Model_Tag_Relation</tag_relation>
179
+ </rewrite>
180
+ </tag>
181
+ <!-- END -->
182
+ <!-- OVERRIDE CATALOGSEARCH MODEL -->
183
+ <tag_resource>
184
+ <rewrite>
185
+ <product_collection>Simtech_Searchanise_Model_Resource_Product_CollectionTag</product_collection>
186
+ </rewrite>
187
+ </tag_resource>
188
+ <!-- END -->
189
+ <!-- OVERRIDE IMPORTEXPORT MODEL -->
190
+ <importexport>
191
+ <rewrite>
192
+ <import_entity_product>Simtech_Searchanise_Model_Import_Entity_Product</import_entity_product>
193
+ </rewrite>
194
+ </importexport>
195
+ <!-- END -->
196
+ <!-- <OVERRIDE CORE RESOURCE> -->
197
+ <core_resource>
198
+ <rewrite>
199
+ <store>Simtech_Searchanise_Model_Resource_Store</store>
200
+ </rewrite>
201
+ </core_resource>
202
+ <!-- END -->
203
+ <!-- OVERRIDE ADMINHTML MODEL -->
204
+ <adminhtml>
205
+ <rewrite>
206
+ <config_data>Simtech_Searchanise_Model_Config_Data</config_data>
207
+ <layer_filter_category>Simtech_Searchanise_Model_Layer_Filter_Category</layer_filter_category>
208
+ </rewrite>
209
+ </adminhtml>
210
+ <!-- END -->
211
+ <searchanise>
212
+ <class>Simtech_Searchanise_Model</class>
213
+ <resourceModel>searchanise_mysql4</resourceModel>
214
+ </searchanise>
215
+ <searchanise_mysql4>
216
+ <class>Simtech_Searchanise_Model_Mysql4</class>
217
+ <entities>
218
+ <queue>
219
+ <table>searchanise_queue</table>
220
+ </queue>
221
+ <config>
222
+ <table>searchanise_config</table>
223
+ </config>
224
+ </entities>
225
+ </searchanise_mysql4>
226
+ </models>
227
+ <resources>
228
+ <searchanise_setup>
229
+ <setup>
230
+ <module>Simtech_Searchanise</module>
231
+ <!--<class>Simtech_Searchanise_Model_Entity_Setup</class>-->
232
+ </setup>
233
+ <connection>
234
+ <use>core_setup</use>
235
+ </connection>
236
+ </searchanise_setup>
237
+ <searchanise_write>
238
+ <connection>
239
+ <use>core_write</use>
240
+ </connection>
241
+ </searchanise_write>
242
+ <searchanise_read>
243
+ <connection>
244
+ <use>core_read</use>
245
+ </connection>
246
+ </searchanise_read>
247
+ </resources>
248
+ <helpers>
249
+ <searchanise>
250
+ <class>Simtech_Searchanise_Helper</class>
251
+ </searchanise>
252
+ </helpers>
253
+ <events>
254
+ <!-- CATALOG -->
255
+ <!-- products -->
256
+ <catalog_product_save_before>
257
+ <observers>
258
+ <rating>
259
+ <class>searchanise/observer</class>
260
+ <method>catalogProductSaveBefore</method>
261
+ </rating>
262
+ </observers>
263
+ </catalog_product_save_before>
264
+ <catalog_product_save_after>
265
+ <observers>
266
+ <rating>
267
+ <class>searchanise/observer</class>
268
+ <method>catalogProductSaveAfter</method>
269
+ </rating>
270
+ </observers>
271
+ </catalog_product_save_after>
272
+ <catalog_product_delete_before>
273
+ <observers>
274
+ <rating>
275
+ <class>searchanise/observer</class>
276
+ <method>catalogProductDeleteBefore</method>
277
+ </rating>
278
+ </observers>
279
+ </catalog_product_delete_before>
280
+ <catalog_product_attribute_update_before>
281
+ <observers>
282
+ <rating>
283
+ <class>searchanise/observer</class>
284
+ <method>catalogProductAttributeUpdateBefore</method>
285
+ </rating>
286
+ </observers>
287
+ </catalog_product_attribute_update_before>
288
+ <catalog_product_website_update_before>
289
+ <observers>
290
+ <rating>
291
+ <class>searchanise/observer</class>
292
+ <method>catalogProductWebsiteUpdateBefore</method>
293
+ </rating>
294
+ </observers>
295
+ </catalog_product_website_update_before>
296
+ <!-- facets-->
297
+ <catalog_entity_attribute_save_before>
298
+ <observers>
299
+ <rating>
300
+ <class>searchanise/observer</class>
301
+ <method>catalogEntityAttributeSaveBefore</method>
302
+ </rating>
303
+ </observers>
304
+ </catalog_entity_attribute_save_before>
305
+ <catalog_entity_attribute_save_after>
306
+ <observers>
307
+ <rating>
308
+ <class>searchanise/observer</class>
309
+ <method>catalogEntityAttributeSaveAfter</method>
310
+ </rating>
311
+ </observers>
312
+ </catalog_entity_attribute_save_after>
313
+ <catalog_entity_attribute_delete_after>
314
+ <observers>
315
+ <rating>
316
+ <class>searchanise/observer</class>
317
+ <method>catalogEntityAttributeDeleteAfter</method>
318
+ </rating>
319
+ </observers>
320
+ </catalog_entity_attribute_delete_after>
321
+ <!-- facet-categories -->
322
+ <catalog_category_save_before>
323
+ <observers>
324
+ <rating>
325
+ <class>searchanise/observer</class>
326
+ <method>catalogCategorySaveBefore</method>
327
+ </rating>
328
+ </observers>
329
+ </catalog_category_save_before>
330
+ <catalog_category_save_after>
331
+ <observers>
332
+ <rating>
333
+ <class>searchanise/observer</class>
334
+ <method>catalogCategorySaveAfter</method>
335
+ </rating>
336
+ </observers>
337
+ </catalog_category_save_after>
338
+ <!-- END CATALOG-->
339
+ <!-- SALES -->
340
+ <!-- products -->
341
+ <sales_order_save_after>
342
+ <observers>
343
+ <rating>
344
+ <class>searchanise/observer</class>
345
+ <method>salesOrderSaveAfter</method>
346
+ </rating>
347
+ </observers>
348
+ </sales_order_save_after>
349
+ <!-- END SALES -->
350
+ <!-- IMPORTEXPORT -->
351
+ <!-- products -->
352
+ <searchanise_import_save_product_entity_after>
353
+ <observers>
354
+ <rating>
355
+ <class>searchanise/observer</class>
356
+ <method>searchaniseImportSaveProductEntityAfter</method>
357
+ </rating>
358
+ </observers>
359
+ </searchanise_import_save_product_entity_after>
360
+ <searchanise_import_delete_product_entity_after>
361
+ <observers>
362
+ <rating>
363
+ <class>searchanise/observer</class>
364
+ <method>searchaniseImportDeleteProductEntityAfter</method>
365
+ </rating>
366
+ </observers>
367
+ </searchanise_import_delete_product_entity_after>
368
+ <!-- END IMPORTEXPORT -->
369
+ <!-- CORE -->
370
+ <!-- store -->
371
+ <searchanise_core_save_store_before>
372
+ <observers>
373
+ <rating>
374
+ <class>searchanise/observer</class>
375
+ <method>searchaniseCoreSaveStoreBefore</method>
376
+ </rating>
377
+ </observers>
378
+ </searchanise_core_save_store_before>
379
+ <searchanise_core_save_store_after>
380
+ <observers>
381
+ <rating>
382
+ <class>searchanise/observer</class>
383
+ <method>searchaniseCoreSaveStoreAfter</method>
384
+ </rating>
385
+ </observers>
386
+ </searchanise_core_save_store_after>
387
+ <searchanise_core_delete_store_after>
388
+ <observers>
389
+ <rating>
390
+ <class>searchanise/observer</class>
391
+ <method>searchaniseCoreDeleteStoreAfter</method>
392
+ </rating>
393
+ </observers>
394
+ </searchanise_core_delete_store_after>
395
+ <!-- ADMINHTML-->
396
+ <searchanise_adminhtml_config_data_save_before>
397
+ <observers>
398
+ <rating>
399
+ <class>searchanise/observer</class>
400
+ <method>searchaniseAdminhtmlConfigDataSaveBefore</method>
401
+ </rating>
402
+ </observers>
403
+ </searchanise_adminhtml_config_data_save_before>
404
+ <searchanise_adminhtml_config_data_save_after>
405
+ <observers>
406
+ <rating>
407
+ <class>searchanise/observer</class>
408
+ <method>searchaniseAdminhtmlConfigDataSaveAfter</method>
409
+ </rating>
410
+ </observers>
411
+ </searchanise_adminhtml_config_data_save_after>
412
+ <!-- END ADMINHTML -->
413
+ <!-- TAG -->
414
+ <!-- tag -->
415
+ <tag_save_after>
416
+ <observers>
417
+ <rating>
418
+ <class>searchanise/observer</class>
419
+ <method>tagSaveAfter</method>
420
+ </rating>
421
+ </observers>
422
+ </tag_save_after>
423
+ <tag_delete_before>
424
+ <observers>
425
+ <rating>
426
+ <class>searchanise/observer</class>
427
+ <method>tagDeleteBefore</method>
428
+ </rating>
429
+ </observers>
430
+ </tag_delete_before>
431
+ <!-- tag_relation -->
432
+ <searchanise_tag_relation_save_after>
433
+ <observers>
434
+ <rating>
435
+ <class>searchanise/observer</class>
436
+ <method>searchaniseTagRelationSaveAfter</method>
437
+ </rating>
438
+ </observers>
439
+ </searchanise_tag_relation_save_after>
440
+ <!-- END TAG -->
441
+ </events>
442
+ <blocks>
443
+ <!-- OVERRIDE BLOCK CATALOG -->
444
+ <catalog>
445
+ <rewrite>
446
+ <product_list_toolbar>Simtech_Searchanise_Block_Product_List_Toolbar</product_list_toolbar>
447
+ </rewrite>
448
+ </catalog>
449
+ <!-- END -->
450
+ <!-- OVERRIDE BLOCK CATALOGSEARCH -->
451
+ <catalogsearch>
452
+ <rewrite>
453
+ <result>Simtech_Searchanise_Block_Result</result>
454
+ <autocomplete>Simtech_Searchanise_Block_Autocomplete</autocomplete>
455
+ </rewrite>
456
+ </catalogsearch>
457
+ <!-- END -->
458
+ <!-- OVERRIDE BLOCK TAG -->
459
+ <tag>
460
+ <rewrite>
461
+ <product_result>Simtech_Searchanise_Block_Product_Result</product_result>
462
+ </rewrite>
463
+ </tag>
464
+ <!-- END -->
465
+ </blocks>
466
+ </global>
467
+ <default>
468
+ <searchanise>
469
+ <config>
470
+ <version>1.0.7</version>
471
+ <search_timeout>3</search_timeout>
472
+ <request_timeout>15</request_timeout>
473
+ <ajax_async_timeout>1</ajax_async_timeout>
474
+ <products_per_pass>200</products_per_pass>
475
+ <max_error_count>25</max_error_count>
476
+ <max_processing_thread>3</max_processing_thread>
477
+ <max_processing_time>720</max_processing_time>
478
+ <max_search_request_length>8000</max_search_request_length>
479
+ <service_url>http://www.searchanise.com</service_url>
480
+ <cron_enabled>1</cron_enabled>
481
+ <input_id_search>search</input_id_search>
482
+ <type_async>2</type_async>
483
+ </config>
484
+ </searchanise>
485
+ </default>
486
+ <crontab>
487
+ <jobs>
488
+ <cronjob_name>
489
+ <!-- runs every 1 minutes as below. Change to (0 1 * * *) to run every night at 1am -->
490
+ <schedule><cron_expr>*/1 * * * *</cron_expr></schedule>
491
+ <run><model>searchanise/observer::autoSync</model></run>
492
+ </cronjob_name>
493
+ </jobs>
494
+ </crontab>
495
  </config>
app/design/frontend/default/default/template/catalogsearch/form.mini.phtml CHANGED
@@ -18,7 +18,14 @@
18
  <button type="submit" title="<?php echo $this->__('Search') ?>" class="button"><span><span><?php echo $this->__('Search') ?></span></span></button>
19
  <div id="search_autocomplete" class="search-autocomplete"></div>
20
  <?php
21
- if(Mage::getStoreConfigFlag('advanced/modules_disable_output/Simtech_Searchanise')) {
 
 
 
 
 
 
 
22
  ?>
23
  <script type="text/javascript">
24
  //<![CDATA[
18
  <button type="submit" title="<?php echo $this->__('Search') ?>" class="button"><span><span><?php echo $this->__('Search') ?></span></span></button>
19
  <div id="search_autocomplete" class="search-autocomplete"></div>
20
  <?php
21
+ $showDefaultAutocomplete = true;
22
+ $searchaniseDisabled = Mage::getStoreConfigFlag('advanced/modules_disable_output/Simtech_Searchanise');
23
+ if (!$searchaniseDisabled) {
24
+ $store = Mage::app()->getStore();
25
+ $showDefaultAutocomplete = !Mage::helper('searchanise/ApiSe')->checkSearchaniseResult(true, $store);
26
+ }
27
+
28
+ if ($showDefaultAutocomplete) {
29
  ?>
30
  <script type="text/javascript">
31
  //<![CDATA[
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Simtech_Searchanise</name>
4
- <version>1.0.6</version>
5
  <stability>stable</stability>
6
  <license uri="https://searchanise.atlassian.net/wiki/display/DD/LICENSE+AGREEMENT">Commercial license: https://searchanise.atlassian.net/wiki/display/DD/LICENSE+AGREEMENT</license>
7
  <channel>community</channel>
@@ -10,12 +10,13 @@
10
  <description>Searchanise is a free SaaS solution providing fast and smart search for online stores. It provides rapid search results and instant search suggestions presented in a fancy and customizable widget.&#xD;
11
  &#xD;
12
  With the help of Searchanise Connector Add-on you will be able to connect your store to the service and start using the search widget in no time. Power up your store right now!</description>
13
- <notes>[+] Searchanise registration is now performed automatically.&#xD;
14
- [+] Now, a notification appears in the Magento admin panel when the catalog indexation is complete.</notes>
 
15
  <authors><author><name>Simbirsk Technologies, Ltd.</name><user>searchanise</user><email>sales@searchanise.com</email></author></authors>
16
- <date>2013-05-08</date>
17
- <time>09:24:14</time>
18
- <contents><target name="magecommunity"><dir name="Simtech"><dir name="Searchanise"><dir name="Block"><file name="Async.php" hash="e7f47cd4afa3f2a0d32776553a89c557"/><file name="Jsinit.php" hash="a6173b79ce1f3fa185425fa95ceced2f"/><dir name="Product"><dir name="List"><file name="Toolbar.php" hash="7191058de95d20a86b65c27b3c73b064"/></dir><file name="Result.php" hash="93bad80ca402362e6d56b13da7064fa1"/></dir><file name="Result.php" hash="dec7b27ab9511c956680eb60eba9b95e"/></dir><dir name="Helper"><file name="ApiSe.php" hash="b479bef2cc89fd2d87db723e2f5e865e"/><file name="ApiXML.php" hash="315c4ba7e935978b767f496cea798f4e"/><file name="Data.php" hash="20eaba20a26d70d544263a5d4ca71403"/></dir><dir name="Model"><file name="Advanced.php" hash="2a22ebcf7ac75b54681ef8a27bad2e47"/><dir name="Config"><file name="Data.php" hash="ddc558d22208f0ebc1e4378c9d050022"/></dir><file name="Config.php" hash="00ca3c7955f3ff2283c636a2074b6f03"/><dir name="Import"><dir name="Entity"><file name="Product.php" hash="4997af528b36f0f576d1c01402e14b03"/></dir></dir><dir name="Layer"><dir name="Filter"><file name="Category.php" hash="e290ab29f2d50e1acbbbb37496150ea4"/><file name="Price.php" hash="743887b32bf012274ad8a371fff96411"/></dir></dir><file name="Layer.php" hash="3e8c975d649ae6e20fcc69d35779c97c"/><file name="LayerCatalogSearch.php" hash="cbe778aac21b85b43d098ab2c5ac08e5"/><dir name="Mysql4"><dir name="Config"><file name="Collection.php" hash="470218c1eb3f1cc1ca0e6d0e93e1b097"/></dir><file name="Config.php" hash="c95dc8ecd7ab4f955b6eaf4710ab960e"/><dir name="Queue"><file name="Collection.php" hash="30ca0f8640bdc443deb94cd2e71010c8"/></dir><file name="Queue.php" hash="286351623e8f011a21519f8d9c3e3151"/></dir><file name="Observer.php" hash="efd30f49b39acb3f494bc26c28abc34c"/><file name="Queue.php" hash="4906e1669bac61e66f3d690c646c9ba3"/><file name="Request.php" hash="987e3f8b6691aa982101f002695e70af"/><dir name="Resource"><dir name="Advanced"><file name="Collection.php" hash="8030ea455af831f8f2b8ee2082e1e279"/></dir><dir name="Fulltext"><file name="Collection.php" hash="7d5db3095d69aee39c22dc1575ef08b6"/></dir><file name="Fulltext.php" hash="e9ea5b1ea7a2a5bc38d89f519e12347a"/><dir name="Layer"><dir name="Filter"><file name="Attribute.php" hash="4fd102cb09e8e80e50f9cbf1f621adbb"/><file name="Price.php" hash="0b3302f2d99f5f0d62d7fcd705825db0"/></dir></dir><dir name="Product"><file name="Collection.php" hash="19c3c4f1a90029c34f91c26d56e4277f"/><file name="CollectionTag.php" hash="be55f448ecf92aad043c2480b7fe49df"/></dir><file name="Store.php" hash="5664dbfc69749b767db08b288c5aefbe"/></dir><dir name="System"><dir name="Config"><dir name="Source"><dir name="Searchanise"><file name="TypeAsync.php" hash="11d1aa481094ccbeab365b1fed33440d"/></dir></dir></dir></dir><dir name="Tag"><file name="Relation.php" hash="598f81fd8b2ac77baf24211c2ed03e55"/></dir></dir><dir name="controllers"><file name="AdvancedController.php" hash="7500f6075382cd8a14816e424da2348f"/><file name="AsyncController.php" hash="b41f6a221b34c470c88b21b194b758da"/><file name="CategoryController.php" hash="909f99c5cf7f85405fc76ebe976c2c8e"/><file name="IndexController.php" hash="e3234ca51a7669741e29ff7c38789989"/><file name="InfoController.php" hash="c5cfcf412c531e46a54815bafe10a62e"/><file name="OptionsController.php" hash="56785c8ea24472c2047268b2d9e8e878"/><file name="ProductController.php" hash="6633fde99f35ffeaa05884f0e0d98da7"/><file name="ResultController.php" hash="434b72272ebb222f775b8010f72ffdde"/><file name="ResyncController.php" hash="0612f929d375427326821dfc12186be8"/><file name="SignupController.php" hash="80f87a63d6272f98a068dde35f1d140e"/></dir><dir name="etc"><file name="config.xml" hash="47dca3e9ffa0de912de03db61c9db32d"/><file name="system.xml" hash="881fb083ae8711b7dadadd6ab954f764"/></dir><dir name="sql"><dir name="searchanise_setup"><file name="mysql4-install-0.1.0.php" hash="36781ba462935d4026358fb3a1f7c842"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="searchanise"><file name="dashboard.phtml" hash="c76131581bb8dfc21a1f9aa492179b01"/></dir></dir><dir name="layout"><file name="searchanise.xml" hash="1eaff51919b0b8c227fdf1b975ebe6b2"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="searchanise.xml" hash="9a1338f1522adad70042119c25ab64d9"/></dir></dir></dir><dir name="default"><dir name="default"><dir name="template"><dir name="catalogsearch"><file name="form.mini.phtml" hash="f23dc637c333b13c29342a0f5deaf08f"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Simtech_Searchanise.xml" hash="04148681a6648bd370ab62140cbf2ad9"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Simtech_Searchanise.csv" hash="1bdb7fddc596dac1460bc3054c425187"/></dir></target></contents>
19
  <compatible/>
20
  <dependencies><required><php><min>5.2.13</min><max>6.0.0</max></php></required></dependencies>
21
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Simtech_Searchanise</name>
4
+ <version>1.0.7</version>
5
  <stability>stable</stability>
6
  <license uri="https://searchanise.atlassian.net/wiki/display/DD/LICENSE+AGREEMENT">Commercial license: https://searchanise.atlassian.net/wiki/display/DD/LICENSE+AGREEMENT</license>
7
  <channel>community</channel>
10
  <description>Searchanise is a free SaaS solution providing fast and smart search for online stores. It provides rapid search results and instant search suggestions presented in a fancy and customizable widget.&#xD;
11
  &#xD;
12
  With the help of Searchanise Connector Add-on you will be able to connect your store to the service and start using the search widget in no time. Power up your store right now!</description>
13
+ <notes> [!] Fixed an SQL error that would appear on relevance result sort under certain MySQL server configurations.&lt;br&gt;&#xD;
14
+ [!] Fixed an issue with wrong path to the Searchanise admin panel in the Magento admin panel menu that would occur if the setting 'Add Store Code to URLs' was checked.&lt;br&gt;&#xD;
15
+ [+] Added an extra check for the standard search autocomplete being turned off (useful for non-standard skins, e.g. Shopper by Themeforest.)</notes>
16
  <authors><author><name>Simbirsk Technologies, Ltd.</name><user>searchanise</user><email>sales@searchanise.com</email></author></authors>
17
+ <date>2013-05-20</date>
18
+ <time>08:02:16</time>
19
+ <contents><target name="magecommunity"><dir name="Simtech"><dir name="Searchanise"><dir name="Block"><file name="Async.php" hash="e7f47cd4afa3f2a0d32776553a89c557"/><file name="Autocomplete.php" hash="efc89ac3f897be3bc307fba6a36778f0"/><file name="Jsinit.php" hash="310c5c95620ee4c4fa936475b5c6a1e6"/><dir name="Product"><dir name="List"><file name="Toolbar.php" hash="7191058de95d20a86b65c27b3c73b064"/></dir><file name="Result.php" hash="93bad80ca402362e6d56b13da7064fa1"/></dir><file name="Result.php" hash="dec7b27ab9511c956680eb60eba9b95e"/></dir><dir name="Helper"><file name="ApiSe.php" hash="d1a5207c3a58d3003bc93decff2a7ed6"/><file name="ApiXML.php" hash="3c544a80331ee0d093730df2f03c6004"/><file name="Data.php" hash="8eefead1610d937cf9470ec45c364781"/></dir><dir name="Model"><file name="Advanced.php" hash="2a22ebcf7ac75b54681ef8a27bad2e47"/><dir name="Config"><file name="Data.php" hash="ddc558d22208f0ebc1e4378c9d050022"/></dir><file name="Config.php" hash="00ca3c7955f3ff2283c636a2074b6f03"/><dir name="Import"><dir name="Entity"><file name="Product.php" hash="4997af528b36f0f576d1c01402e14b03"/></dir></dir><dir name="Layer"><dir name="Filter"><file name="Category.php" hash="e290ab29f2d50e1acbbbb37496150ea4"/><file name="Price.php" hash="743887b32bf012274ad8a371fff96411"/></dir></dir><file name="Layer.php" hash="3e8c975d649ae6e20fcc69d35779c97c"/><file name="LayerCatalogSearch.php" hash="cbe778aac21b85b43d098ab2c5ac08e5"/><dir name="Mysql4"><dir name="Config"><file name="Collection.php" hash="470218c1eb3f1cc1ca0e6d0e93e1b097"/></dir><file name="Config.php" hash="c95dc8ecd7ab4f955b6eaf4710ab960e"/><dir name="Queue"><file name="Collection.php" hash="30ca0f8640bdc443deb94cd2e71010c8"/></dir><file name="Queue.php" hash="286351623e8f011a21519f8d9c3e3151"/></dir><file name="Observer.php" hash="efd30f49b39acb3f494bc26c28abc34c"/><file name="Queue.php" hash="4906e1669bac61e66f3d690c646c9ba3"/><file name="Request.php" hash="987e3f8b6691aa982101f002695e70af"/><dir name="Resource"><dir name="Advanced"><file name="Collection.php" hash="bb2843f4b1b7672cf1334f7543969f95"/></dir><dir name="Fulltext"><file name="Collection.php" hash="3b8260ba3184172d220b87619159482f"/></dir><file name="Fulltext.php" hash="e9ea5b1ea7a2a5bc38d89f519e12347a"/><dir name="Layer"><dir name="Filter"><file name="Attribute.php" hash="4fd102cb09e8e80e50f9cbf1f621adbb"/><file name="Price.php" hash="0b3302f2d99f5f0d62d7fcd705825db0"/></dir></dir><dir name="Product"><file name="Collection.php" hash="cfd22d67e6a8cf032cf4a6343e10a450"/><file name="CollectionTag.php" hash="be55f448ecf92aad043c2480b7fe49df"/></dir><file name="Store.php" hash="5664dbfc69749b767db08b288c5aefbe"/></dir><dir name="System"><dir name="Config"><dir name="Source"><dir name="Searchanise"><file name="TypeAsync.php" hash="11d1aa481094ccbeab365b1fed33440d"/></dir></dir></dir></dir><dir name="Tag"><file name="Relation.php" hash="598f81fd8b2ac77baf24211c2ed03e55"/></dir></dir><dir name="controllers"><file name="AdvancedController.php" hash="7500f6075382cd8a14816e424da2348f"/><file name="AsyncController.php" hash="b41f6a221b34c470c88b21b194b758da"/><file name="CategoryController.php" hash="909f99c5cf7f85405fc76ebe976c2c8e"/><file name="IndexController.php" hash="e3234ca51a7669741e29ff7c38789989"/><file name="InfoController.php" hash="8e3dc9d7be1380c1311f8c16291eef38"/><file name="OptionsController.php" hash="56785c8ea24472c2047268b2d9e8e878"/><file name="ProductController.php" hash="6633fde99f35ffeaa05884f0e0d98da7"/><file name="ResultController.php" hash="434b72272ebb222f775b8010f72ffdde"/><file name="ResyncController.php" hash="0612f929d375427326821dfc12186be8"/><file name="SignupController.php" hash="80f87a63d6272f98a068dde35f1d140e"/></dir><dir name="etc"><file name="config.xml" hash="badec624951dafaf9cbc97f8295a5090"/><file name="system.xml" hash="881fb083ae8711b7dadadd6ab954f764"/></dir><dir name="sql"><dir name="searchanise_setup"><file name="mysql4-install-0.1.0.php" hash="36781ba462935d4026358fb3a1f7c842"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="searchanise"><file name="dashboard.phtml" hash="c76131581bb8dfc21a1f9aa492179b01"/></dir></dir><dir name="layout"><file name="searchanise.xml" hash="1eaff51919b0b8c227fdf1b975ebe6b2"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="searchanise.xml" hash="9a1338f1522adad70042119c25ab64d9"/></dir></dir></dir><dir name="default"><dir name="default"><dir name="template"><dir name="catalogsearch"><file name="form.mini.phtml" hash="937e73ae35afdf220d96132e3ee13424"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Simtech_Searchanise.xml" hash="04148681a6648bd370ab62140cbf2ad9"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Simtech_Searchanise.csv" hash="1bdb7fddc596dac1460bc3054c425187"/></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.2.13</min><max>6.0.0</max></php></required></dependencies>
22
  </package>