Find_Feed - Version 1.1.1

Version Notes

1.1.1

Download this release

Release Info

Developer Magento Core Team
Extension Find_Feed
Version 1.1.1
Comparing to
See all releases


Code changes from version 1.0.8.1 to 1.1.1

Files changed (29) hide show
  1. app/code/community/Find/Feed/Block/Adminhtml/Edit/Codes.php +2 -2
  2. app/code/community/Find/Feed/Block/Adminhtml/Edit/Codes/Edit/Form.php +2 -2
  3. app/code/community/Find/Feed/Block/Adminhtml/List/Codes.php +2 -2
  4. app/code/community/Find/Feed/Block/Adminhtml/List/Codes/Grid.php +2 -2
  5. app/code/community/Find/Feed/Block/Adminhtml/List/Items.php +2 -2
  6. app/code/community/Find/Feed/Block/Adminhtml/List/Items/Grid.php +2 -2
  7. app/code/community/Find/Feed/Helper/Data.php +2 -2
  8. app/code/community/Find/Feed/Model/Adminhtml/System/Source/Cron/Frequency.php +2 -2
  9. app/code/community/Find/Feed/Model/Adminhtml/System/Source/Cron/Hours.php +2 -2
  10. app/code/community/Find/Feed/Model/Codes.php +2 -2
  11. app/code/community/Find/Feed/Model/Import.php +33 -3
  12. app/code/community/Find/Feed/Model/Mysql4/Codes.php +3 -10
  13. app/code/community/Find/Feed/Model/Mysql4/Codes/Collection.php +3 -22
  14. app/code/community/Find/Feed/Model/Mysql4/Setup.php +2 -2
  15. app/code/community/Find/Feed/Model/Observer.php +2 -2
  16. app/code/community/Find/Feed/Model/Resource/Codes.php +42 -0
  17. app/code/community/Find/Feed/Model/Resource/Codes/Collection.php +55 -0
  18. app/code/community/Find/Feed/Model/Resource/Setup.php +36 -0
  19. app/code/community/Find/Feed/controllers/Adminhtml/Codes/GridController.php +2 -2
  20. app/code/community/Find/Feed/controllers/Adminhtml/Items/GridController.php +2 -2
  21. app/code/community/Find/Feed/etc/adminhtml.xml +2 -2
  22. app/code/community/Find/Feed/etc/config.xml +9 -8
  23. app/code/community/Find/Feed/etc/system.xml +2 -2
  24. app/code/community/Find/Feed/sql/find_feed_setup/install-1.6.0.0.php +74 -0
  25. app/code/community/Find/Feed/sql/find_feed_setup/mysql4-install-0.0.1.php +2 -2
  26. app/code/community/Find/Feed/sql/find_feed_setup/mysql4-upgrade-0.0.1-0.0.2.php +2 -2
  27. app/design/adminhtml/default/find/layout/feed.xml +1 -1
  28. app/etc/modules/Find_Feed.xml +1 -1
  29. package.xml +5 -5
app/code/community/Find/Feed/Block/Adminhtml/Edit/Codes.php CHANGED
@@ -19,8 +19,8 @@
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
- * @package _home
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
+ * @package _storage
23
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
app/code/community/Find/Feed/Block/Adminhtml/Edit/Codes/Edit/Form.php CHANGED
@@ -19,8 +19,8 @@
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
- * @package _home
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
+ * @package _storage
23
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
app/code/community/Find/Feed/Block/Adminhtml/List/Codes.php CHANGED
@@ -19,8 +19,8 @@
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
- * @package _home
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
+ * @package _storage
23
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
app/code/community/Find/Feed/Block/Adminhtml/List/Codes/Grid.php CHANGED
@@ -19,8 +19,8 @@
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
- * @package _home
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
+ * @package _storage
23
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
app/code/community/Find/Feed/Block/Adminhtml/List/Items.php CHANGED
@@ -19,8 +19,8 @@
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
- * @package _home
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
+ * @package _storage
23
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
app/code/community/Find/Feed/Block/Adminhtml/List/Items/Grid.php CHANGED
@@ -19,8 +19,8 @@
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
- * @package _home
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
+ * @package _storage
23
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
app/code/community/Find/Feed/Helper/Data.php CHANGED
@@ -19,8 +19,8 @@
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
- * @package _home
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
+ * @package _storage
23
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
app/code/community/Find/Feed/Model/Adminhtml/System/Source/Cron/Frequency.php CHANGED
@@ -19,8 +19,8 @@
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
- * @package _home
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
+ * @package _storage
23
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
app/code/community/Find/Feed/Model/Adminhtml/System/Source/Cron/Hours.php CHANGED
@@ -19,8 +19,8 @@
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
- * @package _home
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
+ * @package _storage
23
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
app/code/community/Find/Feed/Model/Codes.php CHANGED
@@ -19,8 +19,8 @@
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
- * @package _home
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
+ * @package _storage
23
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
app/code/community/Find/Feed/Model/Import.php CHANGED
@@ -19,8 +19,8 @@
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
- * @package _home
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
@@ -45,6 +45,13 @@ class Find_Feed_Model_Import extends Mage_Core_Model_Abstract
45
 
