feedaty - Version 1.1.17

Version Notes

First official relase

Download this release

Release Info

Developer Feedaty
Extension feedaty
Version 1.1.17
Comparing to
See all releases


Code changes from version 1.1.16 to 1.1.17

app/code/community/Feedaty/Badge/Model/Observe.php CHANGED
@@ -23,26 +23,51 @@ class Feedaty_Badge_Model_Observe
23
  if (!$item->getParentItem()) {
24
  $fd_oProduct = Mage::getModel('catalog/product')->load((int) $item->getProductId());
25
 
26
- $tmp['Id'] = $item->getProductId();
 
 
 
 
 
27
 
 
28
 
29
- Mage::getModel('core/url_rewrite')->loadByRequestPath(
30
- $tmp['Url'] = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).$fd_oProduct->getUrlPath()
31
- );
32
- if ($fd_oProduct->getImage() != "no_selection")
33
- $tmp['ImageUrl'] = Mage::getModel('catalog/product_media_config')->getMediaUrl( $fd_oProduct->getImage() );
34
- else
35
- $tmp['ImageUrl'] = "";
36
- //$tmp['sku'] = $item->getSku();
37
 
38
- $tmp['Name'] = $item->getName();
39
- $tmp['Brand'] = $item->getBrand();
40
- if (is_null($tmp['Brand'])) $tmp['Brand'] = "";
 
 
 
 
 
41
 
 
 
 
 
 
 
 
42
 
43
- //$tmp['Price'] = $item->getPrice();
44
 
45
- $fd_products[] = $tmp;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  }
47
  }
48
  // ********************************
23
  if (!$item->getParentItem()) {
24
  $fd_oProduct = Mage::getModel('catalog/product')->load((int) $item->getProductId());
25
 
26
+ if ($fd_oProduct->getTypeId() == Mage_Catalog_Model_Product_Type::TYPE_BUNDLE) {
27
+ $selectionCollection = $fd_oProduct->getTypeInstance(true)->getSelectionsCollection(
28
+ $fd_oProduct->getTypeInstance(true)->getOptionsIds($fd_oProduct), $fd_oProduct
29
+ );
30
+ foreach($selectionCollection as $option) {
31
+ $bundleproduct = Mage::getModel('catalog/product')->load($option->product_id);
32
 
33
+ $tmp['Id'] = $bundleproduct->getProductId();
34
 
 
 
 
 
 
 
 
 
35
 
36
+ Mage::getModel('core/url_rewrite')->loadByRequestPath(
37
+ $tmp['Url'] = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).$bundleproduct->getUrlPath()
38
+ );
39
+ if ($fd_oProduct->getImage() != "no_selection")
40
+ $tmp['ImageUrl'] = Mage::getModel('catalog/product_media_config')->getMediaUrl( $bundleproduct->getImage() );
41
+ else
42
+ $tmp['ImageUrl'] = "";
43
+ //$tmp['sku'] = $item->getSku();
44
 
45
+ $tmp['Name'] = $bundleproduct->getName();
46
+ $tmp['Brand'] = $bundleproduct->getBrand();
47
+ if (is_null($tmp['Brand'])) $bundleproduct['Brand'] = "";
48
+ $fd_products[] = $tmp;
49
+ }
50
+ } else {
51
+ $tmp['Id'] = $item->getProductId();
52
 
 
53
 
54
+ Mage::getModel('core/url_rewrite')->loadByRequestPath(
55
+ $tmp['Url'] = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).$fd_oProduct->getUrlPath()
56
+ );
57
+ if ($fd_oProduct->getImage() != "no_selection")
58
+ $tmp['ImageUrl'] = Mage::getModel('catalog/product_media_config')->getMediaUrl( $fd_oProduct->getImage() );
59
+ else
60
+ $tmp['ImageUrl'] = "";
61
+ //$tmp['sku'] = $item->getSku();
62
+
63
+ $tmp['Name'] = $item->getName();
64
+ $tmp['Brand'] = $item->getBrand();
65
+ if (is_null($tmp['Brand'])) $tmp['Brand'] = "";
66
+
67
+
68
+ //$tmp['Price'] = $item->getPrice();
69
+ $fd_products[] = $tmp;
70
+ }
71
  }
72
  }
73
  // ********************************
