DataFeedWatch_Connector - Version 0.3.2

Version Notes

DataFeedWatch - Release version 0.3.2

Download this release

Release Info

Developer WordWatch
Extension DataFeedWatch_Connector
Version 0.3.2
Comparing to
See all releases


Code changes from version 0.3.1 to 0.3.2

app/code/community/DataFeedWatch/Connector/Model/Observer.php CHANGED
@@ -109,7 +109,30 @@ class DataFeedWatch_Connector_Model_Observer
109
  }
110
 
111
  try {
112
- return $configModel->getGroups()[reset($xpath)]['fields'][end($xpath)]['value'];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
  } catch (Exception $e) {
114
  $this->helper()->log($e->getMessage());
115
 
109
  }
110
 
111
  try {
112
+ $group = reset($xpath);
113
+ $field = end($xpath);
114
+ $configPath = $configModel->getGroups();
115
+ if (is_array($configPath) && array_key_exists($group, $configPath)) {
116
+ $configPath = $configPath[$group];
117
+ } else {
118
+ return null;
119
+ }
120
+ if (is_array($configPath) && array_key_exists('fields', $configPath)) {
121
+ $configPath = $configPath['fields'];
122
+ } else {
123
+ return null;
124
+ }
125
+ if (is_array($configPath) && array_key_exists($field, $configPath)) {
126
+ $configPath = $configPath[$field];
127
+ } else {
128
+ return null;
129
+ }
130
+
131
+ if (is_array($configPath) && array_key_exists('value', $configPath)) {
132
+ return $configPath['value'];
133
+ } else {
134
+ return null;
135
+ }
136
  } catch (Exception $e) {
137
  $this->helper()->log($e->getMessage());
138
 
app/code/community/DataFeedWatch/Connector/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <DataFeedWatch_Connector>
5
- <version>0.3.1</version>
6
  </DataFeedWatch_Connector>
7
  </modules>
8
 
2
  <config>
3
  <modules>
4
  <DataFeedWatch_Connector>
5
+ <version>0.3.2</version>
6
  </DataFeedWatch_Connector>
7
  </modules>
8
 
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>DataFeedWatch_Connector</name>
4
- <version>0.3.1</version>
5
  <stability>stable</stability>
6
  <license uri="https://opensource.org/licenses/OSL-3.0">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>DataFeedWatch extension for Magento</summary>
10
  <description>DataFeedWatch enables Magento shops to optimize their product datafeed for Google Shopping and other channels</description>
11
- <notes>DataFeedWatch - Release version 0.3.1</notes>
12
  <authors><author><name>DataFeedWatch</name><user>WordWatch</user><email>support@datafeedwatch.com</email></author></authors>
13
- <date>2016-06-09</date>
14
- <time>09:34:17</time>
15
- <contents><target name="mageetc"><dir name="modules"><file name="DataFeedWatch_Connector.xml" hash="df95373d268ebdc76ce48357f220dc15"/></dir></target><target name="magecommunity"><dir name="DataFeedWatch"><dir name="Connector"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Button"><file name="Add.php" hash="a658851b480f5a475257be5eef217c16"/><file name="Extort.php" hash="cdf82e240841d96c15d59151571ee79c"/><file name="Open.php" hash="bc9605ba4852057019abc030db0a05a7"/><file name="Refresh.php" hash="913e50a9fb9f86f4c331e65c24e27218"/><file name="Restore.php" hash="571fe89a4514999cee65b65136894a9c"/></dir><dir name="Grid"><file name="Inheritance.php" hash="39f73b43227bc34df5cead15ddc251da"/></dir></dir><dir name="Grid"><dir name="Items"><file name="Row.php" hash="18e05a8d2c7898693256dd07507f94fd"/></dir><file name="Items.php" hash="a01a38ff3e3ae2e998441e1b8797e1d0"/><file name="Pager.php" hash="9ae5979b8e1ce7eafa6b2e7e429b8247"/></dir><file name="Grid.php" hash="3c4a5eefc0ae7e9638c119433bb93f0f"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="4d50db3e47a6107815e888e74a232bd3"/><file name="Registry.php" hash="514c4be14a4203dd568a2b77df83900b"/></dir><dir name="Model"><dir name="Api"><file name="User.php" hash="2d7fc0477d68f2e9f4febf0e43879a69"/></dir><file name="Api.php" hash="f07b325d90defc0d30450fbb0bbfd75b"/><file name="Cron.php" hash="2c85e3d5809b25fe6dd14a80991197d1"/><file name="Observer.php" hash="6cf196c18ad428cef48a9b46845d0a6d"/><file name="Product.php" hash="b35d3506ca6cc2025a5013e9c2f3cad4"/><dir name="Resource"><dir name="Product"><dir name="Collection"><file name="Db.php" hash="2a417751e524398f90b99cc7556ff182"/></dir><file name="Collection.php" hash="ce250ddc545aba36d9f2afd2ae319da2"/></dir><file name="Product.php" hash="746a8bde3cc3ce8d594ab8d35a78859c"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Inheritance.php" hash="9b8934ffc1943a2557bc1078fd44ad0c"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="DatafeedwatchController.php" hash="f3d364f4d0b3aa64478bdd783f807b95"/></dir></dir><dir name="data"><dir name="datafeedwatch_connector_setup"><file name="data-upgrade-0.2.40-0.2.50.php" hash="f999c30c7f3031e1ead8f83a966c1bb7"/><file name="data-upgrade-0.3.0-0.3.1.php" hash="7a242695a5c78801d84d81b1da99f18c"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="0054cf5d1bd7b9bc001c84b5fc8f72c6"/><file name="api.xml" hash="780b354b3fe3e807d16602cbe0a27c5c"/><file name="config.xml" hash="8f691eaabd193fa72130a9ee913e9fa0"/><file name="system.xml" hash="35d85a2485f6e8eb63bfc0298bc53470"/></dir><dir name="sql"><dir name="datafeedwatch_connector_setup"><file name="upgrade-0.2.40-0.2.50.php" hash="21f170857128d15b708386635715fae9"/><file name="upgrade-0.3.0-0.3.1.php" hash="1799d8fd2cf18b77b4736d51b99d023d"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="datafeedwatch"><file name="connector.xml" hash="4ee1df77504a8ebccff49deab7ce1e49"/></dir></dir><dir name="template"><dir name="datafeedwatch"><dir name="connector"><dir name="grid"><dir name="items"><file name="row.phtml" hash="ada54a40e55899c3262f30c3de55d5c6"/></dir><file name="items.phtml" hash="d5928a0cf756d93eb517da7363563ca8"/><file name="pager.phtml" hash="6f41d682d5e4e9dcf9876f35d24a4651"/></dir><file name="grid.phtml" hash="76e9670e214dc1256b902a4d6ef33a3c"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="pl_PL"><file name="DataFeedWatch_Connector.csv" hash="fb9f9a1dacfc2698ee05abcdd1342b86"/></dir><dir name="en_US"><file name="DataFeedWatch_Connector.csv" hash="fcfdb3ab74add74d704e504161411ef6"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="datafeedwatch"><dir name="connector"><dir name="css"><dir name="grid"><file name="inheritance.css" hash="3d23c2a5285d6cdc4a514015926a8272"/></dir></dir><dir name="js"><dir name="grid"><file name="inheritance.js" hash="9fc3594f48fa519e11e2e17d0b427668"/></dir></dir></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.3.0</min><max>7.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>DataFeedWatch_Connector</name>
4
+ <version>0.3.2</version>
5
  <stability>stable</stability>
6
  <license uri="https://opensource.org/licenses/OSL-3.0">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>DataFeedWatch extension for Magento</summary>
10
  <description>DataFeedWatch enables Magento shops to optimize their product datafeed for Google Shopping and other channels</description>
11
+ <notes>DataFeedWatch - Release version 0.3.2</notes>
12
  <authors><author><name>DataFeedWatch</name><user>WordWatch</user><email>support@datafeedwatch.com</email></author></authors>
13
+ <date>2016-06-13</date>
14
+ <time>08:41:11</time>
15
+ <contents><target name="mageetc"><dir name="modules"><file name="DataFeedWatch_Connector.xml" hash="df95373d268ebdc76ce48357f220dc15"/></dir></target><target name="magecommunity"><dir name="DataFeedWatch"><dir name="Connector"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Button"><file name="Add.php" hash="a658851b480f5a475257be5eef217c16"/><file name="Extort.php" hash="cdf82e240841d96c15d59151571ee79c"/><file name="Open.php" hash="bc9605ba4852057019abc030db0a05a7"/><file name="Refresh.php" hash="913e50a9fb9f86f4c331e65c24e27218"/><file name="Restore.php" hash="571fe89a4514999cee65b65136894a9c"/></dir><dir name="Grid"><file name="Inheritance.php" hash="39f73b43227bc34df5cead15ddc251da"/></dir></dir><dir name="Grid"><dir name="Items"><file name="Row.php" hash="18e05a8d2c7898693256dd07507f94fd"/></dir><file name="Items.php" hash="a01a38ff3e3ae2e998441e1b8797e1d0"/><file name="Pager.php" hash="9ae5979b8e1ce7eafa6b2e7e429b8247"/></dir><file name="Grid.php" hash="3c4a5eefc0ae7e9638c119433bb93f0f"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="4d50db3e47a6107815e888e74a232bd3"/><file name="Registry.php" hash="514c4be14a4203dd568a2b77df83900b"/></dir><dir name="Model"><dir name="Api"><file name="User.php" hash="2d7fc0477d68f2e9f4febf0e43879a69"/></dir><file name="Api.php" hash="f07b325d90defc0d30450fbb0bbfd75b"/><file name="Cron.php" hash="2c85e3d5809b25fe6dd14a80991197d1"/><file name="Observer.php" hash="38a65f7aa9d70182a3d1bcd8287ce44c"/><file name="Product.php" hash="b35d3506ca6cc2025a5013e9c2f3cad4"/><dir name="Resource"><dir name="Product"><dir name="Collection"><file name="Db.php" hash="2a417751e524398f90b99cc7556ff182"/></dir><file name="Collection.php" hash="ce250ddc545aba36d9f2afd2ae319da2"/></dir><file name="Product.php" hash="746a8bde3cc3ce8d594ab8d35a78859c"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Inheritance.php" hash="9b8934ffc1943a2557bc1078fd44ad0c"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="DatafeedwatchController.php" hash="f3d364f4d0b3aa64478bdd783f807b95"/></dir></dir><dir name="data"><dir name="datafeedwatch_connector_setup"><file name="data-upgrade-0.2.40-0.2.50.php" hash="f999c30c7f3031e1ead8f83a966c1bb7"/><file name="data-upgrade-0.3.0-0.3.1.php" hash="7a242695a5c78801d84d81b1da99f18c"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="0054cf5d1bd7b9bc001c84b5fc8f72c6"/><file name="api.xml" hash="780b354b3fe3e807d16602cbe0a27c5c"/><file name="config.xml" hash="ded6483d3aeacf03585d71f73743992e"/><file name="system.xml" hash="35d85a2485f6e8eb63bfc0298bc53470"/></dir><dir name="sql"><dir name="datafeedwatch_connector_setup"><file name="upgrade-0.2.40-0.2.50.php" hash="21f170857128d15b708386635715fae9"/><file name="upgrade-0.3.0-0.3.1.php" hash="1799d8fd2cf18b77b4736d51b99d023d"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="datafeedwatch"><file name="connector.xml" hash="4ee1df77504a8ebccff49deab7ce1e49"/></dir></dir><dir name="template"><dir name="datafeedwatch"><dir name="connector"><dir name="grid"><dir name="items"><file name="row.phtml" hash="ada54a40e55899c3262f30c3de55d5c6"/></dir><file name="items.phtml" hash="d5928a0cf756d93eb517da7363563ca8"/><file name="pager.phtml" hash="6f41d682d5e4e9dcf9876f35d24a4651"/></dir><file name="grid.phtml" hash="76e9670e214dc1256b902a4d6ef33a3c"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="pl_PL"><file name="DataFeedWatch_Connector.csv" hash="fb9f9a1dacfc2698ee05abcdd1342b86"/></dir><dir name="en_US"><file name="DataFeedWatch_Connector.csv" hash="fcfdb3ab74add74d704e504161411ef6"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="datafeedwatch"><dir name="connector"><dir name="css"><dir name="grid"><file name="inheritance.css" hash="3d23c2a5285d6cdc4a514015926a8272"/></dir></dir><dir name="js"><dir name="grid"><file name="inheritance.js" hash="9fc3594f48fa519e11e2e17d0b427668"/></dir></dir></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.3.0</min><max>7.0.0</max></php></required></dependencies>
18
  </package>