46
  const XML_NODE_FIND_FEED_ATTRIBUTES = 'find_feed_attributes';
47
 
 
 
 
 
 
 
 
48
  /**
49
  * Cron action
50
  */
@@ -108,7 +115,15 @@ class Find_Feed_Model_Import extends Mage_Core_Model_Abstract
108
  foreach ($productCollection as $product) {
109
  $attributesRow = array();
110
  foreach ($attributes as $key => $value) {
111
- $attributesRow[$key] = $product->getData($value);
 
 
 
 
 
 
 
 
112
  }
113
  $file->streamWriteCsv($attributesRow, self::SEPARATOR, self::ENCLOSURE);
114
  }
@@ -124,6 +139,21 @@ class Find_Feed_Model_Import extends Mage_Core_Model_Abstract
124
  return false;
125
  }
126
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
  /**
128
  * List import codes (attribute map) model
129
  *
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
+ * @package _storage
23
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
45
 
46
  const XML_NODE_FIND_FEED_ATTRIBUTES = 'find_feed_attributes';
47
 
48
+ /**
49
+ * Attribute sources
50
+ *
51
+ * @var array
52
+ */
53
+ protected $_attributeSources = array();
54
+
55
  /**
56
  * Cron action
57
  */
115
  foreach ($productCollection as $product) {
116
  $attributesRow = array();
117
  foreach ($attributes as $key => $value) {
118
+ if ($this->_checkAttributeSource($product, $value)) {
119
+ if (is_array($product->getAttributeText($value))) {
120
+ $attributesRow[$key] = implode(', ', $product->getAttributeText($value));
121
+ } else {
122
+ $attributesRow[$key] = $product->getAttributeText($value);
123
+ }
124
+ } else {
125
+ $attributesRow[$key] = $product->getData($value);
126
+ }
127
  }
128
  $file->streamWriteCsv($attributesRow, self::SEPARATOR, self::ENCLOSURE);
129
  }
139
  return false;
140
  }
141
 
142
+ /**
143
+ * Check attribute source
144
+ *
145
+ * @param Mage_Catalog_Model_Product $product
146
+ * @param string $value
147
+ * @return bool
148
+ */
149
+ protected function _checkAttributeSource($product, $value)
150
+ {
151
+ if (!array_key_exists($value, $this->_attributeSources)) {
152
+ $this->_attributeSources[$value] = $product->getResource()->getAttribute($value)->usesSource();
153
+ }
154
+ return $this->_attributeSources[$value];
155
+ }
156
+
157
  /**
158
  * List import codes (attribute map) model
159
  *
app/code/community/Find/Feed/Model/Mysql4/Codes.php CHANGED
@@ -19,8 +19,8 @@
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
- * @package _home
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
@@ -30,13 +30,6 @@
30
  * @category Find
31
  * @package Find_Feed
32
  */
33
- class Find_Feed_Model_Mysql4_Codes extends Mage_Core_Model_Mysql4_Abstract
34
  {
35
- /**
36
- * Class local constructor
37
- */
38
- protected function _construct()
39
- {
40
- $this->_init('find_feed/feed_import_codes', 'code_id');
41
- }
42
  }
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
+ * @package _storage
23
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
30
  * @category Find
31
  * @package Find_Feed
32
  */
33
+ class Find_Feed_Model_Mysql4_Codes extends Find_Feed_Model_Resource_Codes
34
  {
 
 
 
 
 
 
 
35
  }
app/code/community/Find/Feed/Model/Mysql4/Codes/Collection.php CHANGED
@@ -19,8 +19,8 @@
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
- * @package _home
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
@@ -30,26 +30,7 @@
30
  * @category Find
