DataFeedWatch_Connector - Version 0.3.4

Version Notes

DataFeedWatch - Release version 0.3.4

Download this release

Release Info

Developer WordWatch
Extension DataFeedWatch_Connector
Version 0.3.4
Comparing to
See all releases


Code changes from version 0.3.3 to 0.3.4

app/code/community/DataFeedWatch/Connector/data/datafeedwatch_connector_setup/data-install-0.1.0.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php
app/code/community/DataFeedWatch/Connector/data/datafeedwatch_connector_setup/data-upgrade-0.1.0-0.2.40.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php
app/code/community/DataFeedWatch/Connector/data/datafeedwatch_connector_setup/data-upgrade-0.2.40-0.2.50.php CHANGED
@@ -4,31 +4,34 @@ $apiUser = Mage::getModel('datafeedwatch_connector/api_user');
4
  $apiUser->loadDfwUser();
5
  $apiUser->createDfwUser();
6
 
7
-
8
  $installer = Mage::getResourceModel('catalog/setup', 'default_setup');
9
 
10
- $installer->addAttribute(Mage_Catalog_Model_Product::ENTITY, 'ignore_datafeedwatch', array(
11
- 'group' => 'General',
12
- 'input' => 'select',
13
- 'type' => 'int',
14
- 'label' => 'Ignore In DataFeedWatch',
15
- 'source' => 'eav/entity_attribute_source_boolean',
16
- 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
17
- 'visible' => true,
18
- 'required' => false,
19
- 'visible_on_front' => false,
20
- 'is_html_allowed_on_front' => false,
21
- 'is_configurable' => false,
22
- 'searchable' => false,
23
- 'filterable' => false,
24
- 'comparable' => false,
25
- 'unique' => false,
26
- 'user_defined' => true,
27
- 'default' => '0',
28
- 'is_user_defined' => false,
29
- 'used_in_product_listing' => false
30
- ));
31
- $attribute = Mage::getModel('eav/entity_attribute')->loadByCode(Mage_Catalog_Model_Product::ENTITY, 'ignore_datafeedwatch');
 
 
 
32
 
33
  $attribute->setImportToDfw(0)
34
  ->setCanConfigureImport(0)
4
  $apiUser->loadDfwUser();
5
  $apiUser->createDfwUser();
6
 
7
+ /** @var Mage_Catalog_Model_Resource_Setup $installer */
8
  $installer = Mage::getResourceModel('catalog/setup', 'default_setup');
9
 
10
+ $attributeCode = 'ignore_datafeedwatch';
11
+ if (!$installer->getAttribute(Mage_Catalog_Model_Product::ENTITY, $attributeCode)) {
12
+ $installer->addAttribute(Mage_Catalog_Model_Product::ENTITY, $attributeCode, array(
13
+ 'group' => 'General',
14
+ 'input' => 'select',
15
+ 'type' => 'int',
16
+ 'label' => 'Ignore In DataFeedWatch',
17
+ 'source' => 'eav/entity_attribute_source_boolean',
18
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
19
+ 'visible' => true,
20
+ 'required' => false,
21
+ 'visible_on_front' => false,
22
+ 'is_html_allowed_on_front' => false,
23
+ 'is_configurable' => false,
24
+ 'searchable' => false,
25
+ 'filterable' => false,
26
+ 'comparable' => false,
27
+ 'unique' => false,
28
+ 'user_defined' => true,
29
+ 'default' => '0',
30
+ 'is_user_defined' => false,
31
+ 'used_in_product_listing' => false
32
+ ));
33
+ }
34
+ $attribute = Mage::getModel('eav/entity_attribute')->loadByCode(Mage_Catalog_Model_Product::ENTITY, $attributeCode);
35
 
36
  $attribute->setImportToDfw(0)
37
  ->setCanConfigureImport(0)
app/code/community/DataFeedWatch/Connector/data/datafeedwatch_connector_setup/data-upgrade-0.3.0-0.3.1.php CHANGED
@@ -1,13 +1,16 @@
1
  <?php
2
- $attribute = Mage::getResourceModel('catalog/product_attribute_collection')
3
- ->addVisibleFilter()
4
- ->addFieldToFilter('attribute_code', 'dfw_parent_ids')->getFirstItem();
 
 
5
 
6
- $attribute->setImportToDfw(0)
7
- ->setCanConfigureImport(0)
8
- ->setCanConfigureInheritance(0)
9
- ->setInheritance(DataFeedWatch_Connector_Model_System_Config_Source_Inheritance::CHILD_OPTION_ID)
10
- ->save();
 
11
 
12
  $currentStoreId = Mage::app()->getStore()->getId();
