Around_io - Version 1.2.1

Version Notes

This is a stable version, go ahead and use it. I am always here (hi@around.io) to help.

Download this release

Release Info

Developer Aroundio
Extension Around_io
Version 1.2.1
Comparing to
See all releases


Code changes from version 1.2.0 to 1.2.1

app/code/local/AroundIo/Apiext/Model/ApiCall/Api.php CHANGED
@@ -10,11 +10,12 @@ class AroundIo_Apiext_Model_ApiCall_Api
10
  $productlist = array();
11
 
12
  $details = Mage::getModel('catalog/product');
13
- // $tags = Mage::getModel('tag/tag');
 
14
  $connection = Mage::getSingleton('core/resource')->getConnection('core_read');
15
- $getalltagsql = "SELECT tag_relation.product_id, tag.name FROM tag, tag_relation where tag.tag_id = tag_relation.tag_id";
16
  $tagrows = $connection->fetchAll($getalltagsql);
17
- $getallmediasql = "SELECT catalog_product_entity_media_gallery.value, catalog_product_entity_media_gallery.entity_id, catalog_product_entity_media_gallery.value_id, catalog_product_entity_media_gallery_value.position FROM catalog_product_entity_media_gallery, catalog_product_entity_media_gallery_value where catalog_product_entity_media_gallery.value_id = catalog_product_entity_media_gallery_value.value_id";
18
  $mediarows = $connection->fetchAll($getallmediasql);
19
  $t=array();$m=array();
20
  foreach ($allproducts as $product)
@@ -53,6 +54,47 @@ class AroundIo_Apiext_Model_ApiCall_Api
53
 
54
  return $productlist;
55
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
 
57
  }
58
 
10
  $productlist = array();
11
 
12
  $details = Mage::getModel('catalog/product');
13
+ $prefix = Mage::getConfig()->getTablePrefix();
14
+ //// $tags = Mage::getModel('tag/tag');
15
  $connection = Mage::getSingleton('core/resource')->getConnection('core_read');
16
+ $getalltagsql = "SELECT ".$prefix."tag_relation.product_id, ".$prefix."tag.name FROM ".$prefix."tag, ".$prefix."tag_relation where ".$prefix."tag.tag_id = ".$prefix."tag_relation.tag_id";
17
  $tagrows = $connection->fetchAll($getalltagsql);
18
+ $getallmediasql = "SELECT ".$prefix."catalog_product_entity_media_gallery.value, ".$prefix."catalog_product_entity_media_gallery.entity_id, ".$prefix."catalog_product_entity_media_gallery.value_id, ".$prefix."catalog_product_entity_media_gallery_value.position FROM ".$prefix."catalog_product_entity_media_gallery, ".$prefix."catalog_product_entity_media_gallery_value where ".$prefix."catalog_product_entity_media_gallery.value_id = ".$prefix."catalog_product_entity_media_gallery_value.value_id";
19
  $mediarows = $connection->fetchAll($getallmediasql);
20
  $t=array();$m=array();
21
  foreach ($allproducts as $product)
54
 
55
  return $productlist;
56
  }
57
+
58
+ public function debugging()
59
+ {
60
+ $debugDetails = array();
61
+
62
+ //clear cache
63
+ try {
64
+ Mage::app()->cleanCache();
65
+ $clearcache = 1;
66
+ } catch (Exception $e) {
67
+ $clearcache =0;
68
+ }
69
+
70
+ //reindex
71
+ try {
72
+ for ($i = 1; $i <= 9; $i++) {
73
+ $process = Mage::getModel('index/process')->load($i);
74
+ $process->reindexAll();
75
+ }
76
+ $reindexing = 1;
77
+ } catch (Exception $e) {
78
+ $reindexing = 0;
79
+ }
80
+
81
+ //db name
82
+ $dbname = Mage::getConfig()->getResourceConnectionConfig('default_setup')->dbname;
83
+
84
+ //version
85
+ $magentoVersion = Mage::getVersion();
86
+
87
+ //prefix
88
+ $prefix = Mage::getConfig()->getTablePrefix();
89
+
90
+ //number of products
91
+ $products = Mage::getResourceModel('reports/product_collection')->addAttributeToSelect('*');
92
+ $count = count($products);
93
+
94
+ $debugDetails = array('cleancache' => $clearcache, 'reindexing' => $reindexing, 'dbname' => $dbname, 'version' => $magentoVersion, 'DBprefix' => $prefix, 'productcount' => $count);
95
+
96
+ return $debugDetails;
97
+ }
98
 
99
  }
100
 
app/code/local/AroundIo/Apiext/etc/api.xml CHANGED
@@ -12,6 +12,12 @@
12
  <acl>aroundio/apiext/allaccess</acl>
13
  </productDetails>
14
  </methods>
 
 
 
 
 
 
15
  </apiext_apicall>
16
  </resources>
17
  <resources_alias>
12
  <acl>aroundio/apiext/allaccess</acl>
13
  </productDetails>
14
  </methods>
15
+ <methods>
16
+ <debugging translate="title" module="apiext">
17
+ <title>Get details to debug</title>
18
+ <acl>aroundio/apiext/allaccess</acl>
19
+ </debugging>
20
+ </methods>
21
  </apiext_apicall>
22
  </resources>
23
  <resources_alias>
app/code/local/AroundIo/MageExt/etc/mageext_api.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <api>
3
- <api_key>XIGSLWGAQD</api_key>
4
  <api_username>around_api_user</api_username>
5
- <api_role_id>3</api_role_id>
6
- <api_user_id>2</api_user_id>
7
  </api>
1
  <?xml version="1.0"?>
