HawkSearch_Datafeed - Version 1.0.3.1

Version Notes

Added debug logging, category url to hierarchy file.

Download this release

Release Info

Developer Hawksearch Inc.
Extension HawkSearch_Datafeed
Version 1.0.3.1
Comparing to
See all releases


Code changes from version 1.0.3.0 to 1.0.3.1

app/code/community/Hawksearch/Datafeed/Model/Feed.php CHANGED
@@ -499,6 +499,7 @@ EOSQL;
499
  }
500
  }
501
 
 
502
  $this->r_find($rcid, $cats, $myCategories);
503
 
504
  foreach($myCategories as $final) {
@@ -827,11 +828,17 @@ EOSQL;
827
 
828
  public function generateFeed() {
829
  try {
830
- $sid = Mage::app()->getWebsite()->getDefaultGroup()->getDefaultStoreId();
831
- $h = Mage::helper("hawksearch_proxy");
832
- if (!empty($h)) {
833
- $sid = $h->getCategoryStoreId();
834
- }
 
 
 
 
 
 
835
 
836
  $this->log('starting environment for store id: ' . $sid);
837
  /** @var Mage_Core_Model_App_Emulation $appEmulation */
@@ -866,11 +873,12 @@ EOSQL;
866
 
867
  public function refreshImageCache($storeid = null) {
868
  $this->log('starting refreshImageCache()');
869
- $sid = Mage::app()->getWebsite()->getDefaultGroup()->getDefaultStoreId();
870
- $h = Mage::helper("hawksearch_proxy");
871
- if (!empty($h)) {
872
- $sid = $h->getCategoryStoreId();
873
- }
 
874
 
875
  $this->log('starting environment for store id: ' . $sid);
876
 
499
  }
500
  }
501
 
502
+ $this->log("using root category id: $rcid");
503
  $this->r_find($rcid, $cats, $myCategories);
504
 
505
  foreach($myCategories as $final) {
828
 
829
  public function generateFeed() {
830
  try {
831
+ $sid = Mage::app()->getDefaultStoreView()->getId();
832
+ // for working with proxy module
833
+
834
+ // $code = Mage::getStoreConfig('hawksearch_proxy/proxy/store_code');
835
+ // if(!empty($code)) {
836
+ // /** @var Mage_Core_Model_Resource_Store_Collection $store */
837
+ // $store = Mage::getModel('core/store')->getCollection();
838
+ // $sid = $store->addFieldToFilter('code', $code)->getFirstItem()->getId();
839
+ // }
840
+
841
+ // end proxy module connection
842
 
843
  $this->log('starting environment for store id: ' . $sid);
844
  /** @var Mage_Core_Model_App_Emulation $appEmulation */
873
 
874
  public function refreshImageCache($storeid = null) {
875
  $this->log('starting refreshImageCache()');
876
+ // $sid = Mage::app()->getWebsite()->getDefaultGroup()->getDefaultStoreId();
877
+ // $h = Mage::helper("hawksearch_proxy");
878
+ // if (!empty($h)) {
879
+ // $sid = $h->getCategoryStoreId();
880
+ // }
881
+ $sid = Mage::app()->getDefaultStoreView()->getId();
882
 
883
  $this->log('starting environment for store id: ' . $sid);
884
 
app/code/community/Hawksearch/Datafeed/etc/config.xml CHANGED
@@ -12,7 +12,7 @@
12
  <config>
13
  <modules>
14
  <Hawksearch_Datafeed>
15
- <version>1.0.3.0</version>
16
  </Hawksearch_Datafeed>
17
  </modules>
18
  <global>
12
  <config>
13
  <modules>
14
  <Hawksearch_Datafeed>
15
+ <version>1.0.3.1</version>
16
  </Hawksearch_Datafeed>
17
  </modules>
18
  <global>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>HawkSearch_Datafeed</name>
4
- <version>1.0.3.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/OSL-3.0">Open Software License (OSL)</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>This package generates data feeds in the required format and can be consumed by Hawk Search.</description>
11
  <notes>Added debug logging, category url to hierarchy file.</notes>
12
  <authors><author><name>Hawksearch Inc.</name><user>hawksearch</user><email>mmunoz@thanxmedia.com</email></author></authors>
13
- <date>2015-02-18</date>
14
- <time>14:14:33</time>
15
- <contents><target name="magecommunity"><dir name="Hawksearch"><dir name="Datafeed"><dir name="Block"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Version.php" hash="7f72ce91b67d40e68424454a449f1841"/></dir></dir><file name="Form.php" hash="1f6eaf265d3b8c78d3efd93cf93c7f2d"/><dir name="Frontend"><dir name="Feed"><dir name="Clearts"><file name="Js.php" hash="220b75f831af835d97be401798ec9461"/></dir><dir name="Generate"><file name="Js.php" hash="7e3f96c837b6602759160d4bb92635bf"/></dir><file name="Generate.php" hash="c73b0b2bd965b5c4e4cded455f23baa1"/><dir name="Generateimagecache"><file name="Js.php" hash="25ff246f556d518bcb05198101ec0d7f"/></dir><file name="Generateimagecache.php" hash="05a3585804163326b33d3a46ab7717b5"/><file name="Next.php" hash="92a25b140bc4d0f3b0c7b497fdf0ca6d"/><file name="Timestamp.php" hash="b12e57c577b7c86b346e0221256de97c"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="38cddf31605b88ea36cc83fa0d3e1f5f"/><file name="Feed.php" hash="07044195f931f3c59895b3b9b4059607"/><file name="runfeed.php" hash="aa1d25bd6e86ba401a03b0b54885be7e"/></dir><dir name="Model"><file name="Cron.php" hash="ca8d435d3c2f99b09758cb7644a5d141"/><file name="Email.php" hash="f671df12afac28ae10713cd1972bef2c"/><file name="Feed.php" hash="4da148d858cb296920d079765f2481ba"/><dir name="System"><dir name="Config"><dir name="Backend"><file name="Cron.php" hash="2919385264c00276cbf09c105418d5ed"/></dir></dir></dir></dir><dir name="controllers"><file name="SearchController.php" hash="624b4a3ed9baa851174a8708cb15305b"/></dir><dir name="etc"><file name="adminhtml.xml" hash="96daebeddbd749dfe0341818fe2eeabb"/><file name="config.xml" hash="4596283312f96e6e1728eb7a50643762"/><file name="system.xml" hash="3b763bc3073ce575eedb1632efc988a3"/></dir><dir name="sql"><dir name="hawksearch_datafeed_setup"><file name="install-1.0.0.0.php" hash="768e75fd75bbd9532c92859346d78ef2"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="hawksearch"><dir name="datafeed"><dir name="clearts"><file name="js.phtml" hash="e277cac474bb3e0d84b47c82c76448ca"/></dir><dir name="generate"><file name="js.phtml" hash="bb03ad1f14206b2e8e5ee228ac0cb6bc"/></dir><dir name="generateimagecache"><file name="js.phtml" hash="aba0594893460ae5763ae243866e7e65"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Hawksearch_Datafeed.xml" hash="06b94625c6b60d1269fe61c4127d2146"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>8.1.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>HawkSearch_Datafeed</name>
4
+ <version>1.0.3.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/OSL-3.0">Open Software License (OSL)</license>
7
  <channel>community</channel>
10
  <description>This package generates data feeds in the required format and can be consumed by Hawk Search.</description>
11
  <notes>Added debug logging, category url to hierarchy file.</notes>
12
  <authors><author><name>Hawksearch Inc.</name><user>hawksearch</user><email>mmunoz@thanxmedia.com</email></author></authors>
13
+ <date>2015-02-20</date>
14
+ <time>23:02:25</time>
15
+ <contents><target name="magecommunity"><dir name="Hawksearch"><dir name="Datafeed"><dir name="Block"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Version.php" hash="7f72ce91b67d40e68424454a449f1841"/></dir></dir><file name="Form.php" hash="1f6eaf265d3b8c78d3efd93cf93c7f2d"/><dir name="Frontend"><dir name="Feed"><dir name="Clearts"><file name="Js.php" hash="220b75f831af835d97be401798ec9461"/></dir><dir name="Generate"><file name="Js.php" hash="7e3f96c837b6602759160d4bb92635bf"/></dir><file name="Generate.php" hash="c73b0b2bd965b5c4e4cded455f23baa1"/><dir name="Generateimagecache"><file name="Js.php" hash="25ff246f556d518bcb05198101ec0d7f"/></dir><file name="Generateimagecache.php" hash="05a3585804163326b33d3a46ab7717b5"/><file name="Next.php" hash="92a25b140bc4d0f3b0c7b497fdf0ca6d"/><file name="Timestamp.php" hash="b12e57c577b7c86b346e0221256de97c"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="38cddf31605b88ea36cc83fa0d3e1f5f"/><file name="Feed.php" hash="07044195f931f3c59895b3b9b4059607"/><file name="runfeed.php" hash="aa1d25bd6e86ba401a03b0b54885be7e"/></dir><dir name="Model"><file name="Cron.php" hash="ca8d435d3c2f99b09758cb7644a5d141"/><file name="Email.php" hash="f671df12afac28ae10713cd1972bef2c"/><file name="Feed.php" hash="1187bc430a764f6a8f7a2a23e75ab7ba"/><dir name="System"><dir name="Config"><dir name="Backend"><file name="Cron.php" hash="2919385264c00276cbf09c105418d5ed"/></dir></dir></dir></dir><dir name="controllers"><file name="SearchController.php" hash="624b4a3ed9baa851174a8708cb15305b"/></dir><dir name="etc"><file name="adminhtml.xml" hash="96daebeddbd749dfe0341818fe2eeabb"/><file name="config.xml" hash="5eec41febdddcd12be08659feea85bf2"/><file name="system.xml" hash="3b763bc3073ce575eedb1632efc988a3"/></dir><dir name="sql"><dir name="hawksearch_datafeed_setup"><file name="install-1.0.0.0.php" hash="768e75fd75bbd9532c92859346d78ef2"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="hawksearch"><dir name="datafeed"><dir name="clearts"><file name="js.phtml" hash="e277cac474bb3e0d84b47c82c76448ca"/></dir><dir name="generate"><file name="js.phtml" hash="bb03ad1f14206b2e8e5ee228ac0cb6bc"/></dir><dir name="generateimagecache"><file name="js.phtml" hash="aba0594893460ae5763ae243866e7e65"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Hawksearch_Datafeed.xml" hash="06b94625c6b60d1269fe61c4127d2146"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>8.1.0</max></php></required></dependencies>
18
  </package>