31
  * @package Find_Feed
32
  */
33
- class Find_Feed_Model_Mysql4_Codes_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
34
  {
35
- /**
36
- * Local constructor
37
- *
38
- */
39
- protected function _construct()
40
- {
41
- $this->_init('find_feed/codes');
42
- }
43
-
44
- /**
45
- * Fetch attributes to import
46
- *
47
- * @return array
48
- */
49
- public function getImportAttributes()
50
- {
51
- $this->addFieldToFilter('is_imported', array('eq' => '1'));
52
- return $this->_toOptionHash('import_code', 'eav_code');
53
- }
54
 
55
  }
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
+ * @package _storage
23
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
30
  * @category Find
31
  * @package Find_Feed
32
  */
33
+ class Find_Feed_Model_Mysql4_Codes_Collection extends Find_Feed_Model_Resource_Codes_Collection
34
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
 
36
  }
app/code/community/Find/Feed/Model/Mysql4/Setup.php CHANGED
@@ -19,8 +19,8 @@
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
- * @package _home
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
+ * @package _storage
23
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
app/code/community/Find/Feed/Model/Observer.php CHANGED
@@ -19,8 +19,8 @@
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
- * @package _home
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
+ * @package _storage
23
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
app/code/community/Find/Feed/Model/Resource/Codes.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category
22
+ * @package _storage
23
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+ /**
28
+ * Thefind feed codes (attribute map) model
29
+ *
30
+ * @category Find
31
+ * @package Find_Feed
32
+ */
33
+ class Find_Feed_Model_Resource_Codes extends Mage_Core_Model_Resource_Db_Abstract
34
+ {
35
+ /**
36
+ * Class local constructor
37
+ */
38
+ protected function _construct()
39
+ {
40
+ return $this->_init('find_feed/feed_import_codes', 'code_id');
41
+ }
42
+ }
app/code/community/Find/Feed/Model/Resource/Codes/Collection.php ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category
22
+ * @package _storage
23
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+ /**
28
+ * TheFind feed codes (attribute map) collection
29
+ *
30
+ * @category Find
31
+ * @package Find_Feed
32
+ */
33
+ class Find_Feed_Model_Resource_Codes_Collection extends Mage_Core_Model_Resource_Db_Collection_Abstract
34
+ {
35
+ /**
36
+ * Local constructor
37
+ *
38
+ */
39
+ protected function _construct()
40
+ {
41
+ $this->_init('find_feed/codes');
42
+ }
43
+
44
+ /**
45
+ * Fetch attributes to import
46
+ *
47
+ * @return array
48
+ */
49
+ public function getImportAttributes()
50
+ {
51
+ $this->addFieldToFilter('is_imported', array('eq' => '1'));
52
+ return $this->_toOptionHash('import_code', 'eav_code');
53
+ }
54
+
55
+ }
app/code/community/Find/Feed/Model/Resource/Setup.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category
22
+ * @package _storage
23
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+ /**
28
+ * Thefind feed module setup
29
+ *
30
+ * @category Find
31
+ * @package Find_Feed
32
+ */
33
+ class Find_Feed_Model_Resource_Setup extends Mage_Catalog_Model_Resource_Setup
34
+ {
35
+ }
36
+
app/code/community/Find/Feed/controllers/Adminhtml/Codes/GridController.php CHANGED
@@ -19,8 +19,8 @@
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
- * @package _home
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
+ * @package _storage
23
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
app/code/community/Find/Feed/controllers/Adminhtml/Items/GridController.php CHANGED
@@ -19,8 +19,8 @@
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
- * @package _home
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
+ * @package _storage
23
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
app/code/community/Find/Feed/etc/adminhtml.xml CHANGED
@@ -20,8 +20,8 @@
20
  * needs please refer to http://www.magentocommerce.com for more information.
21
  *
22
  * @category
23
- * @package _home
24
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
25
  * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
  */
27
  -->
20
  * needs please refer to http://www.magentocommerce.com for more information.
21
  *
22
  * @category
23
+ * @package _storage
24
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
25
  * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
  */
27
  -->
app/code/community/Find/Feed/etc/config.xml CHANGED
@@ -20,37 +20,38 @@
20
  * needs please refer to http://www.magentocommerce.com for more information.
21
  *
22
  * @category
23
- * @package _home
24
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
25
  * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
  */
27
  -->
28
  <config>
