feedaty - Version 1.1.29

Version Notes

Fixed some notice alerts

Download this release

Release Info

Developer Feedaty
Extension feedaty
Version 1.1.29
Comparing to
See all releases


Code changes from version 1.1.28 to 1.1.29

app/code/community/Feedaty/Badge/Model/StyleProduct.php CHANGED
@@ -3,6 +3,7 @@ class Feedaty_Badge_Model_StyleProduct
3
  {
4
  public function toOptionArray()
5
  {
 
6
  $data = Feedaty_Badge_Model_WebService::_get_FeedatyData();
7
 
8
  foreach ($data as $k=>$v) {
3
  {
4
  public function toOptionArray()
5
  {
6
+ if (strlen(Mage::getStoreConfig('feedaty_global/feedaty_preferences/feedaty_code')) == 0) return array();
7
  $data = Feedaty_Badge_Model_WebService::_get_FeedatyData();
8
 
9
  foreach ($data as $k=>$v) {
app/code/community/Feedaty/Badge/Model/StyleStore.php CHANGED
@@ -3,6 +3,7 @@ class Feedaty_Badge_Model_StyleStore
3
  {
4
  public function toOptionArray()
5
  {
 
6
  $data = Feedaty_Badge_Model_WebService::_get_FeedatyData();
7
 
8
  foreach ($data as $k=>$v) {
3
  {
4
  public function toOptionArray()
5
  {
6
+ if (strlen(Mage::getStoreConfig('feedaty_global/feedaty_preferences/feedaty_code')) == 0) return array();
7
  $data = Feedaty_Badge_Model_WebService::_get_FeedatyData();
8
 
9
  foreach ($data as $k=>$v) {
app/code/community/Feedaty/Badge/Model/WebService.php CHANGED
@@ -7,7 +7,7 @@ class Feedaty_Badge_Model_WebService {
7
  public function retrive_informations_product($id) {
8
  $cache = Mage::app()->getCache();
9
 
10
- $content = $cache->load("feedaty_product_".$id.(int) FEEDATY_DEBUG);
11
 
12
  if (!$content || strlen($content) == 0) {
13
  $feedaty_code = Mage::getStoreConfig('feedaty_global/feedaty_preferences/feedaty_code');
@@ -72,7 +72,7 @@ class Feedaty_Badge_Model_WebService {
72
  curl_close($ch);
73
  }
74
 
75
- public function _get_FeedatyData() {
76
  $cache = Mage::app()->getCache();
77
 
78
  $content = $cache->load("feedaty_store");
@@ -81,7 +81,7 @@ class Feedaty_Badge_Model_WebService {
81
 
82
  $feedaty_code = Mage::getStoreConfig('feedaty_global/feedaty_preferences/feedaty_code');
83
 
84
- $string = "FeedatyData".$feedaty_code.Mage::app()->getLocale()->getLocaleCode().(int) FEEDATY_DEBUG;
85
  $content =$cache->load($string);
86
 
87
  if (!$content || strlen($content) == 0) {
@@ -94,7 +94,7 @@ class Feedaty_Badge_Model_WebService {
94
  $content = trim(curl_exec($ch));
95
  curl_close($ch);
96
 
97
- $cache->save($content, "FeedatyData".$feedaty_code.Mage::app()->getLocale()->getLocaleCode().(int) FEEDATY_DEBUG, array("feedaty_cache"), 24*60*60); // 24 hours of cache
98
  }
99
 
100
  $data = json_decode($content,true);
@@ -102,7 +102,7 @@ class Feedaty_Badge_Model_WebService {
102
  return $data;
103
  }
104
 
105
- public function send_notification() {
106
  $cache = Mage::app()->getCache();
107
 
108
  $content = $cache->load("feedaty_notification");
7
  public function retrive_informations_product($id) {
8
  $cache = Mage::app()->getCache();
9
 
10
+ $content = $cache->load("feedaty_product_".$id);
11
 
12
  if (!$content || strlen($content) == 0) {
13
  $feedaty_code = Mage::getStoreConfig('feedaty_global/feedaty_preferences/feedaty_code');
72
  curl_close($ch);
73
  }
74
 
75
+ public static function _get_FeedatyData() {
76
  $cache = Mage::app()->getCache();
77
 
78
  $content = $cache->load("feedaty_store");
81
 
82
  $feedaty_code = Mage::getStoreConfig('feedaty_global/feedaty_preferences/feedaty_code');
83
 
84
+ $string = "FeedatyData".$feedaty_code.Mage::app()->getLocale()->getLocaleCode();
85
  $content =$cache->load($string);
86
 
87
  if (!$content || strlen($content) == 0) {
94
  $content = trim(curl_exec($ch));
95
  curl_close($ch);
96
 
97
+ $cache->save($content, "FeedatyData".$feedaty_code.Mage::app()->getLocale()->getLocaleCode(), array("feedaty_cache"), 24*60*60); // 24 hours of cache
98
  }
99
 
100
  $data = json_decode($content,true);
102
  return $data;
103
  }
104
 
105
+ public static function send_notification() {
106
  $cache = Mage::app()->getCache();
107
 
108
  $content = $cache->load("feedaty_notification");
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>feedaty</name>
4
- <version>1.1.28</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/gpl-license.php">GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Feedaty Widget</summary>
10
  <description>Feedaty is a social commerce site dedicated to online stores for the professional management of customer feedback. The service is provided through a platform Saas (Software as a Service) and may be activated quickly and easily through a short integration process.</description>
11
- <notes>Relase</notes>
12
  <authors><author><name>Feedaty</name><user>feedtest</user><email>info@feedaty.com</email></author></authors>
13
- <date>2014-05-05</date>
14
- <time>09:37:53</time>
15
- <contents><target name="magecommunity"><dir name="Feedaty"><dir name="Badge"><dir name="Block"><file name="LinkCsv.php" hash="92bf7932d32914adcc1b9547b59c7d49"/><file name="Product.php" hash="d896175131b871bf7f309e57ef5099dd"/></dir><dir name="Helper"><file name="Data.php" hash="51386589a569b1e52baa7f30f07a946b"/></dir><dir name="Model"><file name="Generate.php" hash="7d8f1cf3780f1a4d682196d324e5a4c2"/><file name="Observe.php" hash="d8a8475bcd27bb4a4275ba5c5dfc090d"/><file name="Order.php" hash="ad5588401fb34ee4e081c7e27bc2b694"/><file name="OrderStatuses.php" hash="c122ad1e6360bd53bc3598c4c3046a02"/><file name="PositionProduct.php" hash="5ed4224b515770f1b2f794a039f6d6c5"/><file name="PositionStore.php" hash="2fb071a9e98790acde7e608241aa3c97"/><file name="StyleProduct.php" hash="e306b9889e6f5d15bd3db729bf158eda"/><file name="StyleStore.php" hash="612898c7f347753f21a761c2addd7cd0"/><file name="WebService.php" hash="4400e5a45ddac6118dd5e6128fae716c"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="Badge.php" hash="5b9815ddacd49bdac7f4f3450621759b"/></dir><file name="IndexController.php" hash="12e3bada70bbab8a0be9ebee88852d74"/></dir><dir name="etc"><file name="adminhtml.xml" hash="bfd9f0deeaa5f8eda6baa58caa768ca0"/><file name="config.xml" hash="37ec60555a49592b98eeb89334c5e54d"/><file name="system.xml" hash="beb93d5c964b5e4fb03af4050aac1141"/><file name="widget.xml" hash="f2b00c74bc9a0e7690be5cbe474efb47"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="Feedaty.xml" hash="eff88446ec32cc43a30a6c54a6f4937a"/></dir><dir name="template"><dir name="feedaty"><file name="base.phtml" hash="0009ab0914e8cb8ab1f3461ff2d6822b"/><file name="product_reviews.phtml" hash="f0978d0158078ab72ab1bad86b1a3933"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="it_IT"><file name="Feedaty.csv" hash="8a507edc136ea22a38cacfa21411534b"/></dir></target><target name="mageetc"><dir name="modules"><file name="Feedaty_Badge.xml" hash="e4e47863d6724079e09a6d4d53152275"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>4.3.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>feedaty</name>
4
+ <version>1.1.29</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/gpl-license.php">GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Feedaty Widget</summary>
10
  <description>Feedaty is a social commerce site dedicated to online stores for the professional management of customer feedback. The service is provided through a platform Saas (Software as a Service) and may be activated quickly and easily through a short integration process.</description>
11
+ <notes>Fixed some notice alerts</notes>
12
  <authors><author><name>Feedaty</name><user>feedtest</user><email>info@feedaty.com</email></author></authors>
13
+ <date>2014-06-11</date>
14
+ <time>09:41:54</time>
15
+ <contents><target name="magecommunity"><dir name="Feedaty"><dir name="Badge"><dir name="Block"><file name="LinkCsv.php" hash="92bf7932d32914adcc1b9547b59c7d49"/><file name="Product.php" hash="d896175131b871bf7f309e57ef5099dd"/></dir><dir name="Helper"><file name="Data.php" hash="51386589a569b1e52baa7f30f07a946b"/></dir><dir name="Model"><file name="Generate.php" hash="7d8f1cf3780f1a4d682196d324e5a4c2"/><file name="Observe.php" hash="d8a8475bcd27bb4a4275ba5c5dfc090d"/><file name="Order.php" hash="ad5588401fb34ee4e081c7e27bc2b694"/><file name="OrderStatuses.php" hash="c122ad1e6360bd53bc3598c4c3046a02"/><file name="PositionProduct.php" hash="5ed4224b515770f1b2f794a039f6d6c5"/><file name="PositionStore.php" hash="2fb071a9e98790acde7e608241aa3c97"/><file name="StyleProduct.php" hash="f7b8547a0242269d5db0bf6d6bf68452"/><file name="StyleStore.php" hash="ee937da8b9f7aea21bd3d94925a79cd7"/><file name="WebService.php" hash="907375644db521e93c2040c7ea360e53"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="Badge.php" hash="5b9815ddacd49bdac7f4f3450621759b"/></dir><file name="IndexController.php" hash="12e3bada70bbab8a0be9ebee88852d74"/></dir><dir name="etc"><file name="adminhtml.xml" hash="bfd9f0deeaa5f8eda6baa58caa768ca0"/><file name="config.xml" hash="37ec60555a49592b98eeb89334c5e54d"/><file name="system.xml" hash="beb93d5c964b5e4fb03af4050aac1141"/><file name="widget.xml" hash="f2b00c74bc9a0e7690be5cbe474efb47"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="Feedaty.xml" hash="eff88446ec32cc43a30a6c54a6f4937a"/></dir><dir name="template"><dir name="feedaty"><file name="base.phtml" hash="0009ab0914e8cb8ab1f3461ff2d6822b"/><file name="product_reviews.phtml" hash="f0978d0158078ab72ab1bad86b1a3933"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="it_IT"><file name="Feedaty.csv" hash="8a507edc136ea22a38cacfa21411534b"/></dir></target><target name="mageetc"><dir name="modules"><file name="Feedaty_Badge.xml" hash="e4e47863d6724079e09a6d4d53152275"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>4.3.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>