Version Notes
- Multi storeview content pages support added
Download this release
Release Info
| Developer | Niels - Rejuni |
| Extension | wiser_search |
| Version | 1.0.8 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.7 to 1.0.8
app/code/community/Wiser/Search/Model/Observer.php
CHANGED
|
@@ -77,7 +77,38 @@ class Wiser_Search_Model_Observer
|
|
| 77 |
//
|
| 78 |
$this->callInstallUrl();
|
| 79 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
|
| 82 |
private function callInstallUrl(){
|
| 83 |
$target_url = "http://search.wiser.nl/wisersearch_webhook.aspx";
|
| 77 |
//
|
| 78 |
$this->callInstallUrl();
|
| 79 |
}
|
| 80 |
+
|
| 81 |
+
if(Mage::getStoreConfig('wiser_search/wiser_search_group/installation_status') !== "installed")
|
| 82 |
+
{
|
| 83 |
+
$status = $this->getInstallationStatus();
|
| 84 |
+
Mage::getModel('core/config')->saveConfig('wiser_search/wiser_search_group/installation_status', $status);
|
| 85 |
+
}
|
| 86 |
}
|
| 87 |
+
|
| 88 |
+
private function getInstallationStatus(){
|
| 89 |
+
$target_url = Mage::getStoreConfig('wiser_search/wiser_search_group/webhook') . "?mode=getstats";
|
| 90 |
+
|
| 91 |
+
$header = array(
|
| 92 |
+
"Authorization: Basic " . base64_encode( Mage::getStoreConfig('wiser_search/wiser_search_group/api_key') . ":" ),
|
| 93 |
+
"Content-type: text/plain"
|
| 94 |
+
);
|
| 95 |
+
|
| 96 |
+
$ch = curl_init();
|
| 97 |
+
curl_setopt($ch, CURLOPT_URL,$target_url);
|
| 98 |
+
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
|
| 99 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
|
| 100 |
+
|
| 101 |
+
$result=curl_exec ($ch);
|
| 102 |
+
|
| 103 |
+
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
| 104 |
+
|
| 105 |
+
curl_close ($ch);
|
| 106 |
+
if( $status == 200) {
|
| 107 |
+
$data = json_decode($result);
|
| 108 |
+
return $data->general->installation_status;
|
| 109 |
+
}
|
| 110 |
+
return "Unable to connect to " . $target_url;
|
| 111 |
+
}
|
| 112 |
|
| 113 |
private function callInstallUrl(){
|
| 114 |
$target_url = "http://search.wiser.nl/wisersearch_webhook.aspx";
|
app/code/community/Wiser/Search/controllers/IndexController.php
CHANGED
|
@@ -27,7 +27,7 @@ class Wiser_Search_IndexController extends Mage_Core_Controller_Front_Action {
|
|
| 27 |
$helper = Mage::helper('cms');
|
| 28 |
$processor = $helper->getPageTemplateProcessor();
|
| 29 |
|
| 30 |
-
foreach( Mage::getModel('cms/page')->
|
| 31 |
$_Page = array();
|
| 32 |
|
| 33 |
$_Page['id'] = $iPage->getId();
|
| 27 |
$helper = Mage::helper('cms');
|
| 28 |
$processor = $helper->getPageTemplateProcessor();
|
| 29 |
|
| 30 |
+
foreach( Mage::getModel('cms/page')->getCollection()->addStoreFilter($storeId) as $iPage ){
|
| 31 |
$_Page = array();
|
| 32 |
|
| 33 |
$_Page['id'] = $iPage->getId();
|
app/code/community/Wiser/Search/etc/config.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<Wiser_Search>
|
| 5 |
-
<version>1.0.
|
| 6 |
</Wiser_Search>
|
| 7 |
</modules>
|
| 8 |
<global>
|
|
@@ -54,7 +54,7 @@
|
|
| 54 |
<default>
|
| 55 |
<wiser_search>
|
| 56 |
<wiser_search_group>
|
| 57 |
-
<extension_version>1.0.
|
| 58 |
</wiser_search_group>
|
| 59 |
</wiser_search>
|
| 60 |
</default>
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<Wiser_Search>
|
| 5 |
+
<version>1.0.8</version>
|
| 6 |
</Wiser_Search>
|
| 7 |
</modules>
|
| 8 |
<global>
|
| 54 |
<default>
|
| 55 |
<wiser_search>
|
| 56 |
<wiser_search_group>
|
| 57 |
+
<extension_version>1.0.8</extension_version>
|
| 58 |
</wiser_search_group>
|
| 59 |
</wiser_search>
|
| 60 |
</default>
|
app/code/community/Wiser/Search/etc/system.xml
CHANGED
|
@@ -31,6 +31,15 @@
|
|
| 31 |
<show_in_website>1</show_in_website>
|
| 32 |
<show_in_store>1</show_in_store>
|
| 33 |
</extension_version>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
<disabled translate="label">
|
| 35 |
<label>Disabled:</label>
|
| 36 |
<comment><![CDATA[ Disables Wiser Search ]]></comment>
|
| 31 |
<show_in_website>1</show_in_website>
|
| 32 |
<show_in_store>1</show_in_store>
|
| 33 |
</extension_version>
|
| 34 |
+
<installation_status translate="label">
|
| 35 |
+
<label>Installation status:</label>
|
| 36 |
+
<frontend_type>label</frontend_type>
|
| 37 |
+
<comment><![CDATA[ Current installation status for Wiser Search, installation might take up to one hour. ]]></comment>
|
| 38 |
+
<sort_order>10</sort_order>
|
| 39 |
+
<show_in_default>1</show_in_default>
|
| 40 |
+
<show_in_website>1</show_in_website>
|
| 41 |
+
<show_in_store>1</show_in_store>
|
| 42 |
+
</installation_status>
|
| 43 |
<disabled translate="label">
|
| 44 |
<label>Disabled:</label>
|
| 45 |
<comment><![CDATA[ Disables Wiser Search ]]></comment>
|
package.xml
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>wiser_search</name>
|
| 4 |
-
<version>1.0.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/gpl-license.php">GPL</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Quickly have your search results on screen while typing, advanced statistics and advanced layered navigation</summary>
|
| 10 |
<description>Show search results to your customers while typing, indexes both products and pages. Allows the webshop administrator to view advanced search statistics.</description>
|
| 11 |
-
<notes>-
|
| 12 |
<authors><author><name>Niels - Rejuni</name><user>niels</user><email>niels@rejuni.nl</email></author><author><name>Remco - Rejuni</name><user>remco</user><email>remco@rejuni.nl</email></author></authors>
|
| 13 |
-
<date>2016-
|
| 14 |
-
<time>08:
|
| 15 |
-
<contents><target name="magecommunity"><dir name="Wiser"><dir name="Search"><dir name="Helper"><file name="Data.php" hash="d127ac82b4dd20580f24d1bdc0eb9349"/><file name="ProductData.php" hash="c25735016b815edb0ad9e6189b4e9a17"/><file name="SimpleXml.php" hash="ee3906507dd83a9b540e5fb2afaf767e"/><file name="XmlFeed.php" hash="10a19d78c67c8cb85a5aada89ef0cf03"/></dir><dir name="Model"><file name="Observer.php" hash="
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.4.0.</min><max>7.0.2.</max></php></required></dependencies>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>wiser_search</name>
|
| 4 |
+
<version>1.0.8</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/gpl-license.php">GPL</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Quickly have your search results on screen while typing, advanced statistics and advanced layered navigation</summary>
|
| 10 |
<description>Show search results to your customers while typing, indexes both products and pages. Allows the webshop administrator to view advanced search statistics.</description>
|
| 11 |
+
<notes>- Multi storeview content pages support added</notes>
|
| 12 |
<authors><author><name>Niels - Rejuni</name><user>niels</user><email>niels@rejuni.nl</email></author><author><name>Remco - Rejuni</name><user>remco</user><email>remco@rejuni.nl</email></author></authors>
|
| 13 |
+
<date>2016-07-30</date>
|
| 14 |
+
<time>08:47:04</time>
|
| 15 |
+
<contents><target name="magecommunity"><dir name="Wiser"><dir name="Search"><dir name="Helper"><file name="Data.php" hash="d127ac82b4dd20580f24d1bdc0eb9349"/><file name="ProductData.php" hash="c25735016b815edb0ad9e6189b4e9a17"/><file name="SimpleXml.php" hash="ee3906507dd83a9b540e5fb2afaf767e"/><file name="XmlFeed.php" hash="10a19d78c67c8cb85a5aada89ef0cf03"/></dir><dir name="Model"><file name="Observer.php" hash="e49cadb4943c313261dd9e2515712990"/></dir><dir name="controllers"><file name="IndexController.php" hash="ba3c6190f42fdf7a2c023bc73bc0a762"/></dir><dir name="etc"><file name="config.xml" hash="35988ddeb10fb67b0b0be61d1a7a1f62"/><file name="system.xml" hash="5a299551f98cd4800bc8b0a8da822dce"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Wiser_Search.xml" hash="4a518f78635b9e09b5b907a096b1ae91"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="wiser_search.xml" hash="f66cf33d0e88676e86bba6f0c561e485"/></dir><dir name="template"><dir name="wiser_search"><file name="conversion.phtml" hash="01671ab852225eec8384d9faae183be9"/></dir></dir></dir></dir></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.4.0.</min><max>7.0.2.</max></php></required></dependencies>
|
| 18 |
</package>
|