29
  <modules>
30
  <Find_Feed>
31
- <version>0.0.2</version>
32
  </Find_Feed>
33
  </modules>
34
  <global>
35
  <models>
36
  <find_feed>
37
  <class>Find_Feed_Model</class>
38
- <resourceModel>find_feed_mysql4</resourceModel>
39
  </find_feed>
40
- <find_feed_mysql4>
41
- <class>Find_Feed_Model_Mysql4</class>
 
42
  <entities>
43
  <feed_import_codes>
44
  <table>find_feed_import_codes</table>
45
  </feed_import_codes>
46
  </entities>
47
- </find_feed_mysql4>
48
  </models>
49
  <resources>
50
  <find_feed_setup>
51
  <setup>
52
  <module>Find_Feed</module>
53
- <class>Find_Feed_Model_Mysql4_Setup</class>
54
  </setup>
55
  </find_feed_setup>
56
  </resources>
20
  * needs please refer to http://www.magentocommerce.com for more information.
21
  *
22
  * @category
23
+ * @package _storage
24
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
25
  * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
  */
27
  -->
28
  <config>
29
  <modules>
30
  <Find_Feed>
31
+ <version>1.6.0.0</version>
32
  </Find_Feed>
33
  </modules>
34
  <global>
35
  <models>
36
  <find_feed>
37
  <class>Find_Feed_Model</class>
38
+ <resourceModel>find_feed_resource</resourceModel>
39
  </find_feed>
40
+ <find_feed_resource>
41
+ <class>Find_Feed_Model_Resource</class>
42
+ <deprecatedNode>find_feed_mysql4</deprecatedNode>
43
  <entities>
44
  <feed_import_codes>
45
  <table>find_feed_import_codes</table>
46
  </feed_import_codes>
47
  </entities>
48
+ </find_feed_resource>
49
  </models>
50
  <resources>
51
  <find_feed_setup>
52
  <setup>
53
  <module>Find_Feed</module>
54
+ <class>Find_Feed_Model_Resource_Setup</class>
55
  </setup>
56
  </find_feed_setup>
57
  </resources>
app/code/community/Find/Feed/etc/system.xml CHANGED
@@ -20,8 +20,8 @@
20
  * needs please refer to http://www.magentocommerce.com for more information.
21
  *
22
  * @category
23
- * @package _home
24
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
25
  * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
  */
27
  -->
20
  * needs please refer to http://www.magentocommerce.com for more information.
21
  *
22
  * @category
23
+ * @package _storage
24
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
25
  * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
  */
27
  -->
app/code/community/Find/Feed/sql/find_feed_setup/install-1.6.0.0.php ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category
22
+ * @package _storage
23
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+ $installer = $this;
27
+ /* @var $installer Mage_Core_Model_Resource_Setup */
28
+
29
+ $installer->startSetup();
30
+ /**
31
+ * Create table 'find_feed/feed_import_codes'
32
+ */
33
+ $table = $installer->getConnection()
34
+ ->newTable($installer->getTable('find_feed/feed_import_codes'))
35
+ ->addColumn('code_id', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
36
+ 'identity' => true,
37
+ 'unsigned' => true,
38
+ 'nullable' => false,
39
+ 'primary' => true,
40
+ ), 'Code id')
41
+ ->addColumn('import_code', Varien_Db_Ddl_Table::TYPE_TEXT, 255, array(
42
+ 'nullable' => false,
43
+ ), 'Import type')
44
+ ->addColumn('eav_code', Varien_Db_Ddl_Table::TYPE_TEXT, 255, array(
45
+ 'nullable' => false,
46
+ ), 'EAV code')
47
+ ->addColumn('is_imported', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
48
+ 'nullable' => false,
49
+ ), 'Is imported')
50
+ ->setComment('Find feed import codes');
51
+ $installer->getConnection()->createTable($table);
52
+
53
+ $this->addAttribute('catalog_product', 'is_imported', array(
54
+ 'group' => 'General',
55
+ 'type' => 'int',
56
+ 'input' => 'select',
57
+ 'label' => 'In feed',
58
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
59
+ 'visible' => 1,
60
+ 'required' => 0,
61
+ 'visible_on_front' => 0,
62
+ 'is_html_allowed_on_front' => 0,
63
+ 'is_configurable' => 0,
64
+ 'source' => 'eav/entity_attribute_source_boolean',
65
+ 'searchable' => 0,
66
+ 'filterable' => 0,
67
+ 'comparable' => 0,
68
+ 'unique' => false,
69
+ 'user_defined' => false,
70
+ 'is_user_defined' => false,
71
+ 'used_in_product_listing' => true
72
+ ));
73
+
74
+ $installer->endSetup();
app/code/community/Find/Feed/sql/find_feed_setup/mysql4-install-0.0.1.php CHANGED
@@ -19,8 +19,8 @@
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
- * @package _home
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
+ * @package _storage
23
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
app/code/community/Find/Feed/sql/find_feed_setup/mysql4-upgrade-0.0.1-0.0.2.php CHANGED
@@ -19,8 +19,8 @@
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
- * @package _home
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
19
  * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category
