megabile - Version 0.0.4

Version Notes

initial release. Post all issues or bugs at magazento.com/ticket

Download this release

Release Info

Developer volgodark
Extension megabile
Version 0.0.4
Comparing to
See all releases


Code changes from version 0.0.2 to 0.0.4

app/code/community/Magazento/Megabile/Model/Item.php CHANGED
@@ -21,8 +21,8 @@ class Magazento_Megabile_Model_Item extends Mage_Core_Model_Abstract
21
 
22
 
23
  public function prepareField($field) {
24
- $field = htmlentities(trim($field));
25
- $field = trim($field);
26
  return $field;
27
  }
28
 
@@ -51,7 +51,7 @@ class Magazento_Megabile_Model_Item extends Mage_Core_Model_Abstract
51
  }
52
 
53
  $io->streamOpen($file);
54
- $io->streamWrite('<?xml version="1.0" encoding="UTF-8"?>');
55
  $io->streamWrite('<xml date="'.date('Y-m-d H:i').'">');
56
 
57
  $io->streamWrite('<shop>' . "\n");
@@ -112,11 +112,11 @@ class Magazento_Megabile_Model_Item extends Mage_Core_Model_Abstract
112
  }
113
 
114
  if ($use_attributes) {
115
- $extra_description='\n\n';
116
  foreach ($attributes as $attributeItem) {
117
  $value_label = $Product->getResource()->getAttribute($attributeItem)->setStoreId($store_id)->getFrontend()->getValue($Product);
118
  $value_name = $Product->getResource()->getAttribute($attributeItem)->setStoreId($store_id)->getData('frontend_label');
119
- if ($value_label && $value_name) $extra_description.= $value_name.": ".$value_label."\n";
120
  }
121
  $description = $description.$extra_description;
122
  }
@@ -135,6 +135,8 @@ class Magazento_Megabile_Model_Item extends Mage_Core_Model_Abstract
135
  foreach ($cat_ids as $cat_id) {
136
  $io->streamWrite("\t\t".'<cid>'.$cat_id.'</cid>'."\n");
137
  }
 
 
138
  $io->streamWrite("\t\t</categoryId>\n");
139
  $io->streamWrite("\t\t".'<picture>'.$image.'</picture>'."\n");
140
  $io->streamWrite("\t\t".'<name><![CDATA['.$this->prepareField($Product->getName()).']]></name>'."\n");
21
 
22
 
23
  public function prepareField($field) {
24
+ // $field = htmlentities(trim($field));
25
+ // $field = trim($field);
26
  return $field;
27
  }
28
 
51
  }
52
 
53
  $io->streamOpen($file);
54
+ $io->streamWrite('<?xml version="1.0"?>');
55
  $io->streamWrite('<xml date="'.date('Y-m-d H:i').'">');
56
 
57
  $io->streamWrite('<shop>' . "\n");
112
  }
113
 
114
  if ($use_attributes) {
115
+ $extra_description='<br/><br/>';
116
  foreach ($attributes as $attributeItem) {
117
  $value_label = $Product->getResource()->getAttribute($attributeItem)->setStoreId($store_id)->getFrontend()->getValue($Product);
118
  $value_name = $Product->getResource()->getAttribute($attributeItem)->setStoreId($store_id)->getData('frontend_label');
119
+ if ($value_label && $value_name) $extra_description.= $value_name.": ".$value_label."<br/>";
120
  }
121
  $description = $description.$extra_description;
122
  }
135
  foreach ($cat_ids as $cat_id) {
136
  $io->streamWrite("\t\t".'<cid>'.$cat_id.'</cid>'."\n");
137
  }
138
+ $io->streamWrite("\t\t".'<cid>'.$root_category.'</cid>'."\n");
139
+
140
  $io->streamWrite("\t\t</categoryId>\n");
141
  $io->streamWrite("\t\t".'<picture>'.$image.'</picture>'."\n");
142
  $io->streamWrite("\t\t".'<name><![CDATA['.$this->prepareField($Product->getName()).']]></name>'."\n");
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>megabile</name>
4
- <version>0.0.2</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
@@ -11,9 +11,9 @@
11
  In Megabile we glad to provide you the simpliest way for pulishing your store on iPhone, already customized for your brand. Get native iPhone App for your store without any coding!</description>
12
  <notes>initial release. Post all issues or bugs at magazento.com/ticket</notes>
13
  <authors><author><name>volgodark</name><user>volgodark</user><email>volgodark@gmail.com</email></author></authors>