13
 
1
  <?php
2
+ /** @var Mage_Catalog_Model_Resource_Setup $attributeInstaller */
3
+ $attributeInstaller = Mage::getResourceModel('catalog/setup', 'catalog_setup');
4
+ $attributeId = $attributeInstaller->getAttribute(Mage_Catalog_Model_Product::ENTITY, 'dfw_parent_ids', 'attribute_id');
5
+ if (!empty($attributeId)) {
6
+ $attribute = Mage::getModel('eav/entity_attribute')->load($attributeId);
7
 
8
+ $attribute->setImportToDfw(0)
9
+ ->setCanConfigureImport(0)
10
+ ->setCanConfigureInheritance(0)
11
+ ->setInheritance(DataFeedWatch_Connector_Model_System_Config_Source_Inheritance::CHILD_OPTION_ID)
12
+ ->save();
13
+ }
14
 
15
  $currentStoreId = Mage::app()->getStore()->getId();
16
 
app/code/community/DataFeedWatch/Connector/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <DataFeedWatch_Connector>
5
- <version>0.3.3</version>
6
  </DataFeedWatch_Connector>
7
  </modules>
8
 
2
  <config>
3
  <modules>
4
  <DataFeedWatch_Connector>
5
+ <version>0.3.4</version>
6
  </DataFeedWatch_Connector>
7
  </modules>
8
 
app/code/community/DataFeedWatch/Connector/sql/datafeedwatch_connector_setup/install-0.1.0.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+ /* @var Mage_Core_Model_Resource_Setup $installer */
3
+ $installer = $this;
4
+ $installer->startSetup();
5
+ $installer->endSetup();
app/code/community/DataFeedWatch/Connector/sql/datafeedwatch_connector_setup/upgrade-0.1.0-0.2.40.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+ /* @var Mage_Core_Model_Resource_Setup $installer */
3
+ $installer = $this;
4
+ $installer->startSetup();
5
+ $installer->endSetup();
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>DataFeedWatch_Connector</name>
4
- <version>0.3.3</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.3</notes>
12
  <authors><author><name>DataFeedWatch</name><user>WordWatch</user><email>support@datafeedwatch.com</email></author></authors>
13
- <date>2016-06-23</date>
14
- <time>13:28:15</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="fbdcdd9246232b2b3e6fac8df05bdf8e"/><file name="Registry.php" hash="602c20dfb574df45e05ed3065439b263"/></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="c7c6c481aa5f2e39e4b314b535cefb9f"/><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="c18bab9cde1c55f6e8149f453bbc28df"/><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="a0d6d1a6fb14efa154803c0710d3859f"/><file name="upgrade-0.3.0-0.3.1.php" hash="f13269dd737fa10ad903b6a5c69f3dc3"/></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.4</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.4</notes>
12
  <authors><author><name>DataFeedWatch</name><user>WordWatch</user><email>support@datafeedwatch.com</email></author></authors>
13
+ <date>2016-09-28</date>
14
+ <time>12:45:36</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="fbdcdd9246232b2b3e6fac8df05bdf8e"/><file name="Registry.php" hash="602c20dfb574df45e05ed3065439b263"/></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="c7c6c481aa5f2e39e4b314b535cefb9f"/><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-install-0.1.0.php" hash="ce407ff5715c837d02b1aba7975bf512"/><file name="data-upgrade-0.1.0-0.2.40.php" hash="ce407ff5715c837d02b1aba7975bf512"/><file name="data-upgrade-0.2.40-0.2.50.php" hash="fef9b689676cc94b23ce343bba24f7db"/><file name="data-upgrade-0.3.0-0.3.1.php" hash="9a580dae2c8bb2453e68517c17e9ee98"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="0054cf5d1bd7b9bc001c84b5fc8f72c6"/><file name="api.xml" hash="780b354b3fe3e807d16602cbe0a27c5c"/><file name="config.xml" hash="2c8b49ce5fad1cfc0dd460c17c0a61a2"/><file name="system.xml" hash="35d85a2485f6e8eb63bfc0298bc53470"/></dir><dir name="sql"><dir name="datafeedwatch_connector_setup"><file name="install-0.1.0.php" hash="a0d6d1a6fb14efa154803c0710d3859f"/><file name="upgrade-0.1.0-0.2.40.php" hash="a0d6d1a6fb14efa154803c0710d3859f"/><file name="upgrade-0.2.40-0.2.50.php" hash="a0d6d1a6fb14efa154803c0710d3859f"/><file name="upgrade-0.3.0-0.3.1.php" hash="f13269dd737fa10ad903b6a5c69f3dc3"/></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>