Ranvii_Feed - Version 2.2.6

Version Notes

Resolve issue

Download this release

Release Info

Developer Magento Core Team
Extension Ranvii_Feed
Version 2.2.6
Comparing to
See all releases


Code changes from version 2.2.5 to 2.2.6

app/code/community/Ranvii/Feed/controllers/Adminhtml/ItemsController.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class Ranvii_Feed_Adminhtml_ItemsController extends Mage_Adminhtml_Controller_Action{
4
 
5
  protected function _initAction() {
6
  $this->loadLayout()
@@ -12,6 +12,20 @@ class Ranvii_Feed_Adminhtml_ItemsController extends Mage_Adminhtml_Controller_Ac
12
 
13
  public function indexAction() {
14
  $this->_initAction();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  $this->renderLayout();
16
 
17
  }
@@ -19,7 +33,7 @@ class Ranvii_Feed_Adminhtml_ItemsController extends Mage_Adminhtml_Controller_Ac
19
  /* public function writeTempData(){
20
  if($feed_id = $this->getRequest()->getParam('id')){
21
 
22
- $feed = Mage::getModel('ranvii_feed/item')->load($feed_id);
23
  $start = intval($this->getRequest()->getParam('start'));
24
  $length = intval($this->getRequest()->getParam('length'));
25
  $feed->writeTempFile($start, $length);
@@ -34,7 +48,7 @@ class Ranvii_Feed_Adminhtml_ItemsController extends Mage_Adminhtml_Controller_Ac
34
  try{
35
  $id = $this->getRequest()->getParam('id');
36
 
37
- $model = Mage::getModel('ranvii_feed/item');
38
 
39
 
40
  if(isset($data['field'])){
@@ -147,7 +161,7 @@ class Ranvii_Feed_Adminhtml_ItemsController extends Mage_Adminhtml_Controller_Ac
147
  if(is_array($ids) && !empty($ids)){
148
  foreach($ids as $id){
149
 
150
- $item = Mage::getModel('ranvii_feed/item')->load($id);
151
  $item->delete();
152
 
153
  }
@@ -158,12 +172,12 @@ class Ranvii_Feed_Adminhtml_ItemsController extends Mage_Adminhtml_Controller_Ac
158
  $this->_initAction();
159
 
160
  if($data = Mage::getSingleton('core/session')->getFeedData()){
161
- Mage::register('ranvii_feed', Mage::getModel('ranvii_feed/item')->addData($data));
162
  Mage::getSingleton('core/session')->setFeedData(null);
163
  }
164
 
165
- $this->_addContent($this->getLayout()->createBlock('ranvii_feed/adminhtml_items_edit'))
166
- ->_addLeft($this->getLayout()->createBlock('ranvii_feed/adminhtml_items_edit_tabs'));
167
 
168
  $this->renderLayout();
169
 
@@ -174,11 +188,11 @@ class Ranvii_Feed_Adminhtml_ItemsController extends Mage_Adminhtml_Controller_Ac
174
  $this->_initAction();
175
 
176
  if($id = $this->getRequest()->getParam('id')){
177
- Mage::register('ranvii_feed', Mage::getModel('ranvii_feed/item')->load($id));
178
  }
179
 
180
- $this->_addContent($this->getLayout()->createBlock('ranvii_feed/adminhtml_items_edit'))
181
- ->_addLeft($this->getLayout()->createBlock('ranvii_feed/adminhtml_items_edit_tabs'));
182
 
183
  $this->renderLayout();
184
 
@@ -188,7 +202,7 @@ class Ranvii_Feed_Adminhtml_ItemsController extends Mage_Adminhtml_Controller_Ac
188
 
189
  if($id = $this->getRequest()->getParam('id')){
190
 
191
- $item = Mage::getModel('ranvii_feed/item')->load($id);
192
 
193
  try{
194
 
@@ -221,7 +235,7 @@ class Ranvii_Feed_Adminhtml_ItemsController extends Mage_Adminhtml_Controller_Ac
221
 
222
  try{
223
 
224
- $feed = Mage::getModel('ranvii_feed/item')->load($id);
225
  Mage::app()->setCurrentStore($feed->getStoreId());
226
  $feed->setRestartCron(1);
227
  $feed->save();
@@ -273,15 +287,15 @@ class Ranvii_Feed_Adminhtml_ItemsController extends Mage_Adminhtml_Controller_Ac
273
  $iterator = $this->getRequest()->getParam('iterator');
274
 
275
  if ($code == 'product_type'){
276
- $condition = Ranvii_Feed_Block_Adminhtml_Items_Edit_Tab_Filter::getConditionSelectLight($iterator);
277
  }else{
278
- $condition = Ranvii_Feed_Block_Adminhtml_Items_Edit_Tab_Filter::getConditionSelect($iterator);
279
  }
280
 
281
  $this->getResponse()->setBody(
282
  Zend_Json::encode(
283
  array(
284
- 'attributevalue' => Ranvii_Feed_Block_Adminhtml_Items_Edit_Tab_Filter::getAttributeValueField($code, $name, null, $store_id),
285
  'condition' => $condition,
286
  'iterator' => $iterator
287
  )
1
  <?php
2
 
3
+ class Ranvi_Feed_Adminhtml_ItemsController extends Mage_Adminhtml_Controller_Action{
4
 
5
  protected function _initAction() {
6
  $this->loadLayout()
12
 
13
  public function indexAction() {
14
  $this->_initAction();
15
+ $prefix = Mage::getConfig()->getTablePrefix();
16
+ $table=$prefix."ranvii_feed";
17
+
18
+ $istableExist = Mage::getSingleton('core/resource')->getConnection('backup_write')->showTableStatus($table);
19
+ $write = Mage::getSingleton('core/resource')->getConnection('core_write');
20
+ if (!is_array($istableExist)){
21
+ $write->query("CREATE TABLE ".$table."(
22
+ id smallint(6) NOT NULL auto_increment,
23
+ vartimestamp varchar(255) NOT NULL,
24
+ PRIMARY KEY (`id`)
25
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Ranvi Feed' AUTO_INCREMENT=1;");
26
+
27
+ $write->query("INSERT INTO ".$table."(id,vartimestamp) values(1,'321')");
28
+ }
29
  $this->renderLayout();
30
 
31
  }
33
  /* public function writeTempData(){
34
  if($feed_id = $this->getRequest()->getParam('id')){
35
 
36
+ $feed = Mage::getModel('ranvi_feed/item')->load($feed_id);
37
  $start = intval($this->getRequest()->getParam('start'));
38
  $length = intval($this->getRequest()->getParam('length'));
39
  $feed->writeTempFile($start, $length);
48
  try{
49
  $id = $this->getRequest()->getParam('id');
50
 
51
+ $model = Mage::getModel('ranvi_feed/item');
52
 
53
 
54
  if(isset($data['field'])){
161
  if(is_array($ids) && !empty($ids)){
162
  foreach($ids as $id){
163
 
164
+ $item = Mage::getModel('ranvi_feed/item')->load($id);
165
  $item->delete();
166
 
167
  }
172
  $this->_initAction();
173
 
174
  if($data = Mage::getSingleton('core/session')->getFeedData()){
175
+ Mage::register('ranvi_feed', Mage::getModel('ranvi_feed/item')->addData($data));
176
  Mage::getSingleton('core/session')->setFeedData(null);
177
  }
178
 
179
+ $this->_addContent($this->getLayout()->createBlock('ranvi_feed/adminhtml_items_edit'))
180
+ ->_addLeft($this->getLayout()->createBlock('ranvi_feed/adminhtml_items_edit_tabs'));
181
 
182
  $this->renderLayout();
183
 
188
  $this->_initAction();
189
 
190
  if($id = $this->getRequest()->getParam('id')){
191
+ Mage::register('ranvi_feed', Mage::getModel('ranvi_feed/item')->load($id));
192
  }
193
 
194
+ $this->_addContent($this->getLayout()->createBlock('ranvi_feed/adminhtml_items_edit'))
195
+ ->_addLeft($this->getLayout()->createBlock('ranvi_feed/adminhtml_items_edit_tabs'));
196
 
197
  $this->renderLayout();
198
 
202
 
203
  if($id = $this->getRequest()->getParam('id')){
204
 
205
+ $item = Mage::getModel('ranvi_feed/item')->load($id);
206
 
207
  try{
208
 
235
 
236
  try{
237
 
238
+ $feed = Mage::getModel('ranvi_feed/item')->load($id);
239
  Mage::app()->setCurrentStore($feed->getStoreId());
240
  $feed->setRestartCron(1);
241
  $feed->save();
287
  $iterator = $this->getRequest()->getParam('iterator');
288
 
289
  if ($code == 'product_type'){
290
+ $condition = Ranvi_Feed_Block_Adminhtml_Items_Edit_Tab_Filter::getConditionSelectLight($iterator);
291
  }else{
292
+ $condition = Ranvi_Feed_Block_Adminhtml_Items_Edit_Tab_Filter::getConditionSelect($iterator);
293
  }
294
 
295
  $this->getResponse()->setBody(
296
  Zend_Json::encode(
297
  array(
298
+ 'attributevalue' => Ranvi_Feed_Block_Adminhtml_Items_Edit_Tab_Filter::getAttributeValueField($code, $name, null, $store_id),
299
  'condition' => $condition,
300
  'iterator' => $iterator
301
  )
app/code/community/Ranvii/Feed/etc/config.xml CHANGED
@@ -3,7 +3,7 @@
3
  <config>
4
  <modules>
5
  <Ranvii_Feed>
6
- <version>2.2.5</version>
7
  </Ranvii_Feed>
8
  </modules>
9
  <frontend>
3
  <config>
4
  <modules>
5
  <Ranvii_Feed>
6
+ <version>2.2.6</version>
7
  </Ranvii_Feed>
8
  </modules>
9
  <frontend>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Ranvii_Feed</name>
4
- <version>2.2.5</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>Export Your Magento Store To Popular Feed Formats (csv, txt) for Google Shopping, and other CSEs</summary>
10
- <description>Export Your Magento Store To Popular Feed Formats (csv, txt) for Google Shopping, and other CSEs</description>
11
- <notes>Export Your Magento Store To Popular Feed Formats (csv, txt) for Google Shopping, and other CSEs</notes>
12
  <authors><author><name>Ranvi</name><user>auto-converted</user><email>ravindra.palkonda@gmail.com</email></author></authors>
13
- <date>2013-08-03</date>
14
- <time>09:32:35</time>
15
- <contents><target name="magecommunity"><dir name="Ranvii"><dir name="Feed"><dir name="Block"><dir name="Adminhtml"><dir name="Config"><dir name="Form"><dir name="Renderer"><file name="Website.php" hash="23688bbb9d653d8310a41f8742c7e324"/></dir></dir></dir><dir name="Items"><dir name="Edit"><dir name="Tab"><dir name="Content"><file name="Csv.php" hash="3428e1ab197f6f8104261e2bb31ad991"/></dir><file name="Advanced.php" hash="81ad09b1a0fa08a09db8c9da33be313b"/><file name="Main.php" hash="7f4c7ad074254526fb7ffa759e19c3c9"/><file name="Type.php" hash="87fa928e1e7fe4c20189cba17c6e6793"/></dir><file name="Form.php" hash="5207fb8d2982f5cf896c1467f5f1427e"/><file name="Tabs.php" hash="4a8d7f3d430934fe297d6359f8094fde"/></dir><dir name="Grid"><dir name="Renderer"><file name="AccessUrl.php" hash="a43e64e6a0c4071a87d4fae721f48e85"/><file name="Datetime.php" hash="6514ed7da7aaf54fff2bb8d248f77a4e"/></dir></dir><file name="Edit.php" hash="37ef974494f8c6375597dd426fd8bd22"/><file name="Grid.php" hash="84bfb068e187495ca545148de891e5c9"/></dir><file name="Items.php" hash="ba94a0d72450c0a837aeb491f9f7cb2d"/></dir></dir><dir name="Helper"><file name="Data.php" hash="64ef258595feb7fe1ec0048e5f56f799"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Source"><file name="Store.php" hash="c30bffe54e62e886bf9d876e3b707940"/></dir></dir></dir></dir><dir name="Custom"><file name="Attribute.php" hash="23edde310743d2a093db8307da6e5845"/></dir><dir name="Item"><dir name="Block"><file name="Category.php" hash="42e996b9d7a4ed9da647ab056273c120"/><file name="Product.php" hash="ba216e1bc70cc7ef3a42895c24a52224"/></dir><file name="Block.php" hash="4f3df01a6a68e31171991432124e1222"/></dir><dir name="Mysql4"><dir name="Custom"><dir name="Attribute"><file name="Collection.php" hash="ce91d0191b073d0e04e2c5eb9f3294c0"/></dir><file name="Attribute.php" hash="973debd0290a6aff5ee6a564f466a50b"/></dir><dir name="Item"><file name="Collection.php" hash="c33842defd04c7699d4896f78b50cd7a"/></dir><file name="Item.php" hash="1b85ac77a916616f9fe9e0abd40e13e6"/></dir><dir name="Product"><file name="Collection.php" hash="7bc6ff9043d595ee83f912eed2198ce0"/></dir><file name="Item.php" hash="cbf630866c3711a9d1a0496a1c103d84"/><file name="Observer.php" hash="4b434477773399cc75f8383b786bf684"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ItemsController.php" hash="a983268293ec1410d03d9f333c29e301"/></dir><file name="IndexController.php" hash="250e529bb5521b2bdf3bab9ca9377cb9"/></dir><dir name="etc"><file name="adminhtml.xml" hash="33331e005d12dea27b04acb3b582ddf2"/><file name="config.xml" hash="776d9b74e89178d8f044b5da85a05108"/></dir><dir name="sql"><dir name="ranvii_feed_setup"><file name="mysql4-install-1.0.php" hash="df126f5c6dffb5cb19a6f34b3792045c"/><file name="mysql4-install-1.3.php" hash="7bdc8c07b8c93a893bd78a81f1771ce1"/><file name="mysql4-install-1.4.php" hash="666c423d6522e0ddfded14de306e75ac"/><file name="mysql4-install-2.0.php" hash="0f7b33a2552cd77be4b148d38140d727"/><file name="mysql4-upgrade-1.3-1.4.php" hash="72ce88e923886175387617119ae9f6b6"/><file name="mysql4-upgrade-1.4-2.0.php" hash="82a9d3e6f5929e224a45ef428180fd46"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ranvii_Feed.xml" hash="7d6d8f5f5706d13e167ac5813839ef67"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="ranvii"><dir name="feed"><dir name="item"><dir name="edit"><dir name="content"><file name="mapping.phtml" hash="f3f90f631cecfb7fdd8dcc56178db748"/></dir><file name="content.phtml" hash="39cda8185ffd70237d25a1b7519a0848"/></dir><dir name="import"><file name="form.phtml" hash="c41605115b3925a70369388b9f832225"/></dir></dir></dir></dir></dir><dir name="layout"><file name="ranvii-feed.xml" hash="299ed21a842abad1e7dad5d2ac59b14a"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="ranvii"><file name="feed.css" hash="e422627c523a3e101d71991defe4a3ae"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Ranvii_Feed</name>
4
+ <version>2.2.6</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>Resolve issue</summary>
10
+ <description>Resolve issue</description>
11
+ <notes>Resolve issue</notes>
12
  <authors><author><name>Ranvi</name><user>auto-converted</user><email>ravindra.palkonda@gmail.com</email></author></authors>
13
+ <date>2013-08-13</date>
14
+ <time>11:39:28</time>
15
+ <contents><target name="magecommunity"><dir name="Ranvii"><dir name="Feed"><dir name="Block"><dir name="Adminhtml"><dir name="Config"><dir name="Form"><dir name="Renderer"><file name="Website.php" hash="23688bbb9d653d8310a41f8742c7e324"/></dir></dir></dir><dir name="Items"><dir name="Edit"><dir name="Tab"><dir name="Content"><file name="Csv.php" hash="3428e1ab197f6f8104261e2bb31ad991"/></dir><file name="Advanced.php" hash="81ad09b1a0fa08a09db8c9da33be313b"/><file name="Main.php" hash="7f4c7ad074254526fb7ffa759e19c3c9"/><file name="Type.php" hash="87fa928e1e7fe4c20189cba17c6e6793"/></dir><file name="Form.php" hash="5207fb8d2982f5cf896c1467f5f1427e"/><file name="Tabs.php" hash="4a8d7f3d430934fe297d6359f8094fde"/></dir><dir name="Grid"><dir name="Renderer"><file name="AccessUrl.php" hash="a43e64e6a0c4071a87d4fae721f48e85"/><file name="Datetime.php" hash="6514ed7da7aaf54fff2bb8d248f77a4e"/></dir></dir><file name="Edit.php" hash="37ef974494f8c6375597dd426fd8bd22"/><file name="Grid.php" hash="84bfb068e187495ca545148de891e5c9"/></dir><file name="Items.php" hash="ba94a0d72450c0a837aeb491f9f7cb2d"/></dir></dir><dir name="Helper"><file name="Data.php" hash="64ef258595feb7fe1ec0048e5f56f799"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Source"><file name="Store.php" hash="c30bffe54e62e886bf9d876e3b707940"/></dir></dir></dir></dir><dir name="Custom"><file name="Attribute.php" hash="23edde310743d2a093db8307da6e5845"/></dir><dir name="Item"><dir name="Block"><file name="Category.php" hash="42e996b9d7a4ed9da647ab056273c120"/><file name="Product.php" hash="ba216e1bc70cc7ef3a42895c24a52224"/></dir><file name="Block.php" hash="4f3df01a6a68e31171991432124e1222"/></dir><dir name="Mysql4"><dir name="Custom"><dir name="Attribute"><file name="Collection.php" hash="ce91d0191b073d0e04e2c5eb9f3294c0"/></dir><file name="Attribute.php" hash="973debd0290a6aff5ee6a564f466a50b"/></dir><dir name="Item"><file name="Collection.php" hash="c33842defd04c7699d4896f78b50cd7a"/></dir><file name="Item.php" hash="1b85ac77a916616f9fe9e0abd40e13e6"/></dir><dir name="Product"><file name="Collection.php" hash="7bc6ff9043d595ee83f912eed2198ce0"/></dir><file name="Item.php" hash="cbf630866c3711a9d1a0496a1c103d84"/><file name="Observer.php" hash="4b434477773399cc75f8383b786bf684"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ItemsController.php" hash="29161354bbece990d3a16465cdbbf99a"/></dir><file name="IndexController.php" hash="250e529bb5521b2bdf3bab9ca9377cb9"/></dir><dir name="etc"><file name="adminhtml.xml" hash="33331e005d12dea27b04acb3b582ddf2"/><file name="config.xml" hash="47c6e6e17dc15498a5c2cb138a4d4c93"/></dir><dir name="sql"><dir name="ranvii_feed_setup"><file name="mysql4-install-1.0.php" hash="df126f5c6dffb5cb19a6f34b3792045c"/><file name="mysql4-install-1.3.php" hash="7bdc8c07b8c93a893bd78a81f1771ce1"/><file name="mysql4-install-1.4.php" hash="666c423d6522e0ddfded14de306e75ac"/><file name="mysql4-install-2.0.php" hash="0f7b33a2552cd77be4b148d38140d727"/><file name="mysql4-upgrade-1.3-1.4.php" hash="72ce88e923886175387617119ae9f6b6"/><file name="mysql4-upgrade-1.4-2.0.php" hash="82a9d3e6f5929e224a45ef428180fd46"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ranvii_Feed.xml" hash="7d6d8f5f5706d13e167ac5813839ef67"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="ranvii-feed.xml" hash="299ed21a842abad1e7dad5d2ac59b14a"/></dir><dir name="template"><dir name="ranvii"><dir name="feed"><dir name="item"><dir name="edit"><dir name="content"><file name="mapping.phtml" hash="f3f90f631cecfb7fdd8dcc56178db748"/></dir><file name="content.phtml" hash="39cda8185ffd70237d25a1b7519a0848"/></dir><dir name="import"><file name="form.phtml" hash="c41605115b3925a70369388b9f832225"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="ranvii"><file name="feed.css" hash="e422627c523a3e101d71991defe4a3ae"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>