slisearch - Version 2.0.6

Version Notes

Changes since last release:
* error logging if output to feed file fails
* feed generation with extension turned off
* EE 1.13.1.0 compatibility
* Child product Id in price feed for price variation across children

Download this release

Release Info

Developer Platform support
Extension slisearch
Version 2.0.6
Comparing to
See all releases


Code changes from version 2.0.4 to 2.0.6

app/code/local/SLI/Search/Helper/Data.php CHANGED
@@ -25,7 +25,10 @@ class SLI_Search_Helper_Data extends Mage_Core_Helper_Abstract {
25
  const JS_GROUP = "js/";
26
  const CRON_GROUP = "cron/";
27
  const ATTR_GROUP = "attributes/";
28
- const DEFAULT_ATTRS = "default_attributes/";
 
 
 
29
 
30
  /**
31
  * Returns true/false on whether or not the module is enabled
@@ -33,7 +36,18 @@ class SLI_Search_Helper_Data extends Mage_Core_Helper_Abstract {
33
  * @return boolean
34
  */
35
  public function isEnabled($store_id = 0) {
36
- return (bool) Mage::app()->getStore($store_id)->getConfig(self::SECTION . self::GENERAL_GROUP . 'enabled');
 
 
 
 
 
 
 
 
 
 
 
37
  }
38
 
39
  /**
25
  const JS_GROUP = "js/";
26
  const CRON_GROUP = "cron/";
27
  const ATTR_GROUP = "attributes/";
28
+ const DEFAULT_ATTRS = "default_attributes/";
29
+ const ENABLED = 1;
30
+ const DISABLED = 2;
31
+ const FEEDENABLED = 3;
32
 
33
  /**
34
  * Returns true/false on whether or not the module is enabled
36
  * @return boolean
37
  */
38
  public function isEnabled($store_id = 0) {
39
+ $enabled = Mage::app()->getStore($store_id)->getConfig(self::SECTION . self::GENERAL_GROUP . 'enabled');
40
+ return (bool) ($enabled == self::ENABLED) ? 1 : 0;
41
+ }
42
+
43
+ /**
44
+ * Returns true/false on whether or not the feed is enabled
45
+ *
46
+ * @return boolean
47
+ */
48
+ public function isFeedEnabled($store_id = 0) {
49
+ $feedEnabled = Mage::app()->getStore($store_id)->getConfig(self::SECTION . self::GENERAL_GROUP . 'enabled');
50
+ return (bool) ($feedEnabled != self::DISABLED) ? 1 : 0;
51
  }
52
 
53
  /**
app/code/local/SLI/Search/Helper/Feed.php CHANGED
@@ -79,18 +79,18 @@ class SLI_Search_Helper_Feed {
79
  try{
80
  $stores = Mage::getResourceModel('core/store_collection');
81
 
82
- // if(Mage::getStoreConfig('sli_search/feed/sequential')){
83
- // foreach($stores as $store){
84
- // $storeId = $store->getId();
85
- // Mage::getModel('sli_search/feed')->setData('store_id', $storeId)->generateFeed();
86
- // Mage::getModel('sli_search/feed')->setData('store_id', $storeId)->generateFeed(true);
87
- // }
88
- // }
89
- // else{
90
  foreach($stores as $store) {
91
  $this->postToGenerateFeed($store, $urlParts);
92
  }
93
- // }
94
  }
95
  catch (Exception $e) {
96
  Mage::logException($e);
79
  try{
80
  $stores = Mage::getResourceModel('core/store_collection');
81
 
82
+ if(Mage::getStoreConfig('sli_search/feed/sequential')){
83
+ foreach($stores as $store){
84
+ $storeId = $store->getId();
85
+ Mage::getModel('sli_search/feed')->setData('store_id', $storeId)->generateFeed();
86
+ Mage::getModel('sli_search/feed')->setData('store_id', $storeId)->generateFeed(true);
87
+ }
88
+ }
89
+ else{
90
  foreach($stores as $store) {
91
  $this->postToGenerateFeed($store, $urlParts);
92
  }
93
+ }
94
  }
95
  catch (Exception $e) {
96
  Mage::logException($e);
app/code/local/SLI/Search/Model/System/Config/Backend/Cron.php CHANGED
@@ -26,7 +26,7 @@ class SLI_Search_Model_System_Config_Backend_Cron extends Mage_Core_Model_Config
26
  * and time as a cron string to a parsable path that the crontab will pick up
27
  */
28
  protected function _afterSave() {
29
- $isEnabled = $this->getData('groups/general/fields/enabled/value');
30
 
31
  $frequency = $this->getData('groups/cron/fields/frequency/value');
32
  $time = $this->getData('groups/cron/fields/time/value');
26
  * and time as a cron string to a parsable path that the crontab will pick up
27
  */
28
  protected function _afterSave() {
29
+ $isEnabled = Mage::helper('sli_search')->isFeedEnabled();
30
 
31
  $frequency = $this->getData('groups/cron/fields/frequency/value');
32
  $time = $this->getData('groups/cron/fields/time/value');
app/code/local/SLI/Search/Model/System/Config/Backend/Enabledsetting.php ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2013 S.L.I. Systems, Inc. (www.sli-systems.com) - All Rights Reserved
4
+ * This file is part of Learning Search Connect.
5
+ * Learning Search Connect is distribute under license,
6
+ * go to www.sli-systems.com/LSC for full license details.
7
+ *
8
+ * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
9
+ * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
10
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
11
+ * PARTICULAR PURPOSE.
12
+ *
13
+ */
14
+
15
+ class SLI_Search_Model_System_Config_Backend_Enabledsetting {
16
+ /**
17
+ * Options getter
18
+ *
19
+ * @return array
20
+ */
21
+ public function toOptionArray()
22
+ {
23
+ return array(
24
+ array('value' => 1, 'label'=>Mage::helper('sli_search')->__('Enabled')),
25
+ array('value' => 2, 'label'=>Mage::helper('sli_search')->__('Disabled')),
26
+ array('value' => 3, 'label'=>Mage::helper('sli_search')->__('Only Feed Enabled')),
27
+ );
28
+ }
29
+
30
+ /**
31
+ * Get options in "key-value" format
32
+ *
33
+ * @return array
34
+ */
35
+ public function toArray()
36
+ {
37
+ return array(
38
+ 1 => Mage::helper('sli_search')->__('Enabled'),
39
+ 2 => Mage::helper('sli_search')->__('Disabled'),
40
+ 3 => Mage::helper('sli_search')->__('Only Feed Enabled'),
41
+ );
42
+ }
43
+ }
app/code/local/SLI/Search/etc/config.xml CHANGED
@@ -20,7 +20,7 @@
20
  <config>
21
  <modules>
22
  <SLI_Search>
23
- <version>2.0.4</version>
24
  </SLI_Search>
25
  </modules>
26
  <global>
@@ -92,16 +92,10 @@
92
  <path></path>
93
  </ftp>
94
  <js>
95
- <header>&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;
96
- var sliJsHost = ((&quot;https:&quot; == document.location.protocol) ? &quot;https://&quot; : &quot;http://&quot;);
97
- document.write(unescape('%3Clink rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;' + sliJsHost + 'assets.resultspage.com/js/rac/sli-rac.0.3.css&quot; /%3E'));
98
- document.write(unescape('%3Clink rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;' + sliJsHost + slibaseurl + '/rac/sli-rac.css&quot; /%3E'));
99
- &lt;/script&gt;</header>
100
- <footer>&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;
101
- document.write(unescape('%3Cscript src=&quot;' + sliJsHost + slibaseurl + '/rac/sli-rac.config.js&quot; type=&quot;text/javascript&quot;%3E%3C/script%3E'));
102
- &lt;/script&gt;</footer>
103
  <autocomplete></autocomplete>
104
- <domain>client.resultspage.com/search</domain>
105
  </js>
106
  <cron>
107
  <email></email>
20
  <config>
21
  <modules>
22
  <SLI_Search>
23
+ <version>2.0.6</version>
24
  </SLI_Search>
25
  </modules>
26
  <global>
92
  <path></path>
93
  </ftp>
94
  <js>
95
+ <header>&lt;!-- Please get configuration from SLI Systems !--&gt;</header>
96
+ <footer></footer>
 
 
 
 
 
 
97
  <autocomplete></autocomplete>
98
+ <domain></domain>
99
  </js>
100
  <cron>
101
  <email></email>
app/code/local/SLI/Search/etc/system.xml CHANGED
@@ -47,7 +47,7 @@
47
  <enabled translate="label">
48
  <label>Enabled</label>
49
  <frontend_type>select</frontend_type>
50
- <source_model>adminhtml/system_config_source_yesno</source_model>
51
  <sort_order>1</sort_order>
52
  <show_in_default>1</show_in_default>
53
  <show_in_website>1</show_in_website>
47
  <enabled translate="label">
48
  <label>Enabled</label>
49
  <frontend_type>select</frontend_type>
50
+ <source_model>sli_search/system_config_backend_enabledsetting</source_model>
51
  <sort_order>1</sort_order>
52
  <show_in_default>1</show_in_default>
53
  <show_in_website>1</show_in_website>
app/design/frontend/base/default/layout/sli/search.xml ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Copyright (c) 2013 S.L.I. Systems, Inc. (www.sli-systems.com) - All Rights Reserved
5
+ * This file is part of Learning Search Connect.
6
+ * Learning Search Connect is distribute under license,
7
+ * go to www.sli-systems.com/LSC for full license details.
8
+ *
9
+ * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
10
+ * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
11
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
12
+ * PARTICULAR PURPOSE.
13
+ *
14
+ * Layout xml to change out the search mini form with the SLI one, add the SLI
15
+ * header and footer javascript to all pages, and format the special SLI search
16
+ * template that they hit for design updates.
17
+ *
18
+ * @package SLI
19
+ * @subpackage Search
20
+ */
21
+ -->
22
+ <layout version="0.1.0">
23
+ <default>
24
+ <reference name="before_body_end">
25
+ <block type="sli_search/search_js_bottom" name="sli_search_bottom_js" />
26
+ </reference>
27
+ <reference name="head">
28
+ <block type="sli_search/search_js_top" name="sli_search_top_js" />
29
+ </reference>
30
+ <reference name="header">
31
+ <action method="unsetBlock"><block>top.search</block></action>
32
+ <block name="top.search" as="topSearch" type="sli_search/search_form_mini" template="catalogsearch/form.mini.phtml"/>
33
+ </reference>
34
+ </default>
35
+ <sli_search_search_template>
36
+ <reference name="root">
37
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
38
+ </reference>
39
+ <reference name="content">
40
+ <block type="core/text" name="sli_tags">
41
+ <action method="setText" module="sli_search"><text><![CDATA[ <!--SLIContent--><!--EndSLIContent--> ]]></text></action>
42
+ </block>
43
+ </reference>
44
+ </sli_search_search_template>
45
+ </layout>
app/design/frontend/base/default/template/sli/search/form.mini.phtml ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2013 S.L.I. Systems, Inc. (www.sli-systems.com) - All Rights Reserved
4
+ * This file is part of Learning Search Connect.
5
+ * Learning Search Connect is distribute under license,
6
+ * go to www.sli-systems.com/LSC for full license details.
7
+ *
8
+ * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
9
+ * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
10
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
11
+ * PARTICULAR PURPOSE.
12
+ *
13
+ * Search Mini Form for SLI.
14
+ * Provides search url to SLI hosted search solution and SLI provided autocomplete
15
+ * feature.
16
+ *
17
+ * @package SLI
18
+ * @subpackage Search
19
+ */
20
+ ?>
21
+ <form name="searchform" action="<?php echo $this->getSearchUrl() ?>" method="get" id="SliSearchProductForm" onsubmit="ajaxsearchsubmit(this);return false;">
22
+ <div class="form-search">
23
+ <label for="search">Search:</label>
24
+ <input type="hidden" name="p" value="Q" />
25
+ <input type="hidden" name="asug" />
26
+ <input type="text" name="w" id="sli_search_1" class="input-text" autocomplete="off" size="20"/>
27
+ <button type="submit" title="<?php echo $this->__('Search') ?>" class="button"><span><span><?php echo $this->__('Search') ?></span></span></button>
28
+ </div>
29
+ <script type="text/javascript">
30
+ //<![CDATA[
31
+ var searchForm = new Varien.searchForm('SliSearchProductForm', 'sli_search_1', '<?php echo $this->__('Search entire store here...') ?>');
32
+ //]]>
33
+ </script>
34
+ </form>
35
+ <?php echo $this->getInlineAutocompleteJs(); ?>
36
+ <script type="text/javascript">
37
+ function ajaxsearchsubmit(form){
38
+ var search = encodeURIComponent(form.w.value);
39
+ if (ajaxsearch) {
40
+ window.location=slibaseurlsearch+"#w="+search
41
+ } else {
42
+ var asug = encodeURIComponent(form.asug.value);
43
+ window.location=slibaseurlsearch+"?w="+search+"&asug="+asug;
44
+
45
+ }
46
+ return false;
47
+ }
48
+ </script>
49
+
50
+
package.xml CHANGED
@@ -1,139 +1,22 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>slisearch</name>
4
- <version>2.0.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://sli-systems.com/lsc">SLI Feed Generation</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>LSC integrates Magento with SLI's SaaS based Learning Search, Learning Navigation and user based SEO products.</summary>
10
- <description>&lt;p&gt;Learning Search Connect (LSC) produces data feeds out of current Magento Community and Enterprise editions. The feeds are created and then sent to SLI's FTP servers for further processing.&lt;/p&gt;&#xD;
11
- &lt;p&gt;Any information required to power SLI's SaaS based product family is contained in the feed.&lt;/p&gt;&#xD;
12
- &lt;p&gt;Other than feed creation LSC provides the following features:&#xD;
13
- &lt;li&gt;When active it replaces the Magento built in Catalog Search with SLI-Systems' award winning Learning Search. Your site visitors on entering search terms will be served search results that were created by SLI-Systems.&lt;/li&gt;&#xD;
14
- &lt;li&gt;It exposes a URL to the Magento site's template page so that SLI's search results page can be styled to exactly match your Magento implementation's look and feel.&lt;/li&gt;&#xD;
15
- &lt;/p&gt;&#xD;
16
- &#xD;
17
- &#xD;
18
- The data in the feed can be used for the following SLI products and services:&#xD;
19
- &lt;li&gt;&#xD;
20
- &lt;a href="http://www.sli-systems.com/solutions/site-search"&gt;Learning Search for eCommerce Retail Sites&lt;/a&gt;&#xD;
21
- &lt;/li&gt;&#xD;
22
- &lt;li&gt;&#xD;
23
- &lt;a href="http://www.sli-systems.com/solutions/navigation"&gt;Learning Navigation for eCommerce Retail Sites&lt;/a&gt;&#xD;
24
- &lt;/li&gt;&#xD;
25
- &lt;li&gt;&#xD;
26
- &lt;a href="http://www.sli-systems.com/solutions/site-champion"&gt;Site Champion: User-Generated SEO&lt;/a&gt;&#xD;
27
- &lt;/li&gt;&#xD;
28
- &lt;li&gt;&#xD;
29
- &lt;a href="http://www.sli-systems.com/solutions/mobile-site-search"&gt;Site Search for Mobile Devices&lt;/a&gt;&#xD;
30
- &lt;/li&gt;&#xD;
31
- &lt;li&gt;24x7 support&#xA0;&lt;/li&gt;&#xD;
32
- &lt;li&gt;Other features include:&#xD;
33
- &lt;ul&gt;&#xD;
34
- &lt;li&gt;&#xD;
35
- &lt;a href="http://www.sli-systems.com/solutions/merchandising"&gt;SLI Merchandising&lt;/a&gt;&#xD;
36
- &lt;/li&gt;&#xD;
37
- &lt;li&gt;&#xD;
38
- &lt;a href="http://www.sli-systems.com/solutions/multivariate-testing"&gt;Conversion Optimizer for A/B and Multivariate Testing&lt;/a&gt;&#xD;
39
- &lt;/li&gt;&#xD;
40
- &lt;li&gt;Comprehensive reporting system&lt;/li&gt;&#xD;
41
- &lt;li&gt;Rich Auto Complete&lt;/li&gt;&#xD;
42
- &lt;li&gt;AJAX search&lt;/li&gt;&#xD;
43
- &lt;/ul&gt;&#xD;
44
- &lt;/li&gt;&#xD;
45
- &#xD;
46
- &#xD;
47
- &#xD;
48
- Learning Search Connect has the following capabilities&#xD;
49
- &lt;div&gt;&#xD;
50
- &lt;ul&gt;&#xD;
51
- &lt;li&gt;Store specific feeds&lt;/li&gt;&#xD;
52
- &lt;li&gt;Optional separate price feed in case advanced price finding mechanisms (such as catalog price rules) are used in the implementation&lt;/li&gt;&#xD;
53
- &lt;li&gt;Replacement of the Magento built in catalogsearch form with the SLI search form&lt;/li&gt;&#xD;
54
- &lt;li&gt;&#xD;
55
- &lt;span&gt;Very fast generation of feeds&lt;/span&gt;&#xD;
56
- &lt;/li&gt;&#xD;
57
- &lt;li&gt;Optional backup of feeds&lt;/li&gt;&#xD;
58
- &lt;li&gt;Optional FTP&lt;/li&gt;&#xD;
59
- &lt;li&gt;Scheduling of feed generation&lt;/li&gt;&#xD;
60
- &lt;li&gt;Triggering of feed generation via command line interface&lt;/li&gt;&#xD;
61
- &lt;li&gt;Support for Parent Child relationships (via associated products and super attributes)&lt;/li&gt;&#xD;
62
- &lt;li&gt;Price Ranges on the parent product&lt;/li&gt;&#xD;
63
- &lt;li&gt;Inventory information&lt;/li&gt;&#xD;
64
- &lt;li&gt;Stock information&lt;/li&gt;&#xD;
65
- &lt;li&gt;Multiple, tiered categories per feed&lt;/li&gt;&#xD;
66
- &lt;li&gt;Support for advanced price finding mechanisms:&#xD;
67
- &lt;ul&gt;&#xD;
68
- &lt;li&gt;Price range on parent products&lt;/li&gt;&#xD;
69
- &lt;li&gt;special price with date range&lt;/li&gt;&#xD;
70
- &lt;li&gt;Catalog Price Rules (full support, including customer group specific prices)&lt;/li&gt;&#xD;
71
- &lt;li&gt;Tiered prices&lt;/li&gt;&#xD;
72
- &lt;li&gt;Group/Bundle prices&lt;/li&gt;&#xD;
73
- &lt;/ul&gt;&#xD;
74
- &lt;/li&gt;&#xD;
75
- &lt;li&gt;Configurable list of attributes to be added into the feed&lt;/li&gt;&#xD;
76
- &lt;/ul&gt;&#xD;
77
- Request a Demo&#xD;
78
- &lt;/div&gt;&#xD;
79
- &lt;div&gt;&#xD;
80
- &lt;div class="lpeCElement Rich_Text_2"&gt;&#xD;
81
- &lt;span&gt;See a live demo and find out how SLI can help you with easy to use site search and merchandising. Discover why others make the switch and use powerful technology that continuously "learns" from past site search activity by tracking visitors' aggregate search queries and click-throughs.&#xA0;&lt;/span&gt;&#xD;
82
- &lt;/div&gt;&#xD;
83
- &lt;div&gt;&#xD;
84
- &lt;p&gt;You can request a demo by clicking on this link:&#xA0;&lt;a href="http://sitesearch.sli-systems.com/Request-Demo.html"&gt;Request a Demo&lt;/a&gt;&#xD;
85
- &lt;/p&gt;&#xD;
86
- &lt;/div&gt;&#xD;
87
- &lt;/div&gt;&#xD;
88
- &lt;div&gt;&#xD;
89
- &lt;div class="lpeCElement Rich_Text_1"&gt;&#xD;
90
- &#xD;
91
- &lt;span&gt;&#xD;
92
- &lt;a href="mailto:discovery@sli-systems.com" title="Send us an e-mail"&gt;&#xD;
93
- &lt;span style="color: rgb(0,0,0);"&gt;Send us an e-mail&lt;/span&gt;&#xD;
94
- &lt;/a&gt;&#xD;
95
- &lt;/span&gt;&#xD;
96
- &#xD;
97
- &lt;p&gt;&#xD;
98
- &lt;span&gt;&#xD;
99
- &lt;span style="color: rgb(0,0,0);"&gt;&#xD;
100
- &lt;a href="mailto:discovery@sli-systems.com"&gt;discovery@sli-systems.com&lt;/a&gt;&#xD;
101
- &lt;/span&gt;&#xD;
102
- &lt;/span&gt;&#xD;
103
- &lt;/p&gt;&#xD;
104
- &#xD;
105
- &lt;span&gt;&#xD;
106
- &lt;span style="color: rgb(0,0,0);"&gt;Call us&lt;/span&gt;&#xD;
107
- &lt;/span&gt;&#xD;
108
- &#xD;
109
- &lt;/div&gt;&#xD;
110
- &lt;div&gt;&#xD;
111
- &lt;p&gt;&#xD;
112
- &lt;strong&gt;USA -&#xA0;&lt;/strong&gt;Toll Free: (866) 240-2812&lt;/p&gt;&#xD;
113
- &lt;p&gt;&#xD;
114
- &lt;strong&gt;United Kingdom -&#xA0;&lt;/strong&gt;&#xD;
115
- &lt;span&gt;Toll Free: 0800 032 4783&lt;/span&gt;&#xD;
116
- &lt;/p&gt;&#xD;
117
- &lt;p&gt;&#xD;
118
- &lt;strong&gt;Australia -&#xA0;&lt;/strong&gt;Toll Free: 1800 139 190&lt;/p&gt;&#xD;
119
- &lt;p&gt;&#xD;
120
- &lt;strong&gt;New Zealand -&#xA0;&lt;/strong&gt;Toll Free: 0800 SLI SYS (0800 754 797)&lt;/p&gt;&#xD;
121
- Important Notice:&#xD;
122
- &lt;p&gt;Please be aware that the extension provided here is reduced in functionality. This extension will allow you to replace the Magento Built in Catalog Search with Search hosted by SLI. It will expose the Magento site template URL. However feed creation is limited to determining the number of products that would be in the feed if the full version was used. Please contact us for the full version of LSC.&lt;/p&gt;&#xD;
123
- &lt;/div&gt;&#xD;
124
- &lt;/div&gt;</description>
125
- <notes>Below the list of changes since the last version:&#xD;
126
- a) Store level ftp and attribute configuration.&#xD;
127
- b) CRON jobs can be disabled.&#xD;
128
- c) Support for linked products.&#xD;
129
- d) Feeds can be produced seqentially.&#xD;
130
- e) Feed origin information in the root element&#xD;
131
- and some bug fixes&#xD;
132
- f) Support for catalog price rule actions on sub-products</notes>
133
- <authors><author><name>SLI-Systems</name><user>SLISystems</user><email>support@sli-systems.com</email></author></authors>
134
- <date>2013-09-26</date>
135
- <time>22:42:10</time>
136
- <contents><target name="magelocal"><dir name="SLI"><dir name="Search"><dir name="Block"><dir name="Search"><dir name="Form"><file name="Mini.php" hash="7abb2d4708fae5018a214c3c04c626bf"/></dir><dir name="Js"><file name="Bottom.php" hash="702dd219952b047ba47c4931f3e12344"/><file name="Top.php" hash="be80119d48facedc599fadb7f15738a7"/></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><dir name="Minigrid"><file name="Js.php" hash="1a9a5a3c880c11f6e99ba53956ec7101"/></dir><file name="Minigrid.php" hash="3f0810444f875bf8502ef79742a314e4"/><file name="Version.php" hash="72bcde22f1eaa0e2f8fafd3e00d717e4"/></dir></dir><file name="Form.php" hash="4a1551d259ef3510cb803cb02a026083"/><dir name="Frontend"><dir name="Feed"><dir name="Generate"><file name="Js.php" hash="3ba76026119adb36aed4d1d052eb464c"/></dir><file name="Generate.php" hash="3ad8446e6650c5d3562574f294b4bcef"/><file name="Next.php" hash="008c3d9351c50712ea4d2b76531e0bb4"/></dir></dir></dir></dir><dir name="Widget"><dir name="Minigrid"><file name="Form.php" hash="014ef14b01cbafc9cd305e9a1caf82ae"/></dir></dir></dir><file name="Exception.php" hash="6a8fc0cab1826df68df2e447d2152e58"/><dir name="Helper"><file name="Data.php" hash="cc1ba30e326624ba85d3d7b89d480afc"/><file name="Feed.php" hash="82e81303da41497a59c974d25f7d3bb8"/></dir><dir name="Model"><file name="Cron.php" hash="77ade7fc8aaeb1be0dc326ad2b0a884f"/><file name="Email.php" hash="701049238dca1a452e67d7bcc0d77f00"/><file name="Feed.php" hash="8d99140347d164e59e3258cd44ddf846"/><dir name="System"><dir name="Config"><dir name="Backend"><file name="Cron.php" hash="320f7eb3a1be3e309b2ded0bfe0b7c5e"/><file name="Loglevel.php" hash="31b58bfdf479b9de2380f3d741bd3175"/><file name="Minigrid.php" hash="a899cfbc25c573846b735e1170970c99"/></dir><dir name="Source"><file name="Attributes.php" hash="3c6081453f2e499952907412b79b6250"/><dir name="Minigrid"><file name="Abstract.php" hash="3f65ae2dd959bb8583cfcffb0109cffa"/><file name="Attributes.php" hash="7a97225139a38a4a0576538293980187"/></dir></dir></dir></dir></dir><dir name="controllers"><file name="SearchController.php" hash="44422b8daf76199590dd0d7cbfb4a76c"/></dir><dir name="doc"><file name="changelog.txt" hash="93ac6e72c6dbfb91e3ee2f2c2701d865"/><file name="design.txt" hash="ff939b286de699aed45c6d6ad103cd5c"/><file name="makeTar.txt" hash="ef75554f12dde147891fea285a7f6bc0"/></dir><file name="dropdown.sql" hash="dc15502900071cb30caa144ddeb21a0d"/><dir name="etc"><file name="adminhtml.xml" hash="868b799465f118e2212bcff9048994bb"/><file name="config.xml" hash="952995b4744bdf90c75de60ffb147b4b"/><file name="system.xml" hash="f935a8076a8382d5d1b99e9f505d6987"/></dir><dir name="sql"><dir name="sli_search_setup"><file name="install-1.0.0.php" hash="8b5dd72380e039eb124b804657086f77"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="sli"><dir name="search"><dir name="sysconfig"><dir name="generate"><file name="js.phtml" hash=""/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="SLI_Search.xml" hash=""/></dir></target><target name="mage"><dir name="shell"><dir name="sli"><file name="feed.php" hash=""/></dir></dir></target></contents>
137
  <compatible/>