14
- <date>2013-03-27</date>
15
- <time>22:25:04</time>
16
- <contents><target name="magecommunity"><dir name="Magazento"><dir name="Megabile"><dir name="Block"><dir name="Admin"><dir name="Item"><dir name="Edit"><file name="Form.php" hash="42185aaf964eb7548d63adcb78aee8cf"/><dir name="Tab"><file name="Form.php" hash="f3c671d8f59d7d30301b48d77b484a2e"/><file name="Related.php" hash="cd5c4e18c011616c60e2585e28136da0"/></dir><file name="Tabs.php" hash="0bc2280975101e493d3d4f3fdcad4d1e"/></dir><file name="Edit.php" hash="7a379e684384dca6803d1f3cc9dcce0b"/><dir name="Grid"><dir name="Renderer"><file name="Action.php" hash="cd843831c9e76dba9f23e68f2f843bb7"/><file name="Category.php" hash="dbe682c16e63428a5e9f3311b1eed207"/><file name="Link.php" hash="aa44b8da85cdb8de90e63d5281cacdee"/><file name="Products.php" hash="973c9ec718838f76478aee086bf32e36"/><file name="Time.php" hash="0efbd6897f38287728a2c6d9f8a00605"/></dir></dir><file name="Grid.php" hash="1b4e73be8c5450d3e24a0165c8b9ae6d"/></dir><file name="Item.php" hash="05fa7f0a72a5fe2ba082ce65ca6e5430"/></dir><file name="Info.php" hash="eac61be58c6ba3126bc18b0213195908"/></dir><dir name="Helper"><file name="Data.php" hash="ecfa3ef0ca79a598483ee8da44a35a27"/><file name="Product.php" hash="04296e9936820fd93615cfcd2e61be31"/></dir><dir name="Model"><file name="Data.php" hash="7367397972efbf028d0f22eb9614fc55"/><file name="Item.php" hash="63e3e410f4437cbad16c6a227bdd5e73"/><dir name="Mysql4"><dir name="Item"><file name="Collection.php" hash="703fbd93edd66314356dd2ce4403b940"/></dir><file name="Item.php" hash="be3c74e0805a95224a21ecfceff8f7c6"/></dir></dir><dir name="controllers"><dir name="Admin"><file name="CatalogController.php" hash="8fe30b7db6e97dbc75cca66c66493c62"/><file name="ItemController.php" hash="0152694a48dd86a931d9c64a7c7ece4f"/></dir></dir><dir name="etc"><file name="config.xml" hash="f1e3c6926572db52bb0642e94e459917"/><file name="system.xml" hash="02e8758b0b1763436854de87bc15af26"/></dir><dir name="sql"><dir name="megabile_setup"><file name="mysql4-install-0.0.1.php" hash="9ae9132366291d841e9f9f73160be59c"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="magazento_megabile.xml" hash="604070b0422d05c63b201c2167c46f3c"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magazento_Megabile.xml" hash="822e0f1c604b5d762f33ee47b30cbff8"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="magazento_megabile"><file name="style.css" hash="f25650dc11cd81736bb880de1fa80e94"/></dir></dir></dir></dir></target></contents>
17
  <compatible/>
18
  <dependencies><required><php><min>5.1.1</min><max>6.0.0</max></php></required></dependencies>
19
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>megabile</name>
4
+ <version>0.0.4</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
11
  In Megabile we glad to provide you the simpliest way for pulishing your store on iPhone, already customized for your brand. Get native iPhone App for your store without any coding!</description>
12
  <notes>initial release. Post all issues or bugs at magazento.com/ticket</notes>
13
  <authors><author><name>volgodark</name><user>volgodark</user><email>volgodark@gmail.com</email></author></authors>
14
+ <date>2013-03-29</date>
15
+ <time>09:53:08</time>
16
+ <contents><target name="magecommunity"><dir name="Magazento"><dir name="Megabile"><dir name="Block"><dir name="Admin"><dir name="Item"><dir name="Edit"><file name="Form.php" hash="42185aaf964eb7548d63adcb78aee8cf"/><dir name="Tab"><file name="Form.php" hash="f3c671d8f59d7d30301b48d77b484a2e"/><file name="Related.php" hash="cd5c4e18c011616c60e2585e28136da0"/></dir><file name="Tabs.php" hash="0bc2280975101e493d3d4f3fdcad4d1e"/></dir><file name="Edit.php" hash="7a379e684384dca6803d1f3cc9dcce0b"/><dir name="Grid"><dir name="Renderer"><file name="Action.php" hash="cd843831c9e76dba9f23e68f2f843bb7"/><file name="Category.php" hash="dbe682c16e63428a5e9f3311b1eed207"/><file name="Link.php" hash="aa44b8da85cdb8de90e63d5281cacdee"/><file name="Products.php" hash="973c9ec718838f76478aee086bf32e36"/><file name="Time.php" hash="0efbd6897f38287728a2c6d9f8a00605"/></dir></dir><file name="Grid.php" hash="1b4e73be8c5450d3e24a0165c8b9ae6d"/></dir><file name="Item.php" hash="05fa7f0a72a5fe2ba082ce65ca6e5430"/></dir><file name="Info.php" hash="eac61be58c6ba3126bc18b0213195908"/></dir><dir name="Helper"><file name="Data.php" hash="ecfa3ef0ca79a598483ee8da44a35a27"/><file name="Product.php" hash="04296e9936820fd93615cfcd2e61be31"/></dir><dir name="Model"><file name="Data.php" hash="7367397972efbf028d0f22eb9614fc55"/><file name="Item.php" hash="41bb5abc8d73d496c85cdeaa6e24052d"/><dir name="Mysql4"><dir name="Item"><file name="Collection.php" hash="703fbd93edd66314356dd2ce4403b940"/></dir><file name="Item.php" hash="be3c74e0805a95224a21ecfceff8f7c6"/></dir></dir><dir name="controllers"><dir name="Admin"><file name="CatalogController.php" hash="8fe30b7db6e97dbc75cca66c66493c62"/><file name="ItemController.php" hash="0152694a48dd86a931d9c64a7c7ece4f"/></dir></dir><dir name="etc"><file name="config.xml" hash="f1e3c6926572db52bb0642e94e459917"/><file name="system.xml" hash="02e8758b0b1763436854de87bc15af26"/></dir><dir name="sql"><dir name="megabile_setup"><file name="mysql4-install-0.0.1.php" hash="9ae9132366291d841e9f9f73160be59c"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="magazento_megabile.xml" hash="604070b0422d05c63b201c2167c46f3c"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magazento_Megabile.xml" hash="822e0f1c604b5d762f33ee47b30cbff8"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="magazento_megabile"><file name="style.css" hash="f25650dc11cd81736bb880de1fa80e94"/></dir></dir></dir></dir></target></contents>
17
  <compatible/>
18
  <dependencies><required><php><min>5.1.1</min><max>6.0.0</max></php></required></dependencies>
19
  </package>