Version Notes
[*] Notices removed from the Magento cron logs.
[!] Multi-Store: Category links could be incorrect if there were several stores on different domains. Fixed.
[!] Server connection timeout increased.
[!] Searchanise server response correctness check improved.
Download this release
Release Info
Developer | Simbirsk Technologies, Ltd. |
Extension | Simtech_Searchanise |
Version | 3.0.4 |
Comparing to | |
See all releases |
Code changes from version 3.0.3 to 3.0.4
- app/code/community/Simtech/Searchanise/Helper/ApiCategories.php +1 -0
- app/code/community/Simtech/Searchanise/Helper/ApiSe.php +1 -1
- app/code/community/Simtech/Searchanise/Model/Observer.php +1 -10
- app/code/community/Simtech/Searchanise/Model/Request.php +7 -1
- app/code/community/Simtech/Searchanise/etc/config.xml +2 -2
- app/code/community/Simtech/Searchanise/etc/config_without_search.xml +2 -2
- package.xml +8 -7
app/code/community/Simtech/Searchanise/Helper/ApiCategories.php
CHANGED
@@ -29,6 +29,7 @@ class Simtech_Searchanise_Helper_ApiCategories extends Mage_Core_Helper_Data
|
|
29 |
}
|
30 |
// Need for generate correct url.
|
31 |
if ($store) {
|
|
|
32 |
Mage::app()->setCurrentStore($store->getId());
|
33 |
} else {
|
34 |
Mage::app()->setCurrentStore(0);
|
29 |
}
|
30 |
// Need for generate correct url.
|
31 |
if ($store) {
|
32 |
+
$category->getUrlInstance()->setStore($store->getId());
|
33 |
Mage::app()->setCurrentStore($store->getId());
|
34 |
} else {
|
35 |
Mage::app()->setCurrentStore(0);
|
app/code/community/Simtech/Searchanise/Helper/ApiSe.php
CHANGED
@@ -652,7 +652,7 @@ class Simtech_Searchanise_Helper_ApiSe
|
|
652 |
|
653 |
public static function showWarningFlatTables()
|
654 |
{
|
655 |
-
if (Mage::
|
656 |
Mage::helper('searchanise/ApiSe')->setNotification('W', Mage::helper('searchanise')->__('Searchanise'), Mage::helper('searchanise')->__("Please disable the Use Flat Catalog Product (Configuration -> Catalog -> Frontend) setting if you have multiple store views. Otherwise, Searchanise may work incorrectly."));
|
657 |
}
|
658 |
|
652 |
|
653 |
public static function showWarningFlatTables()
|
654 |
{
|
655 |
+
if (Mage::getStoreConfigFlag(Mage_Catalog_Helper_Product_Flat::XML_PATH_USE_PRODUCT_FLAT) && count(self::getStores()) > 1) {
|
656 |
Mage::helper('searchanise/ApiSe')->setNotification('W', Mage::helper('searchanise')->__('Searchanise'), Mage::helper('searchanise')->__("Please disable the Use Flat Catalog Product (Configuration -> Catalog -> Frontend) setting if you have multiple store views. Otherwise, Searchanise may work incorrectly."));
|
657 |
}
|
658 |
|
app/code/community/Simtech/Searchanise/Model/Observer.php
CHANGED
@@ -29,21 +29,12 @@ class Simtech_Searchanise_Model_Observer
|
|
29 |
*/
|
30 |
public function autoSync()
|
31 |
{
|
32 |
-
Mage::helper('searchanise/ApiSe')->log('start cron autoSync', 'information');
|
33 |
-
|
34 |
// only run if set to
|
35 |
$cronAsyncEnabled = Mage::helper('searchanise/ApiSe')->checkCronAsync();
|
36 |
if ($cronAsyncEnabled) {
|
37 |
-
Mage::helper('searchanise/ApiSe')->log('cron is enabled', 'information');
|
38 |
$result = Mage::helper('searchanise/ApiSe')->async();
|
39 |
-
Mage::helper('searchanise/ApiSe')->log($result, 'information');
|
40 |
-
|
41 |
-
} else {
|
42 |
-
Mage::helper('searchanise/ApiSe')->log('cron is not enabled', 'information');
|
43 |
}
|
44 |
-
|
45 |
-
Mage::helper('searchanise/ApiSe')->log('end cron autoSync', 'information');
|
46 |
-
|
47 |
return $this;
|
48 |
}
|
49 |
|
29 |
*/
|
30 |
public function autoSync()
|
31 |
{
|
|
|
|
|
32 |
// only run if set to
|
33 |
$cronAsyncEnabled = Mage::helper('searchanise/ApiSe')->checkCronAsync();
|
34 |
if ($cronAsyncEnabled) {
|
|
|
35 |
$result = Mage::helper('searchanise/ApiSe')->async();
|
|
|
|
|
|
|
|
|
36 |
}
|
37 |
+
|
|
|
|
|
38 |
return $this;
|
39 |
}
|
40 |
|
app/code/community/Simtech/Searchanise/Model/Request.php
CHANGED
@@ -302,7 +302,13 @@ class Simtech_Searchanise_Model_Request extends Mage_Core_Model_Abstract
|
|
302 |
if (empty($received)) {
|
303 |
return $this;
|
304 |
}
|
305 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
306 |
if (Mage::helper('searchanise')->checkDebug()) {
|
307 |
Mage::helper('searchanise/ApiSe')->printR($result);
|
308 |
}
|
302 |
if (empty($received)) {
|
303 |
return $this;
|
304 |
}
|
305 |
+
|
306 |
+
try {
|
307 |
+
$result = Mage::helper('core')->jsonDecode($received);
|
308 |
+
} catch (Exception $e) {
|
309 |
+
return $this;
|
310 |
+
}
|
311 |
+
|
312 |
if (Mage::helper('searchanise')->checkDebug()) {
|
313 |
Mage::helper('searchanise/ApiSe')->printR($result);
|
314 |
}
|
app/code/community/Simtech/Searchanise/etc/config.xml
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
<config>
|
16 |
<modules>
|
17 |
<Simtech_Searchanise>
|
18 |
-
<version>3.0.
|
19 |
</Simtech_Searchanise>
|
20 |
</modules>
|
21 |
<frontend>
|
@@ -599,7 +599,7 @@
|
|
599 |
<server_version>1.3</server_version>
|
600 |
<async_memory_limit>512</async_memory_limit>
|
601 |
<search_timeout>3</search_timeout>
|
602 |
-
<request_timeout>
|
603 |
<ajax_async_timeout>1</ajax_async_timeout>
|
604 |
<products_per_pass>100</products_per_pass>
|
605 |
<categories_per_pass>500</categories_per_pass>
|
15 |
<config>
|
16 |
<modules>
|
17 |
<Simtech_Searchanise>
|
18 |
+
<version>3.0.4</version>
|
19 |
</Simtech_Searchanise>
|
20 |
</modules>
|
21 |
<frontend>
|
599 |
<server_version>1.3</server_version>
|
600 |
<async_memory_limit>512</async_memory_limit>
|
601 |
<search_timeout>3</search_timeout>
|
602 |
+
<request_timeout>25</request_timeout>
|
603 |
<ajax_async_timeout>1</ajax_async_timeout>
|
604 |
<products_per_pass>100</products_per_pass>
|
605 |
<categories_per_pass>500</categories_per_pass>
|
app/code/community/Simtech/Searchanise/etc/config_without_search.xml
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
<config>
|
16 |
<modules>
|
17 |
<Simtech_Searchanise>
|
18 |
-
<version>3.0.
|
19 |
</Simtech_Searchanise>
|
20 |
</modules>
|
21 |
<frontend>
|
@@ -599,7 +599,7 @@
|
|
599 |
<server_version>1.3</server_version>
|
600 |
<async_memory_limit>512</async_memory_limit>
|
601 |
<search_timeout>3</search_timeout>
|
602 |
-
<request_timeout>
|
603 |
<ajax_async_timeout>1</ajax_async_timeout>
|
604 |
<products_per_pass>100</products_per_pass>
|
605 |
<categories_per_pass>500</categories_per_pass>
|
15 |
<config>
|
16 |
<modules>
|
17 |
<Simtech_Searchanise>
|
18 |
+
<version>3.0.4</version>
|
19 |
</Simtech_Searchanise>
|
20 |
</modules>
|
21 |
<frontend>
|
599 |
<server_version>1.3</server_version>
|
600 |
<async_memory_limit>512</async_memory_limit>
|
601 |
<search_timeout>3</search_timeout>
|
602 |
+
<request_timeout>25</request_timeout>
|
603 |
<ajax_async_timeout>1</ajax_async_timeout>
|
604 |
<products_per_pass>100</products_per_pass>
|
605 |
<categories_per_pass>500</categories_per_pass>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Simtech_Searchanise</name>
|
4 |
-
<version>3.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://docs.searchanise.com/connector_addon/license_agreement.html">Commercial license: http://docs.searchanise.com/connector_addon/license_agreement.html</license>
|
7 |
<channel>community</channel>
|
@@ -10,13 +10,14 @@
|
|
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 |
-
[!]
|
|
|
16 |
<authors><author><name>Simbirsk Technologies, Ltd.</name><user>searchanise</user><email>sales@searchanise.com</email></author></authors>
|
17 |
-
<date>2014-
|
18 |
-
<time>
|
19 |
-
<contents><target name="magecommunity"><dir name="Simtech"><dir name="Searchanise"><dir name="Block"><file name="Async.php" hash="143d28fa63be046b295bb7eb4783fb15"/><file name="Autocomplete.php" hash="efc89ac3f897be3bc307fba6a36778f0"/><file name="Jsinit.php" hash="3cb0a3bd02858a6ce81d14dbc7b6042f"/><dir name="Product"><dir name="List"><file name="Toolbar.php" hash="759854378cb8c35c37a8a7f44076194f"/></dir><file name="Result.php" hash="4e767e273ee21a38332ac226af878291"/></dir><file name="Result.php" hash="dec7b27ab9511c956680eb60eba9b95e"/></dir><dir name="Helper"><file name="ApiCategories.php" hash="
|
20 |
<compatible/>
|
21 |
<dependencies><required><php><min>5.2.13</min><max>6.0.0</max></php></required></dependencies>
|
22 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Simtech_Searchanise</name>
|
4 |
+
<version>3.0.4</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://docs.searchanise.com/connector_addon/license_agreement.html">Commercial license: http://docs.searchanise.com/connector_addon/license_agreement.html</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>[*] Notices removed from the Magento cron logs.<br>
|
14 |
+
[!] Multi-Store: Category links could be incorrect if there were several stores on different domains. Fixed.<br>
|
15 |
+
[!] Server connection timeout increased.<br>
|
16 |
+
[!] Searchanise server response correctness check improved.<br></notes>
|
17 |
<authors><author><name>Simbirsk Technologies, Ltd.</name><user>searchanise</user><email>sales@searchanise.com</email></author></authors>
|
18 |
+
<date>2014-07-29</date>
|
19 |
+
<time>07:01:04</time>
|
20 |
+
<contents><target name="magecommunity"><dir name="Simtech"><dir name="Searchanise"><dir name="Block"><file name="Async.php" hash="143d28fa63be046b295bb7eb4783fb15"/><file name="Autocomplete.php" hash="efc89ac3f897be3bc307fba6a36778f0"/><file name="Jsinit.php" hash="3cb0a3bd02858a6ce81d14dbc7b6042f"/><dir name="Product"><dir name="List"><file name="Toolbar.php" hash="759854378cb8c35c37a8a7f44076194f"/></dir><file name="Result.php" hash="4e767e273ee21a38332ac226af878291"/></dir><file name="Result.php" hash="dec7b27ab9511c956680eb60eba9b95e"/></dir><dir name="Helper"><file name="ApiCategories.php" hash="7e1853b1b91712de4aa4f57beb9198f9"/><file name="ApiPages.php" hash="973c5346e0ebd4ac0f4688626a19aca8"/><file name="ApiProducts.php" hash="f4e5ca9428aa12cf12cf9784052b1177"/><file name="ApiSe.php" hash="d86a448b449b7bd9d47ac3ac0f5756a9"/><file name="Data.php" hash="d4925c397d8b821b47be87a4d377930a"/></dir><dir name="Model"><file name="Advanced.php" hash="deb3ae5193e0aee50b94360b1833ac82"/><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="42058e0552719902f3f40f91e816b460"/><dir name="Mysql4"><dir name="Advanced"><file name="Collection.php" hash="dd8c6f3cbb0621a5a7320f3104e68da6"/></dir><dir name="Config"><file name="Collection.php" hash="470218c1eb3f1cc1ca0e6d0e93e1b097"/></dir><file name="Config.php" hash="c95dc8ecd7ab4f955b6eaf4710ab960e"/><dir name="Fulltext"><file name="Collection.php" hash="5646955503a90020f87cfd861ac07e73"/></dir><dir name="Product"><file name="Collection.php" hash="28b478eb328502ce03e389404d9f54b5"/><file name="CollectionTag.php" hash="ea06ec75ee4d083f2b4232c5fe298f00"/></dir><dir name="Queue"><file name="Collection.php" hash="30ca0f8640bdc443deb94cd2e71010c8"/></dir><file name="Queue.php" hash="286351623e8f011a21519f8d9c3e3151"/><file name="Store.php" hash="0126a4291d7dad6641bf59abb0f64cc4"/></dir><file name="Observer.php" hash="e347d2e770c809aed137dcb7dc4df480"/><file name="Queue.php" hash="f862b207d2dc9bb7f56c829b8a1480fe"/><file name="Request.php" hash="e032bca52490ebb1813c443b002b5f49"/><dir name="Resource"><dir name="Advanced"><file name="Collection.php" hash="6744555254ba1c57f482504b5f16012a"/></dir><dir name="Eav"><dir name="Mysql4"><dir name="Layer"><dir name="Filter"><file name="Attribute.php" hash="05320757b9289edac4f15230cd06c0e1"/><file name="Price.php" hash="ed4e21a18c552e3a92b21ff6e8bc5d61"/></dir></dir><dir name="Product"><file name="Action.php" hash="006e3c8c775cf31a8b9c66fb934c9d2d"/></dir></dir></dir><dir name="Fulltext"><file name="Collection.php" hash="273467b2e39649fcd0a8eede59c5ab98"/></dir><dir name="Layer"><dir name="Filter"><file name="Attribute.php" hash="643a513735ac2a2ac9fba08ff1fa79a0"/><file name="Price.php" hash="15d7ab510b37655a148e077dcece13df"/></dir></dir><dir name="Product"><file name="Collection.php" hash="b7c9a1c2fc24ecf78a32fd0d9d46b120"/><file name="CollectionTag.php" hash="60f12d27d78426a8e04e01d2cbdadb48"/></dir><file name="Store.php" hash="dee8bb23b7fe48dc55e46e93f583699a"/></dir><file name="Searchanise.php" hash="0a03a35854470a310f075298c9a1abf2"/><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="5ea4f7fb3362d720462dc0a8e1f1497b"/><file name="AsyncController.php" hash="0b89778497643fff6027fb47eceda82e"/><file name="CategoryController.php" hash="06eac1ad4730d42379f6bc6aae097427"/><file name="IndexController.php" hash="e3234ca51a7669741e29ff7c38789989"/><file name="InfoController.php" hash="9dc96775d093c25bc151a3ad8a50cdb6"/><file name="OptionsController.php" hash="46b8e49dd1026a5e07410b51d101d498"/><file name="ProductController.php" hash="4cf4e991446a36ea34b7c1d350971e1a"/><file name="ResultController.php" hash="2c1d838a2897ffcbb8bc61743254e934"/><file name="ResyncController.php" hash="0612f929d375427326821dfc12186be8"/><file name="SignupController.php" hash="80f87a63d6272f98a068dde35f1d140e"/></dir><dir name="etc"><file name="config.xml" hash="2284c98c87e1828b3a9b206b3e1896e4"/><file name="config_without_search.xml" hash="553f8fb548dbca826b7168a781dbfd73"/><file name="system.xml" hash="a006341e693571d11efaa9d289ebf7fa"/></dir><dir name="sql"><dir name="searchanise_setup"><file name="mysql4-install-0.1.0.php" hash="754324c8783e9cc24de86396e1587e73"/></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="0ec8814b915e8594b019062c071cc485"/></dir></dir><dir name="layout"><file name="searchanise.xml" hash="68baa611d05db05f8816ea2a8260e961"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="searchanise.xml" hash="5e904fee02cbd42324a297d513b9f582"/></dir></dir></dir><dir name="default"><dir name="default"><dir name="template"><dir name="catalogsearch"><file name="form.mini.phtml" hash="fcf8e06e66801a36c96f20ca5d187123"/></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="955cdb2011b7abf04227aae37db5bb0b"/></dir></target></contents>
|
21 |
<compatible/>
|
22 |
<dependencies><required><php><min>5.2.13</min><max>6.0.0</max></php></required></dependencies>
|
23 |
</package>
|