22
+ * @package _storage
23
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
app/design/adminhtml/default/find/layout/feed.xml CHANGED
@@ -21,7 +21,7 @@
21
  *
22
  * @category design
23
  * @package default_find
24
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
25
  * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
  */
27
  -->
21
  *
22
  * @category design
23
  * @package default_find
24
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
25
  * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
  */
27
  -->
app/etc/modules/Find_Feed.xml CHANGED
@@ -21,7 +21,7 @@
21
  *
22
  * @category Find
23
  * @package Find_Feed
24
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
25
  * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
  */
27
  -->
21
  *
22
  * @category Find
23
  * @package Find_Feed
24
+ * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
25
  * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
  */
27
  -->
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Find_Feed</name>
4
- <version>1.0.8.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Integration with TheFind shopping engine</summary>
10
  <description>Current integration includes managing product feeds from Magento store to TheFind, mapping of Magento Attributes to TheFind structure.</description>
11
- <notes>1.0.8.1</notes>
12
  <authors><author><name>Magento Core Team</name><user>core</user><email>core@magentocommerce.com</email></author></authors>
13
- <date>2011-04-26</date>
14
- <time>18:29:06</time>
15
- <contents><target name="magecommunity"><dir name="Find"><dir name="Feed"><dir name="Block"><dir name="Adminhtml"><dir name="Edit"><dir name="Codes"><dir name="Edit"><file name="Form.php" hash="1514d7db604c60dc1723b176ff74ec1b"/></dir></dir><file name="Codes.php" hash="cfabd7a2fa565cc4e201eb6d7e2eadbf"/></dir><dir name="List"><dir name="Codes"><file name="Grid.php" hash="fc7e555780486b7843b3b8ee10d4cdbe"/></dir><file name="Codes.php" hash="d321b1a42a5c7af0788e65a28eed5f5d"/><dir name="Items"><file name="Grid.php" hash="046e29343ccfc1b0d7b02ca7645963e6"/></dir><file name="Items.php" hash="409f1c07816f7e203d5ec6129e2709c9"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="7e0fbe25f560992e1f6639a3d5c28289"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Source"><dir name="Cron"><file name="Frequency.php" hash="2aafece84d3b2a1a386252a3e4c4f023"/><file name="Hours.php" hash="05a361c29436cde4bb1e9d9ea6ef6984"/></dir></dir></dir></dir><file name="Codes.php" hash="a270fbfd8afb815241104612e70159be"/><file name="Import.php" hash="83771be137bc024d62def97ae90a3a24"/><dir name="Mysql4"><dir name="Codes"><file name="Collection.php" hash="6d6974edc597384c9a591d13f77e1673"/></dir><file name="Codes.php" hash="13f52b9a047437e4e989bbd9a2c1c136"/><file name="Setup.php" hash="f53b40fbbaef248fd52be33af906a3f9"/></dir><file name="Observer.php" hash="2cae38701e71a99466d83c030d7567ba"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Codes"><file name="GridController.php" hash="8b5c0c1a3e89d4b3be6ae865099a0e5f"/></dir><dir name="Items"><file name="GridController.php" hash="7dabff14fd9199e1fb01e6e4ae86bd5d"/></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="2b4c259a37a42be60627f81a78a21c39"/><file name="config.xml" hash="2fa2da472f883afa8f8ea1254ee9e645"/><file name="system.xml" hash="de896c6f84b746b0bfdbba40fbeb4c96"/></dir><dir name="sql"><dir name="find_feed_setup"><file name="mysql4-install-0.0.1.php" hash="4fd8b15789abf8b3cc122e70e4cff2c2"/><file name="mysql4-upgrade-0.0.1-0.0.2.php" hash="b7f304fa1765f07bbfb9be85a463642f"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Find_Feed.xml" hash="a75332e3ae92f4b253aca19e60f8c15c"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="find"><dir name="template"><dir><dir name="head"><file name="window.phtml" hash="9d13baa5f42c4415110af2e0461d53d5"/></dir></dir></dir><dir name="layout"><file name="feed.xml" hash="74469083c4d9485dcbafd7409d828542"/></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Find_Feed.csv" hash="a5d654ef2bd381816504c6605026e6af"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Find_Feed</name>
4
+ <version>1.1.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Integration with TheFind shopping engine</summary>
10
  <description>Current integration includes managing product feeds from Magento store to TheFind, mapping of Magento Attributes to TheFind structure.</description>