138
  <dependencies><required><php><min>5.3.19</min><max>5.5.0</max></php></required></dependencies>
139
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>slisearch</name>
4
+ <version>2.0.6</version>
5
  <stability>stable</stability>
6
  <license uri="http://sli-systems.com/lsc">SLI Feed Generation</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>LSC integrates Magento with SLI's SaaS based Learning Search, Learning Navigation and user based SEO products.</summary>
10
+ <description>Learning Search Connect (LSC) produces data feeds out of current Magento Community and Enterprise editions. The feeds are created and then sent to SLI's FTP servers for further processing.</description>
11
+ <notes>Changes since last release:&#xD;
12
+ * error logging if output to feed file fails&#xD;
13
+ * feed generation with extension turned off&#xD;
14
+ * EE 1.13.1.0 compatibility&#xD;
15
+ * Child product Id in price feed for price variation across children</notes>
16
+ <authors><author><name>Platform support</name><user>SLI-Systems</user><email>support@sli-system.com</email></author></authors>
17
+ <date>2014-05-19</date>
18
+ <time>06:13:56</time>
19
+ <contents><target name="magelocal"><dir name="SLI"><dir name="Search"><dir name="Block"><dir name="Search"><dir name="Form"><file name="Mini.php" hash="7abb2d4708fae5018a214c3c04c626bf"/></dir><dir name="Js"><file name="Bottom.php" hash="702dd219952b047ba47c4931f3e12344"/><file name="Top.php" hash="be80119d48facedc599fadb7f15738a7"/></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><dir name="Minigrid"><file name="Js.php" hash="1a9a5a3c880c11f6e99ba53956ec7101"/></dir><file name="Minigrid.php" hash="3f0810444f875bf8502ef79742a314e4"/><file name="Version.php" hash="72bcde22f1eaa0e2f8fafd3e00d717e4"/></dir></dir><file name="Form.php" hash="4a1551d259ef3510cb803cb02a026083"/><dir name="Frontend"><dir name="Feed"><dir name="Generate"><file name="Js.php" hash="3ba76026119adb36aed4d1d052eb464c"/></dir><file name="Generate.php" hash="3ad8446e6650c5d3562574f294b4bcef"/><file name="Next.php" hash="008c3d9351c50712ea4d2b76531e0bb4"/></dir></dir></dir></dir><dir name="Widget"><dir name="Minigrid"><file name="Form.php" hash="014ef14b01cbafc9cd305e9a1caf82ae"/></dir></dir></dir><file name="Exception.php" hash="6a8fc0cab1826df68df2e447d2152e58"/><dir name="Helper"><file name="Data.php" hash="7eb1ffdaa0bbc13e2f7924b0e1c78f19"/><file name="Feed.php" hash="2b376df484f19339d49d755a7d3768f2"/></dir><dir name="Model"><file name="Cron.php" hash="77ade7fc8aaeb1be0dc326ad2b0a884f"/><file name="Email.php" hash="701049238dca1a452e67d7bcc0d77f00"/><file name="Feed.php" hash="8d99140347d164e59e3258cd44ddf846"/><dir name="System"><dir name="Config"><dir name="Backend"><file name="Cron.php" hash="ae282d6bfc5e22e7c3320d581465f24d"/><file name="Enabledsetting.php" hash="059ac548a388b8ca02147d0d317f7bb5"/><file name="Loglevel.php" hash="31b58bfdf479b9de2380f3d741bd3175"/><file name="Minigrid.php" hash="a899cfbc25c573846b735e1170970c99"/></dir><dir name="Source"><file name="Attributes.php" hash="3c6081453f2e499952907412b79b6250"/><dir name="Minigrid"><file name="Abstract.php" hash="3f65ae2dd959bb8583cfcffb0109cffa"/><file name="Attributes.php" hash="7a97225139a38a4a0576538293980187"/></dir></dir></dir></dir></dir><dir name="controllers"><file name="SearchController.php" hash="44422b8daf76199590dd0d7cbfb4a76c"/></dir><dir name="doc"><file name="changelog.txt" hash="93ac6e72c6dbfb91e3ee2f2c2701d865"/><file name="design.txt" hash="ff939b286de699aed45c6d6ad103cd5c"/><file name="makeTar.txt" hash="ef75554f12dde147891fea285a7f6bc0"/></dir><file name="dropdown.sql" hash="dc15502900071cb30caa144ddeb21a0d"/><dir name="etc"><file name="adminhtml.xml" hash="868b799465f118e2212bcff9048994bb"/><file name="config.xml" hash="3fa09cfd3209a621fc0391b4b7f374ec"/><file name="system.xml" hash="7b4e9e3fd6d12ed8aa98fd20b2dfb96c"/></dir><dir name="sql"><dir name="sli_search_setup"><file name="install-1.0.0.php" hash="8b5dd72380e039eb124b804657086f77"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="sli"><dir name="search"><dir name="sysconfig"><dir name="generate"><file name="js.phtml" hash="1c319107ff81a345b1a74e35db7e9345"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="sli"><file name="search.xml" hash="577634295563f34597cbbde6978d56d1"/></dir></dir><dir name="template"><dir name="sli"><dir name="search"><file name="form.mini.phtml" hash="5778ded4b39229cc77ab4906b740c94e"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="SLI_Search.xml" hash="69e7e36c854f81f58e6445324aa37021"/></dir></target><target name="mage"><dir name="shell"><dir name="sli"><file name="feed.php" hash="567397aaa41212659be97b3e9d5663b6"/></dir></dir></target></contents>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  <compatible/>
21
  <dependencies><required><php><min>5.3.19</min><max>5.5.0</max></php></required></dependencies>