2
  <api>
3
+ <api_key>UKQGCZPUZF</api_key>
4
  <api_username>around_api_user</api_username>
5
+ <api_role_id>1</api_role_id>
6
+ <api_user_id>1</api_user_id>
7
  </api>
app/etc/modules/AroundIo_MageExt.xml DELETED
@@ -1,9 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <AroundIo_MageExt>
5
- <active>true</active>
6
- <codePool>local</codePool>
7
- </AroundIo_MageExt>
8
- </modules>
9
- </config>
 
 
 
 
 
 
 
 
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Around_io</name>
4
- <version>1.2.0</version>
5
  <stability>stable</stability>
6
  <license uri="https://Around.io">Aroundio Trial License</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>A social media marketing automation tool. Plan, schedule and automate your social media postings in no time. We fetch (with your permission) all your product details from your online shop and give you pre filled option to post on multiple platforms. You get to choose from all your images, and hashtags, you can decide which image to post on which platform at what time. Super easy to use and deliver constant traffic to your online shop.</description>
11
  <notes>This is a stable version, go ahead and use it. I am always here (hi@around.io) to help.</notes>
12
  <authors><author><name>Aroundio</name><user>Aroundio</user><email>hi@around.io</email></author></authors>
13
- <date>2014-12-05</date>
14
- <time>12:30:56</time>
15
- <contents><target name="magelocal"><dir name="AroundIo"><dir name="Apiext"><dir name="Helper"><file name="Data.php" hash="05895505117911f1d6942c7d12dbf602"/></dir><dir name="Model"><dir name="ApiCall"><file name="Api.php" hash="6a202063dc933a872d9faf8c5b7960c6"/></dir></dir><dir name="etc"><file name="api.xml" hash="9dfb1b6d03bba9ac43a0c96e6e5c6d7a"/><file name="config.xml" hash="191ad2d2274db54f52a0cca4fb6921ae"/></dir></dir><dir name="MageExt"><dir name="Block"><file name="MageExt.php" hash="cb8aa476d78f84d8f5a525d54bbfefd3"/><file name="logo_aroundio.png" hash="50a68434aef6f33246dbd525b3fbba45"/><file name="mageext.phtml" hash="7ec1ddff1a7abc36c72d5f7a40de6f05"/></dir><dir name="Helper"><file name="Data.php" hash="341920b8de64dcaaef27b9ed1433369b"/></dir><dir name="controllers"><file name="AdminController.php" hash="e7c894405199381bf65001a306091277"/></dir><dir name="etc"><file name="config.xml" hash="0e9a1c84aea654853bf7c2cafeaccc0b"/><file name="mageext_api.xml" hash="ec47b89e48c6a15320e45a5015b96beb"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="AroundIo_Apiext.xml" hash="243e746273a436451a5eea9ffc10c6d1"/><file name="AroundIo_MageExt.xml" hash="56ebaac5be54eb080a6b25308383c3a3"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Magento_Core_Modules</name><channel>community</channel><min>1.5</min><max>1.9</max></package><extension><name>Core</name><min/><max/></extension></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Around_io</name>
4
+ <version>1.2.1</version>
5
  <stability>stable</stability>
6
  <license uri="https://Around.io">Aroundio Trial License</license>
7
  <channel>community</channel>
10
  <description>A social media marketing automation tool. Plan, schedule and automate your social media postings in no time. We fetch (with your permission) all your product details from your online shop and give you pre filled option to post on multiple platforms. You get to choose from all your images, and hashtags, you can decide which image to post on which platform at what time. Super easy to use and deliver constant traffic to your online shop.</description>
11
  <notes>This is a stable version, go ahead and use it. I am always here (hi@around.io) to help.</notes>
12
  <authors><author><name>Aroundio</name><user>Aroundio</user><email>hi@around.io</email></author></authors>
13
+ <date>2015-02-25</date>
14
+ <time>08:40:53</time>
15
+ <contents><target name="magelocal"><dir name="AroundIo"><dir name="Apiext"><dir name="Helper"><file name="Data.php" hash="05895505117911f1d6942c7d12dbf602"/></dir><dir name="Model"><dir name="ApiCall"><file name="Api.php" hash="9fe042f0ebe9bb86f1afab6ceae50ead"/></dir></dir><dir name="etc"><file name="api.xml" hash="c4bc94b243f4ed7c9d4bfb0577610988"/><file name="config.xml" hash="191ad2d2274db54f52a0cca4fb6921ae"/></dir></dir><dir name="MageExt"><dir name="Block"><file name="MageExt.php" hash="cb8aa476d78f84d8f5a525d54bbfefd3"/><file name="logo_aroundio.png" hash="50a68434aef6f33246dbd525b3fbba45"/><file name="mageext.phtml" hash="7ec1ddff1a7abc36c72d5f7a40de6f05"/></dir><dir name="Helper"><file name="Data.php" hash="341920b8de64dcaaef27b9ed1433369b"/></dir><dir name="controllers"><file name="AdminController.php" hash="e7c894405199381bf65001a306091277"/></dir><dir name="etc"><file name="config.xml" hash="0e9a1c84aea654853bf7c2cafeaccc0b"/><file name="mageext_api.xml" hash="fae4dc8de3464891fecf5c8ddf0f1b8f"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="AroundIo_Apiext.xml" hash="243e746273a436451a5eea9ffc10c6d1"/></dir><dir name="."><file name="modulesAroundIo_MageExt.xml" hash=""/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Magento_Core_Modules</name><channel>community</channel><min>1.5</min><max>1.9</max></package><extension><name>Core</name><min/><max/></extension></required></dependencies>
18
  </package>