FacebookProductDirectoryCommunity - Version 0.1.2

Version Notes

Free Version

Download this release

Release Info

Developer Magento Core Team
Extension FacebookProductDirectoryCommunity
Version 0.1.2
Comparing to
See all releases


Code changes from version 0.1.1 to 0.1.2

app/code/local/Magestore/Facebook/Model/Category.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function getCategories(){
3
+ $urlXML = 'http://facebook.magestore.com/category.php';
4
+ $doc = new DOMDocument();
5
+ $doc->load($urlXML);
6
+ $xml = simplexml_load_string($doc->saveXML());
7
+ $categories = array();
8
+ foreach($xml->category as $category){
9
+ $categories[(string)$category->category_id] = (string)$category->category_name;
10
+
11
+ }
12
+ return $categories;
13
+ }
14
+ class Magestore_Facebook_Model_Category extends Varien_Object
15
+ {
16
+ const STATUS_ENABLED = 1;
17
+ const STATUS_DISABLED = 2;
18
+
19
+ static public function toOptionArray()
20
+ {
21
+ $categories = getCategories();
22
+ return $categories;
23
+ }
24
+ }
app/code/local/Magestore/Facebook/etc/config.xml CHANGED
@@ -9,7 +9,7 @@
9
  </default>
10
  <modules>
11
  <Magestore_Facebook>
12
- <version>0.1.1</version>
13
  </Magestore_Facebook>
14
  </modules>
15
  <frontend>
9
  </default>
10
  <modules>
11
  <Magestore_Facebook>
12
+ <version>0.1.2</version>
13
  </Magestore_Facebook>
14
  </modules>
15
  <frontend>
app/code/local/Magestore/Facebook/etc/system.xml CHANGED
@@ -51,7 +51,16 @@
51
  <show_in_website>1</show_in_website>
52
  <show_in_store>1</show_in_store>
53
  <comment><![CDATA[The name of your store. <br/>Example :<i>My Shopping</i><br/><font color="red">This is a required field</font>]]></comment>
54
- </store_name>
 
 
 
 
 
 
 
 
 
55
  <contact_name translate="label">
56
  <label>Contact Name</label>
57
  <frontend_type>text</frontend_type>
@@ -101,7 +110,11 @@
101
  <show_in_default>1</show_in_default>
102
  <show_in_website>1</show_in_website>
103
  <show_in_store>1</show_in_store>
104
- <comment><![CDATA[Please note, We require a short description about your store<br/><font color="red">This is a required field</font><br/><br/> ]]></comment>
 
 
 
 
105
  </description>
106
 
107
  </fields>
51
  <show_in_website>1</show_in_website>
52
  <show_in_store>1</show_in_store>
53
  <comment><![CDATA[The name of your store. <br/>Example :<i>My Shopping</i><br/><font color="red">This is a required field</font>]]></comment>
54
+ </store_name>
55
+ <category translate="label">
56
+ <label>Store Category</label>
57
+ <frontend_type>select</frontend_type>
58
+ <source_model>facebook/category</source_model>
59
+ <sort_order>3</sort_order>
60
+ <show_in_default>1</show_in_default>
61
+ <show_in_website>1</show_in_website>
62
+ <show_in_store>1</show_in_store>
63
+ </category>
64
  <contact_name translate="label">
65
  <label>Contact Name</label>
66
  <frontend_type>text</frontend_type>
110
  <show_in_default>1</show_in_default>
111
  <show_in_website>1</show_in_website>
112
  <show_in_store>1</show_in_store>
113
+ <comment><![CDATA[
114
+ Please note, We require a short description about your store<br/>
115
+ <font color="red">This is a required field</font><br/><br/>
116
+ ]]>
117
+ </comment>
118
  </description>
119
 
120
  </fields>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>FacebookProductDirectoryCommunity</name>
4
- <version>0.1.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">Extension license name (OSL v3.0)</license>
7
  <channel>community</channel>
@@ -12,9 +12,9 @@ copy of your Magento store into Facebook. All the information from your store ca
12
  Facebook in real time.</description>
13
  <notes>Free Version</notes>
14
  <authors><author><name>Magestore</name><user>auto-converted</user><email>magestore@gmail.com</email></author></authors>