app/code/community/Feedaty/Badge/Model/WebService.php CHANGED
@@ -115,7 +115,7 @@ class Feedaty_Badge_Model_WebService {
115
  $ver = json_decode(json_encode(Mage::getConfig()->getNode()->modules->Feedaty_Badge->version),true);
116
 
117
  $fdata['keyValuePairs'][] = array("Key" => "Platform", "Value" => "Magento ".MAGE::getVersion());
118
- $fdata['keyValuePairs'][] = array("Key" => "Version", "Value" => $ver[0]);
119
  $fdata['keyValuePairs'][] = array("Key" => "Url", "Value" => Mage::getBaseUrl());
120
  $fdata['keyValuePairs'][] = array("Key" => "Os", "Value" => PHP_OS);
121
  $fdata['keyValuePairs'][] = array("Key" => "Php Version", "Value" => phpversion());
115
  $ver = json_decode(json_encode(Mage::getConfig()->getNode()->modules->Feedaty_Badge->version),true);
116
 
117
  $fdata['keyValuePairs'][] = array("Key" => "Platform", "Value" => "Magento ".MAGE::getVersion());
118
+ $fdata['keyValuePairs'][] = array("Key" => "Version", "Value" => (string) Mage::getConfig()->getNode()->modules->MyCompany_MyModule->version);
119
  $fdata['keyValuePairs'][] = array("Key" => "Url", "Value" => Mage::getBaseUrl());
120
  $fdata['keyValuePairs'][] = array("Key" => "Os", "Value" => PHP_OS);
121
  $fdata['keyValuePairs'][] = array("Key" => "Php Version", "Value" => phpversion());
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>feedaty</name>
4
- <version>1.1.16</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/gpl-license.php">GPL</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
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>First official relase</notes>
12
  <authors><author><name>Feedaty</name><user>feedtest</user><email>info@feedaty.com</email></author></authors>
13
- <date>2013-07-16</date>
14
- <time>15:34:18</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="764bba52f5964740236c58b905c6d02c"/><file name="Observe.php" hash="98c212416b8e5bf4157d28c317e2e512"/><file name="Order.php" hash="ad5588401fb34ee4e081c7e27bc2b694"/><file name="OrderStatuses.php" hash="c122ad1e6360bd53bc3598c4c3046a02"/><file name="PositionProduct.php" hash="5ed4224b515770f1b2f794a039f6d6c5"/><file name="PositionStore.php" hash="9f3b948fd1046a2b428d51fe51f72778"/><file name="StyleProduct.php" hash="e306b9889e6f5d15bd3db729bf158eda"/><file name="StyleStore.php" hash="612898c7f347753f21a761c2addd7cd0"/><file name="WebService.php" hash="2e7d64cbb1ceac65ded5776f629ba987"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="Badge.php" hash="5b9815ddacd49bdac7f4f3450621759b"/></dir><file name="IndexController.php" hash="3331c66c765ea34e2b2f341e06ea4622"/></dir><dir name="etc"><file name="adminhtml.xml" hash="dfb3514a624955eb430780b923f10fb0"/><file name="config.xml" hash="37832ca12efdd22638277d45f76c4e2b"/><file name="system.xml" hash="ecf35eb131cba17fb4bcff37497efa3c"/><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="4d219cae9bc37e462c9604c475833adf"/></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.17</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/gpl-license.php">GPL</license>
7
  <channel>community</channel>
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>First official relase</notes>
12
  <authors><author><name>Feedaty</name><user>feedtest</user><email>info@feedaty.com</email></author></authors>
13
+ <date>2013-10-10</date>
14
+ <time>12:54:12</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="764bba52f5964740236c58b905c6d02c"/><file name="Observe.php" hash="26b4f4c4d8da9e46c20c20ca030ec4e0"/><file name="Order.php" hash="ad5588401fb34ee4e081c7e27bc2b694"/><file name="OrderStatuses.php" hash="c122ad1e6360bd53bc3598c4c3046a02"/><file name="PositionProduct.php" hash="5ed4224b515770f1b2f794a039f6d6c5"/><file name="PositionStore.php" hash="9f3b948fd1046a2b428d51fe51f72778"/><file name="StyleProduct.php" hash="e306b9889e6f5d15bd3db729bf158eda"/><file name="StyleStore.php" hash="612898c7f347753f21a761c2addd7cd0"/><file name="WebService.php" hash="c305d64af91ba566037e7317d4eff51c"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="Badge.php" hash="5b9815ddacd49bdac7f4f3450621759b"/></dir><file name="IndexController.php" hash="3331c66c765ea34e2b2f341e06ea4622"/></dir><dir name="etc"><file name="adminhtml.xml" hash="dfb3514a624955eb430780b923f10fb0"/><file name="config.xml" hash="37832ca12efdd22638277d45f76c4e2b"/><file name="system.xml" hash="ecf35eb131cba17fb4bcff37497efa3c"/><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="4d219cae9bc37e462c9604c475833adf"/></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>