Woo - Version 1.0.5

Version Notes

Support searching the webshop's products from the woomio

Download this release

Release Info

Developer Woomio
Extension Woo
Version 1.0.5
Comparing to
See all releases


Code changes from version 1.0.4 to 1.0.5

app/code/local/Woomio/Tracker/controllers/IndexController.php CHANGED
@@ -6,7 +6,8 @@ class Woomio_Tracker_IndexController extends Mage_Core_Controller_Front_Action{
6
  $GetParams = Mage::app()->getRequest()->getParams();
7
  $woomioTable = Mage::getSingleton("core/resource")->getTableName('woomio');
8
  $response = array();
9
- // == $AllowedIP
 
10
  if($_SERVER['REMOTE_ADDR'] == $AllowedIP){
11
  $response['status'] = "success";
12
  $response['status_message'] = "IP allowed";
@@ -100,7 +101,13 @@ class Woomio_Tracker_IndexController extends Mage_Core_Controller_Front_Action{
100
  }
101
 
102
  foreach($Products as $Product){
103
- $response['products'][] = $Product->getData();
 
 
 
 
 
 
104
  }
105
 
106
  }
6
  $GetParams = Mage::app()->getRequest()->getParams();
7
  $woomioTable = Mage::getSingleton("core/resource")->getTableName('woomio');
8
  $response = array();
9
+
10
+ //if(true){
11
  if($_SERVER['REMOTE_ADDR'] == $AllowedIP){
12
  $response['status'] = "success";
13
  $response['status_message'] = "IP allowed";
101
  }
102
 
103
  foreach($Products as $Product){
104
+ $response['products'][$Product->getId()] = $Product->getData();
105
+
106
+ // Categories
107
+ $Categories = $Product->getCategoryCollection()->addAttributeToSelect('name');
108
+ foreach ($Categories as $Category) {
109
+ $response['products'][$Product->getId()]["categories"] .= $Category -> getName() . "|";
110
+ }
111
  }
112
 
113
  }
app/code/local/Woomio/Tracker/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Woomio_Tracker>
5
- <version>1.0.4</version>
6
  </Woomio_Tracker>
7
  </modules>
8
  <frontend>
2
  <config>
3
  <modules>
4
  <Woomio_Tracker>
5
+ <version>1.0.5</version>
6
  </Woomio_Tracker>
7
  </modules>
8
  <frontend>
app/code/local/Woomio/Tracker/sql/tracker_setup/mysql4-install-1.0.4.php CHANGED
File without changes
app/design/frontend/base/default/layout/tracker.xml CHANGED
@@ -1,5 +1,5 @@
1
  <?xml version="1.0"?>
2
- <layout version="1.0.4">
3
  <default>
4
  <reference name="head">
5
  <block type="core/text" name="woomio.com">
1
  <?xml version="1.0"?>
2
+ <layout version="1.0.5">
3
  <default>
4
  <reference name="head">
5
  <block type="core/text" name="woomio.com">
app/etc/modules/Woomio_Tracker.xml CHANGED
@@ -4,7 +4,7 @@
4
  <Woomio_Tracker>
5
  <active>true</active>
6
  <codePool>local</codePool>
7
- <version>1.0.4</version>
8
  </Woomio_Tracker>
9
  </modules>
10
  </config>
4
  <Woomio_Tracker>
5
  <active>true</active>
6
  <codePool>local</codePool>
7
+ <version>1.0.5</version>
8
  </Woomio_Tracker>
9
  </modules>
10
  </config>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Woo</name>
4
- <version>1.0.4</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL)</license>
7
  <channel>community</channel>
@@ -24,11 +24,11 @@ How does it work?&#xD;
24
  Compatibility&#xD;
25
  &#xD;
26
  Woomio is fully compatible with all Magento versions and modules.</description>
27
- <notes>Initial version of Woomio</notes>
28
  <authors><author><name>Woomio</name><user>Woomio</user><email>developer@woomio.com</email></author></authors>
29
- <date>2015-04-22</date>
30
- <time>14:19:40</time>
31
- <contents><target name="magelocal"><dir name="Woomio"><dir name="Tracker"><dir name="Block"><file name="Index.php" hash="949b7c689724a7eeeba5168a9cf03507"/></dir><dir name="Helper"><file name="Data.php" hash="53a3a643e1eea3a72e02b5c64daa9edd"/></dir><dir name="Model"><file name="Observer.php" hash="855bd53491c9c6b37178d7565d7e2e1a"/></dir><dir name="controllers"><file name="IndexController.php" hash="f18df080c87ae5361658056a9ea81240"/></dir><dir name="etc"><file name="config.xml" hash="916c2901e9885ea5b1025d3ae336a66e"/></dir><dir name="sql"><dir name="tracker_setup"><file name="mysql4-install-1.0.4.php" hash="c731b614f102aa8c36081e21ac6db15b"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="tracker.xml" hash="d7c5873d043e04e4c44bbf8dcb389e66"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Woomio_Tracker.xml" hash="21e4a547a75fcd9a353b20a8729a6c0c"/></dir></target></contents>
32
  <compatible/>
33
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
34
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Woo</name>
4
+ <version>1.0.5</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL)</license>
7
  <channel>community</channel>
24
  Compatibility&#xD;
25
  &#xD;
26
  Woomio is fully compatible with all Magento versions and modules.</description>
27
+ <notes>Support searching the webshop's products from the woomio</notes>
28
  <authors><author><name>Woomio</name><user>Woomio</user><email>developer@woomio.com</email></author></authors>
29
+ <date>2015-05-07</date>
30
+ <time>09:25:20</time>
31
+ <contents><target name="magelocal"><dir name="Woomio"><dir name="Tracker"><dir name="Block"><file name="Index.php" hash="949b7c689724a7eeeba5168a9cf03507"/></dir><dir name="Helper"><file name="Data.php" hash="53a3a643e1eea3a72e02b5c64daa9edd"/></dir><dir name="Model"><file name="Observer.php" hash="855bd53491c9c6b37178d7565d7e2e1a"/></dir><dir name="controllers"><file name="IndexController.php" hash="23096ef9a4af36032fe9098f87b057db"/></dir><dir name="etc"><file name="config.xml" hash="75e059ba599bdeb54289319b2029d416"/></dir><dir name="sql"><dir name="tracker_setup"><file name="mysql4-install-1.0.4.php" hash="0b3c6642e1a4d20563455e24514dbc93"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="tracker.xml" hash="7ac1a21863c83d080154e348fc26944f"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Woomio_Tracker.xml" hash="506acd420189f90f0c8ba8b2581b86be"/></dir></target></contents>
32
  <compatible/>
33
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
34
  </package>