11
+ <notes>1.1.1</notes>
12
  <authors><author><name>Magento Core Team</name><user>core</user><email>core@magentocommerce.com</email></author></authors>
13
+ <date>2012-02-24</date>
14
+ <time>14:16:04</time>
15
+ <contents><target name="magecommunity"><dir name="Find"><dir name="Feed"><dir name="Block"><dir name="Adminhtml"><dir name="Edit"><dir name="Codes"><dir name="Edit"><file name="Form.php" hash="f5acd612e197e1519457495d7e1b05af"/></dir></dir><file name="Codes.php" hash="e38ed12f89358626d46c97611d942d45"/></dir><dir name="List"><dir name="Codes"><file name="Grid.php" hash="9fac4674f898b8b73a8d97499905e928"/></dir><file name="Codes.php" hash="d1d472a21198fc47638a2f501220a440"/><dir name="Items"><file name="Grid.php" hash="9fdec28e22fc7be3a304d9957bee7afb"/></dir><file name="Items.php" hash="f83ac333ae8e3eb528f0b19a6e92633c"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="f52a45a43e001006b918f8821c383b75"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Source"><dir name="Cron"><file name="Frequency.php" hash="2a4332db1eeadf393c3e05af95884b25"/><file name="Hours.php" hash="1916b005fd9e8508efde2c5b3fedb45d"/></dir></dir></dir></dir><file name="Codes.php" hash="bb8aa6f61bde7981296e0baaefd86f1c"/><file name="Import.php" hash="9edc1d8f3fb3c1820c4e64f2afc0f080"/><dir name="Mysql4"><dir name="Codes"><file name="Collection.php" hash="152944ab4fbb73b4dfdfde24c10484ab"/></dir><file name="Codes.php" hash="98fc82834c73220a9b68672acd1cde40"/><file name="Setup.php" hash="32bd4a43173219a1dcd63d85d70d6b41"/></dir><file name="Observer.php" hash="d6425dd4bccf94f96bbe83cc961a332d"/><dir name="Resource"><dir name="Codes"><file name="Collection.php" hash="882cd3f8d04b7146ab94a80e8dc57ba1"/></dir><file name="Codes.php" hash="42388f5e6198a5642d6a035c51522f45"/><file name="Setup.php" hash="34b8190a8eec4b0c4ab33d994a634813"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Codes"><file name="GridController.php" hash="f7b9e1ebb5564ec3b1554bad54041cdf"/></dir><dir name="Items"><file name="GridController.php" hash="a799738ddfc6ef54e535e7be49d1b640"/></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="67e89bcff5fed448944128e9eb4dd3d6"/><file name="config.xml" hash="99d5d6aac9dce104d73263f65a3e0242"/><file name="system.xml" hash="f379ae78491eb3605661a9ca57bf19a8"/></dir><dir name="sql"><dir name="find_feed_setup"><file name="install-1.6.0.0.php" hash="79ec65545ddd08020ba098030c67e451"/><file name="mysql4-install-0.0.1.php" hash="bb96fdc455be3efeb911ac0cbaf5f3a1"/><file name="mysql4-upgrade-0.0.1-0.0.2.php" hash="852d2bf08e3e7f4af5615dc966f402b3"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Find_Feed.xml" hash="2defeeefc264c57df1af4c4dff621b9b"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="find"><dir name="template"><dir><dir name="head"><file name="window.phtml" hash="9d13baa5f42c4415110af2e0461d53d5"/></dir></dir></dir><dir name="layout"><file name="feed.xml" hash="0a2c3906eb4677a326543b8badf5f7ca"/></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Find_Feed.csv" hash="a5d654ef2bd381816504c6605026e6af"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>