22
  </package>
shell/sli/feed.php CHANGED
@@ -9,7 +9,7 @@
9
  * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
10
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
11
  * PARTICULAR PURPOSE.
12
- *
13
  *
14
  * @package SLI
15
  * @subpackage Search
@@ -30,12 +30,13 @@ class SLI_Search_Shell_Feed extends Mage_Shell_Abstract {
30
  $id = $this->getArg('store');
31
  if (!is_bool($id)) {
32
  Mage::getModel('sli_search/feed')->setData('store_id', $id)->generateFeed(); //Standard feed
 
33
  echo "Feed generated for store $id.\n";
34
  return true;
35
  }
36
  else if (count($this->_args) == 1){
37
- Mage::getModel('sli_search/feed')->setData('store_id', 1)->generateFeed(); //Standard feed
38
- echo "Feed generated for store 1.\n";
39
  return true;
40
  }
41
  }
@@ -71,4 +72,4 @@ USAGE;
71
  }
72
 
73
  $sliSearchFeed = new SLI_Search_Shell_Feed();
74
- $sliSearchFeed->run();
9
  * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
10
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
11
  * PARTICULAR PURPOSE.
12
+ *
13
  *
14
  * @package SLI
15
  * @subpackage Search
30
  $id = $this->getArg('store');
31
  if (!is_bool($id)) {
32
  Mage::getModel('sli_search/feed')->setData('store_id', $id)->generateFeed(); //Standard feed
33
+ Mage::getModel('sli_search/feed')->setData('store_id', $id)->generateFeed(true); //Price feed
34
  echo "Feed generated for store $id.\n";
35
  return true;
36
  }
37
  else if (count($this->_args) == 1){
38
+ Mage::helper('sli_search/feed')->generateFeedsForAllStores();
39
+ echo "Generating feeds for all stores.\n";
40
  return true;
41
  }
42
  }
72
  }
73
 
74
  $sliSearchFeed = new SLI_Search_Shell_Feed();
75
+ $sliSearchFeed->run();