Version Notes
[+] A warning about the "Use Flat Catalog Product" setting to be disabled added.
[*] Pages "Enable Cookies" and "Privacy Policy" are now not searchable by default.
[!] Wrongs product attribute values could be submitted sometimes. Fixed.
Download this release
Release Info
Developer | Simbirsk Technologies, Ltd. |
Extension | Simtech_Searchanise |
Version | 3.0.3 |
Comparing to | |
See all releases |
Code changes from version 3.0.2 to 3.0.3
- app/code/community/Simtech/Searchanise/Block/Async.php +1 -0
- app/code/community/Simtech/Searchanise/Helper/ApiPages.php +2 -0
- app/code/community/Simtech/Searchanise/Helper/ApiProducts.php +2 -2
- app/code/community/Simtech/Searchanise/Helper/ApiSe.php +13 -4
- app/code/community/Simtech/Searchanise/controllers/AsyncController.php +5 -1
- app/code/community/Simtech/Searchanise/etc/config.xml +1 -1
- app/code/community/Simtech/Searchanise/etc/config_without_search.xml +1 -1
- app/locale/en_US/Simtech_Searchanise.csv +1 -0
- package.xml +7 -6
app/code/community/Simtech/Searchanise/Block/Async.php
CHANGED
@@ -48,6 +48,7 @@ class Simtech_Searchanise_Block_Async extends Mage_Core_Block_Text
|
|
48 |
|
49 |
if ($textNotification != '') {
|
50 |
Mage::helper('searchanise/ApiSe')->setNotification('N', Mage::helper('searchanise')->__('Notice'), $textNotification);
|
|
|
51 |
$this->_startSignup();
|
52 |
|
53 |
} else {
|
48 |
|
49 |
if ($textNotification != '') {
|
50 |
Mage::helper('searchanise/ApiSe')->setNotification('N', Mage::helper('searchanise')->__('Notice'), $textNotification);
|
51 |
+
Mage::helper('searchanise/ApiSe')->showWarningFlatTables();
|
52 |
$this->_startSignup();
|
53 |
|
54 |
} else {
|
app/code/community/Simtech/Searchanise/Helper/ApiPages.php
CHANGED
@@ -16,6 +16,8 @@ class Simtech_Searchanise_Helper_ApiPages extends Mage_Core_Helper_Data
|
|
16 |
{
|
17 |
private static $_excludedPages = array(
|
18 |
'no-route', // 404 page
|
|
|
|
|
19 |
);
|
20 |
|
21 |
public static function generatePageFeed($page, $store = null, $checkData = true)
|
16 |
{
|
17 |
private static $_excludedPages = array(
|
18 |
'no-route', // 404 page
|
19 |
+
'enable-cookies', // Enable Cookies
|
20 |
+
'privacy-policy-cookie-restriction-mode', // Privacy Policy
|
21 |
);
|
22 |
|
23 |
public static function generatePageFeed($page, $store = null, $checkData = true)
|
app/code/community/Simtech/Searchanise/Helper/ApiProducts.php
CHANGED
@@ -410,13 +410,13 @@ class Simtech_Searchanise_Helper_ApiProducts extends Mage_Core_Helper_Data
|
|
410 |
|
411 |
private static function _getTextAttributeValues($product, $attributeCode, $inputType, $store = null)
|
412 |
{
|
413 |
-
static $arrTextValues = array();
|
414 |
$key = $attributeCode;
|
415 |
if ($store) {
|
416 |
$key .= '__' . $store->getId();
|
417 |
}
|
418 |
|
419 |
-
if (!isset($arrTextValues[$key])) {
|
420 |
$values = array();
|
421 |
// Dependency of store already exists
|
422 |
$textValues = $product->getResource()->getAttribute($attributeCode)->getFrontend()->getValue($product);
|
410 |
|
411 |
private static function _getTextAttributeValues($product, $attributeCode, $inputType, $store = null)
|
412 |
{
|
413 |
+
//static $arrTextValues = array();
|
414 |
$key = $attributeCode;
|
415 |
if ($store) {
|
416 |
$key .= '__' . $store->getId();
|
417 |
}
|
418 |
|
419 |
+
if (!isset($arrTextValues[$key]) && !is_null($product->getData($attributeCode))) {
|
420 |
$values = array();
|
421 |
// Dependency of store already exists
|
422 |
$textValues = $product->getResource()->getAttribute($attributeCode)->getFrontend()->getValue($product);
|
app/code/community/Simtech/Searchanise/Helper/ApiSe.php
CHANGED
@@ -638,6 +638,8 @@ class Simtech_Searchanise_Helper_ApiSe
|
|
638 |
{
|
639 |
if (self::checkImportIsDone()) {
|
640 |
if (self::checkNotificationAsyncComleted()) {
|
|
|
|
|
641 |
$textNotification = Mage::helper('searchanise')->__('Catalog indexation is complete. Configure Searchanise via the <a href="%s">Admin Panel</a>.', Mage::helper('searchanise/ApiSe')->getModuleUrl());
|
642 |
|
643 |
Mage::helper('searchanise/ApiSe')->setNotification('N', Mage::helper('searchanise')->__('Searchanise'), $textNotification);
|
@@ -648,6 +650,15 @@ class Simtech_Searchanise_Helper_ApiSe
|
|
648 |
return true;
|
649 |
}
|
650 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
651 |
/**
|
652 |
* Set notification message
|
653 |
*
|
@@ -1080,8 +1091,6 @@ class Simtech_Searchanise_Helper_ApiSe
|
|
1080 |
self::sendAddonStatusRequest('disabled', $store);
|
1081 |
}
|
1082 |
}
|
1083 |
-
$connected = true;
|
1084 |
-
|
1085 |
continue;
|
1086 |
}
|
1087 |
|
@@ -1107,7 +1116,7 @@ class Simtech_Searchanise_Helper_ApiSe
|
|
1107 |
'email' => $email,
|
1108 |
'version' => self::getServerVersion(),
|
1109 |
'platform' => self::PLATFORM_NAME,
|
1110 |
-
'parent_private_key' => $parentPrivateKey,
|
1111 |
),
|
1112 |
array(),
|
1113 |
array(),
|
@@ -1153,7 +1162,7 @@ class Simtech_Searchanise_Helper_ApiSe
|
|
1153 |
self::setNotification('N', Mage::helper('searchanise')->__('Notice'), Mage::helper('searchanise')->__("Congratulations, you've just connected to Searchanise"));
|
1154 |
}
|
1155 |
|
1156 |
-
return
|
1157 |
}
|
1158 |
|
1159 |
public static function getFilterableFiltersIds($store = null)
|
638 |
{
|
639 |
if (self::checkImportIsDone()) {
|
640 |
if (self::checkNotificationAsyncComleted()) {
|
641 |
+
Mage::helper('searchanise/ApiSe')->showWarningFlatTables();
|
642 |
+
|
643 |
$textNotification = Mage::helper('searchanise')->__('Catalog indexation is complete. Configure Searchanise via the <a href="%s">Admin Panel</a>.', Mage::helper('searchanise/ApiSe')->getModuleUrl());
|
644 |
|
645 |
Mage::helper('searchanise/ApiSe')->setNotification('N', Mage::helper('searchanise')->__('Searchanise'), $textNotification);
|
650 |
return true;
|
651 |
}
|
652 |
|
653 |
+
public static function showWarningFlatTables()
|
654 |
+
{
|
655 |
+
if (Mage::helper('catalog/product_flat')->isEnabled() && 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 |
+
|
659 |
+
return true;
|
660 |
+
}
|
661 |
+
|
662 |
/**
|
663 |
* Set notification message
|
664 |
*
|
1091 |
self::sendAddonStatusRequest('disabled', $store);
|
1092 |
}
|
1093 |
}
|
|
|
|
|
1094 |
continue;
|
1095 |
}
|
1096 |
|
1116 |
'email' => $email,
|
1117 |
'version' => self::getServerVersion(),
|
1118 |
'platform' => self::PLATFORM_NAME,
|
1119 |
+
'parent_private_key' => $parentPrivateKey,
|
1120 |
),
|
1121 |
array(),
|
1122 |
array(),
|
1162 |
self::setNotification('N', Mage::helper('searchanise')->__('Notice'), Mage::helper('searchanise')->__("Congratulations, you've just connected to Searchanise"));
|
1163 |
}
|
1164 |
|
1165 |
+
return true;
|
1166 |
}
|
1167 |
|
1168 |
public static function getFilterableFiltersIds($store = null)
|
app/code/community/Simtech/Searchanise/controllers/AsyncController.php
CHANGED
@@ -99,7 +99,11 @@ class Simtech_Searchanise_AsyncController extends Mage_Core_Controller_Front_Act
|
|
99 |
if ($checkKey && $this->getRequest()->getParam('ignore_processing') === 'Y') {
|
100 |
$flIgnoreProcessing = true;
|
101 |
}
|
102 |
-
|
|
|
|
|
|
|
|
|
103 |
$result = Mage::helper('searchanise/ApiSe')->async($flIgnoreProcessing);
|
104 |
|
105 |
if ($this->checkShowSatusAsync()) {
|
99 |
if ($checkKey && $this->getRequest()->getParam('ignore_processing') === 'Y') {
|
100 |
$flIgnoreProcessing = true;
|
101 |
}
|
102 |
+
|
103 |
+
if (Mage::helper('catalog/product_flat')->isEnabled()) {
|
104 |
+
Mage::helper('searchanise/ApiProducts')->setIsGetProductsByItems(true);
|
105 |
+
}
|
106 |
+
|
107 |
$result = Mage::helper('searchanise/ApiSe')->async($flIgnoreProcessing);
|
108 |
|
109 |
if ($this->checkShowSatusAsync()) {
|
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>
|
15 |
<config>
|
16 |
<modules>
|
17 |
<Simtech_Searchanise>
|
18 |
+
<version>3.0.3</version>
|
19 |
</Simtech_Searchanise>
|
20 |
</modules>
|
21 |
<frontend>
|
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>
|
15 |
<config>
|
16 |
<modules>
|
17 |
<Simtech_Searchanise>
|
18 |
+
<version>3.0.3</version>
|
19 |
</Simtech_Searchanise>
|
20 |
</modules>
|
21 |
<frontend>
|
app/locale/en_US/Simtech_Searchanise.csv
CHANGED
@@ -14,6 +14,7 @@
|
|
14 |
"Congratulations, you've just connected to Searchanise", "Congratulations, you've just connected to Searchanise"
|
15 |
"You've connected to Searchanise", "You've connected to Searchanise"
|
16 |
"text_se_database_restore_notice", "You've just restored your data from the database dump file. If this dump contains products data, please <a href="[link]">Resync</a> them with Searchanise."
|
|
|
17 |
"Relevance", "Relevance"
|
18 |
"Products", "Products"
|
19 |
"Popular suggestions", "Popular suggestions"
|
14 |
"Congratulations, you've just connected to Searchanise", "Congratulations, you've just connected to Searchanise"
|
15 |
"You've connected to Searchanise", "You've connected to Searchanise"
|
16 |
"text_se_database_restore_notice", "You've just restored your data from the database dump file. If this dump contains products data, please <a href="[link]">Resync</a> them with Searchanise."
|
17 |
+
"Please disable the Use Flat Catalog Product (Configuration -> Catalog -> Frontend) setting if you have multiple store views. Otherwise, Searchanise may work incorrectly.", "Please disable the Use Flat Catalog Product (Configuration -> Catalog -> Frontend) setting if you have multiple store views. Otherwise, Searchanise may work incorrectly."
|
18 |
"Relevance", "Relevance"
|
19 |
"Products", "Products"
|
20 |
"Popular suggestions", "Popular suggestions"
|
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,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>2014-
|
17 |
-
<time>
|
18 |
-
<contents><target name="magecommunity"><dir name="Simtech"><dir name="Searchanise"><dir name="Block"><file name="Async.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>3.0.3</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>[+] A warning about the "Use Flat Catalog Product" setting to be disabled added.<br>
|
14 |
+
[*] Pages "Enable Cookies" and "Privacy Policy" are now not searchable by default.<br>
|
15 |
+
[!] Wrongs product attribute values could be submitted sometimes. Fixed.</notes>
|
16 |
<authors><author><name>Simbirsk Technologies, Ltd.</name><user>searchanise</user><email>sales@searchanise.com</email></author></authors>
|
17 |
+
<date>2014-04-15</date>
|
18 |
+
<time>11:14:55</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="a0297c7495c503fed7dd858903fabde7"/><file name="ApiPages.php" hash="973c5346e0ebd4ac0f4688626a19aca8"/><file name="ApiProducts.php" hash="f4e5ca9428aa12cf12cf9784052b1177"/><file name="ApiSe.php" hash="1d1e155f02dacb41c5cf64963617719b"/><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="009d7bbb28ae6647db4fd9119a280194"/><file name="Queue.php" hash="f862b207d2dc9bb7f56c829b8a1480fe"/><file name="Request.php" hash="897d53117d7d0e11932e77daaf8b639e"/><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="e5f838f26164d50f0af917c0ce68ae7a"/><file name="config_without_search.xml" hash="120c2e226ce1e4a70f23dbbf01907395"/><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>
|
20 |
<compatible/>
|
21 |
<dependencies><required><php><min>5.2.13</min><max>6.0.0</max></php></required></dependencies>
|
22 |
</package>
|