Version Notes
[!] Special prices are now properly shown.
[!] Fixed the issue with out of stock products not being shown in the instant search widget even if the option 'Display Out of Stock Products' was activated.
Download this release
Release Info
Developer | Simbirsk Technologies, Ltd. |
Extension | Simtech_Searchanise |
Version | 1.0.5 |
Comparing to | |
See all releases |
Code changes from version 1.0.4 to 1.0.5
app/code/community/Simtech/Searchanise/Block/Jsinit.php
CHANGED
@@ -47,7 +47,14 @@ class Simtech_Searchanise_Block_Jsinit extends Mage_Core_Block_Text
|
|
47 |
|
48 |
$minQuantityDecimals = Mage::helper('searchanise/ApiSe')->getMinQuantityDecimals();
|
49 |
if (!empty($minQuantityDecimals)) {
|
50 |
-
$restrictBy .=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
}
|
52 |
|
53 |
$price_format['after'] = $price_format['after'] ? 'true' : 'false';
|
@@ -65,7 +72,6 @@ class Simtech_Searchanise_Block_Jsinit extends Mage_Core_Block_Text
|
|
65 |
Searchanise.AutoCmpParams.restrictBy = {};
|
66 |
Searchanise.AutoCmpParams.restrictBy.status = '1';
|
67 |
Searchanise.AutoCmpParams.restrictBy.visibility = '3|4';
|
68 |
-
Searchanise.AutoCmpParams.restrictBy.is_in_stock = '1';
|
69 |
{$restrictBy}
|
70 |
|
71 |
Searchanise.options = {};
|
47 |
|
48 |
$minQuantityDecimals = Mage::helper('searchanise/ApiSe')->getMinQuantityDecimals();
|
49 |
if (!empty($minQuantityDecimals)) {
|
50 |
+
$restrictBy .= "Searchanise.AutoCmpParams.restrictBy.quantity_decimals = '{$minQuantityDecimals},';";
|
51 |
+
}
|
52 |
+
|
53 |
+
$showOutOfStock = Mage::getStoreConfigFlag(Mage_CatalogInventory_Helper_Data::XML_PATH_SHOW_OUT_OF_STOCK);
|
54 |
+
if ($showOutOfStock) {
|
55 |
+
// nothing
|
56 |
+
} else {
|
57 |
+
$restrictBy .= "\nSearchanise.AutoCmpParams.restrictBy.is_in_stock = '1';";
|
58 |
}
|
59 |
|
60 |
$price_format['after'] = $price_format['after'] ? 'true' : 'false';
|
72 |
Searchanise.AutoCmpParams.restrictBy = {};
|
73 |
Searchanise.AutoCmpParams.restrictBy.status = '1';
|
74 |
Searchanise.AutoCmpParams.restrictBy.visibility = '3|4';
|
|
|
75 |
{$restrictBy}
|
76 |
|
77 |
Searchanise.options = {};
|
app/code/community/Simtech/Searchanise/Helper/ApiXML.php
CHANGED
@@ -41,7 +41,7 @@ class Simtech_Searchanise_Helper_ApiXML extends Mage_Core_Helper_Data
|
|
41 |
return $tagCollection
|
42 |
->addPopularity()
|
43 |
->addStatusFilter(Mage::getModel('tag/tag')->getApprovedStatus())
|
44 |
-
|
45 |
->addProductFilter($product->getId())
|
46 |
->load();
|
47 |
}
|
@@ -92,28 +92,17 @@ class Simtech_Searchanise_Helper_ApiXML extends Mage_Core_Helper_Data
|
|
92 |
$productsCustomerGroup = self::getProduct($product->getId(), $store, false, $customerGroup->getId());
|
93 |
if ($productsCustomerGroup) {
|
94 |
foreach ($productsCustomerGroup as $productCustomerGroup) {
|
95 |
-
$price = $productCustomerGroup->
|
96 |
-
$minPrice = $productCustomerGroup->getData('min_price');
|
97 |
break;
|
98 |
}
|
99 |
}
|
100 |
}
|
101 |
|
102 |
-
if ($minPrice != '') {
|
103 |
-
$price = $minPrice;
|
104 |
-
}
|
105 |
-
|
106 |
if ($price != '') {
|
107 |
$price = round($price, Mage::helper('searchanise/ApiSe')->getFloatPrecision());
|
108 |
}
|
109 |
|
110 |
if ($customerGroup->getId() == Mage_Customer_Model_Group::NOT_LOGGED_IN_ID) {
|
111 |
-
// Uncomment the lines below
|
112 |
-
// if use special withnout "From Date" and "To Date"
|
113 |
-
// $specialPrice = $product->getData('special_price');
|
114 |
-
// if ($specialPrice != '') {
|
115 |
-
// $price = $specialPrice;
|
116 |
-
// }
|
117 |
$entry .= '<cs:price>' . $price . '</cs:price>'. self::XML_END_LINE;
|
118 |
$defaultPrice = $price;
|
119 |
}
|
41 |
return $tagCollection
|
42 |
->addPopularity()
|
43 |
->addStatusFilter(Mage::getModel('tag/tag')->getApprovedStatus())
|
44 |
+
->addStoresVisibility()
|
45 |
->addProductFilter($product->getId())
|
46 |
->load();
|
47 |
}
|
92 |
$productsCustomerGroup = self::getProduct($product->getId(), $store, false, $customerGroup->getId());
|
93 |
if ($productsCustomerGroup) {
|
94 |
foreach ($productsCustomerGroup as $productCustomerGroup) {
|
95 |
+
$price = $productCustomerGroup->getFinalPrice();
|
|
|
96 |
break;
|
97 |
}
|
98 |
}
|
99 |
}
|
100 |
|
|
|
|
|
|
|
|
|
101 |
if ($price != '') {
|
102 |
$price = round($price, Mage::helper('searchanise/ApiSe')->getFloatPrecision());
|
103 |
}
|
104 |
|
105 |
if ($customerGroup->getId() == Mage_Customer_Model_Group::NOT_LOGGED_IN_ID) {
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
$entry .= '<cs:price>' . $price . '</cs:price>'. self::XML_END_LINE;
|
107 |
$defaultPrice = $price;
|
108 |
}
|
app/code/community/Simtech/Searchanise/etc/config.xml
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
<config>
|
16 |
<modules>
|
17 |
<Simtech_Searchanise>
|
18 |
-
<version>0.1.
|
19 |
</Simtech_Searchanise>
|
20 |
</modules>
|
21 |
<frontend>
|
15 |
<config>
|
16 |
<modules>
|
17 |
<Simtech_Searchanise>
|
18 |
+
<version>0.1.5</version>
|
19 |
</Simtech_Searchanise>
|
20 |
</modules>
|
21 |
<frontend>
|
app/code/community/Simtech/Searchanise/etc/system.xml
CHANGED
@@ -47,7 +47,7 @@
|
|
47 |
<show_in_store>1</show_in_store>
|
48 |
</input_id_search>
|
49 |
<type_async translate="label comment">
|
50 |
-
<label><![CDATA[
|
51 |
<comment><![CDATA[<strong>Cron</strong>. If cron service is set up and running, it is recommended to use this option. Database synchronization will be initialized according to the cron schedule.<br>
|
52 |
<strong>AJAX</strong>. Select this option if you want the database synchronization to be initialized everytime a page is visited in the customer area.
|
53 |
]]></comment>
|
47 |
<show_in_store>1</show_in_store>
|
48 |
</input_id_search>
|
49 |
<type_async translate="label comment">
|
50 |
+
<label><![CDATA[Sync Init Method]]></label>
|
51 |
<comment><![CDATA[<strong>Cron</strong>. If cron service is set up and running, it is recommended to use this option. Database synchronization will be initialized according to the cron schedule.<br>
|
52 |
<strong>AJAX</strong>. Select this option if you want the database synchronization to be initialized everytime a page is visited in the customer area.
|
53 |
]]></comment>
|
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,11 +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 |
<authors><author><name>Simbirsk Technologies, Ltd.</name><user>searchanise</user><email>sales@searchanise.com</email></author></authors>
|
15 |
-
<date>2013-
|
16 |
-
<time>
|
17 |
-
<contents><target name="magecommunity"><dir name="Simtech"><dir name="Searchanise"><dir name="Block"><file name="Async.php" hash="785f322f3558281a67fd7333ee3a2aa3"/><file name="Jsinit.php" hash="
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>5.2.13</min><max>6.0.0</max></php></required></dependencies>
|
20 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Simtech_Searchanise</name>
|
4 |
+
<version>1.0.5</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>[!] Special prices are now properly shown.
|
14 |
+
[!] Fixed the issue with out of stock products not being shown in the instant search widget even if the option 'Display Out of Stock Products' was activated.
|
15 |
+
</notes>
|
16 |
<authors><author><name>Simbirsk Technologies, Ltd.</name><user>searchanise</user><email>sales@searchanise.com</email></author></authors>
|
17 |
+
<date>2013-04-17</date>
|
18 |
+
<time>06:38:19</time>
|
19 |
+
<contents><target name="magecommunity"><dir name="Simtech"><dir name="Searchanise"><dir name="Block"><file name="Async.php" hash="785f322f3558281a67fd7333ee3a2aa3"/><file name="Jsinit.php" hash="c9e2fe15101a7bae548d9bc66a262cbc"/><dir name="Product"><dir name="List"><file name="Toolbar.php" hash="31f25d6f1cd0fd2bc674868452f24e8d"/></dir><file name="Result.php" hash="aadf2d90370706221e4ec81e6ca2230c"/></dir><file name="Result.php" hash="b517362678b2d58e0a0a672704f71e45"/></dir><dir name="Helper"><file name="ApiSe.php" hash="6b03725e97adcee10cd2cd25a23b046e"/><file name="ApiXML.php" hash="1fcfda6891791a7e53b6a1a8c007d1a7"/><file name="Data.php" hash="0cd21dae3ff63fde0cde63c01c574bb0"/></dir><dir name="Model"><file name="Advanced.php" hash="2a22ebcf7ac75b54681ef8a27bad2e47"/><dir name="Config"><file name="Data.php" hash="6480db059eb8793ed852cbdda52104bf"/></dir><file name="Config.php" hash="bdd183c7191e5e1a6cce1136870ed7d8"/><dir name="Import"><dir name="Entity"><file name="Product.php" hash="10b5f619630e8e9dde2712f45dc96720"/></dir></dir><dir name="Layer"><dir name="Filter"><file name="Category.php" hash="46995073e2bee9e495e858c2abc48004"/><file name="Price.php" hash="743887b32bf012274ad8a371fff96411"/></dir></dir><file name="Layer.php" hash="5d0e4758496f418ac966ffddc7d71603"/><file name="LayerCatalogSearch.php" hash="d266fd19bc9ce67eb8d51b316a61e237"/><dir name="Mysql4"><dir name="Config"><file name="Collection.php" hash="bcdbd1b1f4a0d2bbe5274fb24f0e07fc"/></dir><file name="Config.php" hash="c95dc8ecd7ab4f955b6eaf4710ab960e"/><dir name="Queue"><file name="Collection.php" hash="0e4e96d850b2216743ae3b7121982e4f"/></dir><file name="Queue.php" hash="10980e1d42c6ecd7ec75a6c99939aed5"/></dir><file name="Observer.php" hash="d3e280696077f25220afcbcda2f6ee28"/><file name="Queue.php" hash="7087c8b4102bb7754e9c5e038b6c4734"/><file name="Request.php" hash="6a516d0aa27827ee4ed09d9c39afc59b"/><dir name="Resource"><dir name="Advanced"><file name="Collection.php" hash="8030ea455af831f8f2b8ee2082e1e279"/></dir><dir name="Fulltext"><file name="Collection.php" hash="2bf5ed879a58d031e00b151dbc8ce353"/></dir><file name="Fulltext.php" hash="75749316a96873ad93abe7b7a1a80f44"/><dir name="Layer"><dir name="Filter"><file name="Attribute.php" hash="441edc26dabf66ac8c54fec1017deb93"/><file name="Price.php" hash="ec59bb60d37da534f743d611ef29d23a"/></dir></dir><dir name="Product"><file name="Collection.php" hash="3d1c32935293993bae7b7bb3d3cbff0d"/><file name="CollectionTag.php" hash="c5da506f5a9a531db5ae7e86e0dbc4f2"/></dir><file name="Store.php" hash="a4bb5699cf0465527d770ef02b65153a"/></dir><dir name="System"><dir name="Config"><dir name="Source"><dir name="Searchanise"><file name="TypeAsync.php" hash="7fe496fcf3f7a1e8fb7f893c7df5f945"/></dir></dir></dir></dir><dir name="Tag"><file name="Relation.php" hash="b1e21c5ae54edc49733ef79444718ef8"/></dir></dir><dir name="controllers"><file name="AdvancedController.php" hash="b1e8e413e2ef091ba2a38646f4a41024"/><file name="AsyncController.php" hash="366acf6b073f2b6c8a62f40269dda27a"/><file name="CategoryController.php" hash="c0cca2e407b7f7030135e8ca28f72c48"/><file name="IndexController.php" hash="5a4d8fa9b6af7c30341e06908b31d0a0"/><file name="InfoController.php" hash="c5cfcf412c531e46a54815bafe10a62e"/><file name="OptionsController.php" hash="06ba71fb154553587f0232dbc621e0c7"/><file name="ProductController.php" hash="5a415866ea41579cd41e18a5ba6c31e3"/><file name="ResultController.php" hash="c0d16f0b842156452b0ed675cc231d94"/><file name="ResyncController.php" hash="0da7821921414f47e1a93a9add78f99d"/><file name="SignupController.php" hash="d92e9ee17048e6be0ef4eb51872a366e"/></dir><dir name="etc"><file name="config.xml" hash="e219f98e7575f6e31b5f9590864b61ba"/><file name="system.xml" hash="96db997b95983f7b35999ab04269d445"/></dir><dir name="sql"><dir name="searchanise_setup"><file name="mysql4-install-0.1.0.php" hash="5501c71c8733da0d89709a5f2f038737"/></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="8353ca387c5f92fee5b04b9317c5545c"/></dir></dir><dir name="layout"><file name="searchanise.xml" hash="f74d4b327ea41e831e55d41436e231bc"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="searchanise.xml" hash="81ba53d645c928c56c81a32cb1b02cec"/></dir></dir></dir><dir name="default"><dir name="default"><dir name="template"><dir name="catalogsearch"><file name="form.mini.phtml" hash="079357f1281938a20399ae778ff8279c"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Simtech_Searchanise.xml" hash="e216ff8182b9077b98ef7f80de4a3333"/></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>
|