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 +36 -0
- app/code/community/Simtech/Searchanise/Block/Jsinit.php +10 -1
- app/code/community/Simtech/Searchanise/Helper/ApiSe.php +3 -3
- app/code/community/Simtech/Searchanise/Helper/ApiXML.php +18 -14
- app/code/community/Simtech/Searchanise/Helper/Data.php +2 -0
- app/code/community/Simtech/Searchanise/Model/Resource/Advanced/Collection.php +2 -1
- app/code/community/Simtech/Searchanise/Model/Resource/Fulltext/Collection.php +2 -1
- app/code/community/Simtech/Searchanise/Model/Resource/Product/Collection.php +2 -1
- app/code/community/Simtech/Searchanise/controllers/InfoController.php +16 -4
- app/code/community/Simtech/Searchanise/etc/config.xml +494 -482
- app/design/frontend/default/default/template/catalogsearch/form.mini.phtml +8 -1
- package.xml +7 -6
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 |
-
$
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
$image_link = $product->getSmallImageUrl();
|
155 |
|
156 |
} else {
|
157 |
-
$
|
158 |
-
|
159 |
-
if (!empty($
|
160 |
-
|
|
|
161 |
} else {
|
162 |
$thumbnail = $product->getData('thumbnail');
|
163 |
|
164 |
-
if (!empty($thumbnail) && $thumbnail != 'no_selection') {
|
|
|
|
|
165 |
}
|
166 |
}
|
167 |
-
|
168 |
-
|
|
|
|
|
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 |
-
$
|
|
|
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 |
-
$
|
|
|
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 |
-
$
|
|
|
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 |
-
|
|
|
42 |
|
43 |
-
|
44 |
-
|
|
|
|
|
|
|
45 |
} else {
|
46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
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 |
-
<
|
74 |
-
<
|
75 |
-
<
|
76 |
-
<
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
</
|
105 |
-
</
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
<
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
<
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
<
|
205 |
-
<
|
206 |
-
|
207 |
-
<
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
</
|
214 |
-
</
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
</
|
225 |
-
</
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
<
|
331 |
-
<observers>
|
332 |
-
<rating>
|
333 |
-
<class>searchanise/observer</class>
|
334 |
-
<method>
|
335 |
-
</rating>
|
336 |
-
</observers>
|
337 |
-
</
|
338 |
-
<!-- END
|
339 |
-
<!--
|
340 |
-
<!-- products -->
|
341 |
-
<
|
342 |
-
<observers>
|
343 |
-
<rating>
|
344 |
-
<class>searchanise/observer</class>
|
345 |
-
<method>
|
346 |
-
</rating>
|
347 |
-
</observers>
|
348 |
-
</
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
<
|
361 |
-
<observers>
|
362 |
-
<rating>
|
363 |
-
<class>searchanise/observer</class>
|
364 |
-
<method>
|
365 |
-
</rating>
|
366 |
-
</observers>
|
367 |
-
</
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
<
|
405 |
-
<observers>
|
406 |
-
<rating>
|
407 |
-
<class>searchanise/observer</class>
|
408 |
-
<method>
|
409 |
-
</rating>
|
410 |
-
</observers>
|
411 |
-
</
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
<
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
<
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
<
|
479 |
-
<
|
480 |
-
|
481 |
-
|
482 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
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.
|
11 |

|
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>[
|
14 |
-
[
|
|
|
15 |
<authors><author><name>Simbirsk Technologies, Ltd.</name><user>searchanise</user><email>sales@searchanise.com</email></author></authors>
|
16 |
-
<date>2013-05-
|
17 |
-
<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="
|
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.
|
11 |

|
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.<br>
|
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.<br>
|
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>
|