15
- <date>2010-03-12</date>
16
- <time>07:14:34</time>
17
- <contents><target name="magelocal"><dir name="Magestore"><dir name="Facebook"><dir name="Block"><file name="Facebook.php" hash="f686c270ec8762008e41dbd8fdfbcb72"/><dir name="Adminhtml"><file name="Facebook.php" hash="27b9451e2951dbab34817a0570bbb3b8"/><dir name="Facebook"><file name="Edit.php" hash="39be311cccaa58c9fef1fecff8b0097f"/><file name="Grid.php" hash="b0f8d0850f4e9c32ec5159e974008bfb"/><dir name="Edit"><file name="Form.php" hash="5ac91f35df9a73e6475a867a301e66d0"/><file name="Tabs.php" hash="b2e8c09989aa46e8eee4d521884586b2"/><dir name="Tab"><file name="Form.php" hash="705386c1f07ddce7b520427f5c5f0ee3"/></dir></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="676c0046d2d009de66edbd2c8040dc68"/><dir name="Adminhtml"><file name="FacebookController.php" hash="a4c4d8b4accdad6b0481c4ec148ff51c"/></dir></dir><dir name="etc"><file name="config.xml" hash="82c58a06949f64a0d8e14029bbb430d6"/><file name="system.xml" hash="4df677efb764ffd92083f12b52772e76"/></dir><dir name="Helper"><file name="Data.php" hash="0ca04ab3b013d293535d4827016a3181"/></dir><dir name="Model"><file name="Export.php" hash="e0b133cd642b6a2021e8ede8bbe781e0"/><file name="Facebook.php" hash="8a6d78f1ddd525c02f87d6f0bc274b88"/><file name="Status.php" hash="a1deedfb19fb208291cc1f33bb647175"/><dir name="Mysql4"><file name="Facebook.php" hash="c7043bb1b16ccd3b6bfaf42b1d9ca10a"/><dir name="Facebook"><file name="Collection.php" hash="1ebdd1537327340d6e355ca05f739a50"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magestore_Facebook.xml" hash="2af9340c3f8af07cc2201decbf432685"/></dir></target></contents>
18
  <compatible/>
19
  <dependencies/>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>FacebookProductDirectoryCommunity</name>
4
+ <version>0.1.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">Extension license name (OSL v3.0)</license>
7
  <channel>community</channel>
12
  Facebook in real time.</description>
13
  <notes>Free Version</notes>
14
  <authors><author><name>Magestore</name><user>auto-converted</user><email>magestore@gmail.com</email></author></authors>
15
+ <date>2010-03-16</date>
16
+ <time>06:17:35</time>
17
+ <contents><target name="magelocal"><dir name="Magestore"><dir name="Facebook"><dir name="Block"><file name="Facebook.php" hash="f686c270ec8762008e41dbd8fdfbcb72"/><dir name="Adminhtml"><file name="Facebook.php" hash="27b9451e2951dbab34817a0570bbb3b8"/><dir name="Facebook"><file name="Edit.php" hash="39be311cccaa58c9fef1fecff8b0097f"/><file name="Grid.php" hash="b0f8d0850f4e9c32ec5159e974008bfb"/><dir name="Edit"><file name="Form.php" hash="5ac91f35df9a73e6475a867a301e66d0"/><file name="Tabs.php" hash="b2e8c09989aa46e8eee4d521884586b2"/><dir name="Tab"><file name="Form.php" hash="705386c1f07ddce7b520427f5c5f0ee3"/></dir></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="676c0046d2d009de66edbd2c8040dc68"/><dir name="Adminhtml"><file name="FacebookController.php" hash="a4c4d8b4accdad6b0481c4ec148ff51c"/></dir></dir><dir name="etc"><file name="config.xml" hash="5c220daf0b43cf59162654a8168a3173"/><file name="system.xml" hash="13690e2b02dabdecf9b06e0249c05aed"/></dir><dir name="Helper"><file name="Data.php" hash="0ca04ab3b013d293535d4827016a3181"/></dir><dir name="Model"><file name="Category.php" hash="64f32d91bdfa5d9adfa78adbe73967c3"/><file name="Export.php" hash="e0b133cd642b6a2021e8ede8bbe781e0"/><file name="Facebook.php" hash="8a6d78f1ddd525c02f87d6f0bc274b88"/><file name="Status.php" hash="a1deedfb19fb208291cc1f33bb647175"/><dir name="Mysql4"><file name="Facebook.php" hash="c7043bb1b16ccd3b6bfaf42b1d9ca10a"/><dir name="Facebook"><file name="Collection.php" hash="1ebdd1537327340d6e355ca05f739a50"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magestore_Facebook.xml" hash="2af9340c3f8af07cc2201decbf432685"/></dir></target></contents>
18
  <compatible/>
19
  <dependencies/>
20
  </package>