feedaty - Version 1.1.19

Version Notes

Relase

Download this release

Release Info

Developer Feedaty
Extension feedaty
Version 1.1.19
Comparing to
See all releases


Code changes from version 1.1.18 to 1.1.19

app/code/community/Feedaty/Badge/controllers/IndexController.php CHANGED
@@ -11,27 +11,73 @@ class Feedaty_Badge_IndexController extends Mage_Adminhtml_Controller_Action
11
  $csv = '"Order ID","UserID","E-mail","Date","Product ID","Extra","Product Url","Product Image","Platform"'."\n";
12
 
13
  $orders = Mage::getModel('sales/order')->getCollection()
14
- ->addFieldToFilter('status', Mage::getStoreConfig('feedaty_global/sendorder/sendorder'))
15
- ;
16
-
17
- foreach ($orders as $order) {
18
-
19
- $objproducts = $order->getAllItems();
20
-
21
- foreach ($objproducts as $itemId => $item) {
22
- $fd_oProduct = Mage::getModel('catalog/product')->load((int) $item->getProductId());
23
- Mage::getModel('core/url_rewrite')->loadByRequestPath(
24
- $tmp['Url'] = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).$fd_oProduct->getUrlPath()
25
- );
26
- if ($fd_oProduct->getImage() != "no_selection")
27
- $tmp['ImageUrl'] = Mage::getModel('catalog/product_media_config')->getMediaUrl( $fd_oProduct->getImage() );
28
- else
29
- $tmp['ImageUrl'] = "";
30
-
31
- $csv .= '"'.$order->getId().'","'.$order->getBillingAddress()->getEmail().'","'.$order->getBillingAddress()->getEmail().'",'
32
- .'"'.$order->getCreatedAt().'","'.$item->getProductId().'","'.str_replace('"','""',$item->getName()).'","'.$tmp['Url'].'","'.$tmp['ImageUrl'].'","Magento '.MAGE::getVersion().'"'
33
- ."\n";
34
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  }
36
 
37
  echo $csv;
11
  $csv = '"Order ID","UserID","E-mail","Date","Product ID","Extra","Product Url","Product Image","Platform"'."\n";
12
 
13
  $orders = Mage::getModel('sales/order')->getCollection()
14
+ ->addFieldToFilter('status', Mage::getStoreConfig('feedaty_global/sendorder/sendorder'));
15
+
16
+ foreach ($orders as $order) {
17
+
18
+ $objproducts = $order->getAllItems();
19
+
20
+ foreach ($objproducts as $itemId => $item) {
21
+ unset($tmp);
22
+ if (!$item->getParentItem()) {
23
+ $fd_oProduct = Mage::getModel('catalog/product')->load((int) $item->getProductId());
24
+
25
+ if ($fd_oProduct->getTypeId() == Mage_Catalog_Model_Product_Type::TYPE_BUNDLE) {
26
+ $selectionCollection = $fd_oProduct->getTypeInstance(true)->getSelectionsCollection(
27
+ $fd_oProduct->getTypeInstance(true)->getOptionsIds($fd_oProduct), $fd_oProduct
28
+ );
29
+ foreach($selectionCollection as $option) {
30
+ $bundleproduct = Mage::getModel('catalog/product')->load($option->product_id);
31
+
32
+ $tmp['Id'] = $bundleproduct->getProductId();
33
+
34
+
35
+ Mage::getModel('core/url_rewrite')->loadByRequestPath(
36
+ $tmp['Url'] = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).$bundleproduct->getUrlPath()
37
+ );
38
+ if ($fd_oProduct->getImage() != "no_selection")
39
+ $tmp['ImageUrl'] = Mage::getModel('catalog/product_media_config')->getMediaUrl( $bundleproduct->getImage() );
40
+ else
41
+ $tmp['ImageUrl'] = "";
42
+ //$tmp['sku'] = $item->getSku();
43
+
44
+ $tmp['Name'] = $bundleproduct->getName();
45
+ $tmp['Brand'] = $bundleproduct->getBrand();
46
+ if (is_null($tmp['Brand'])) $bundleproduct['Brand'] = "";
47
+ $fd_products[] = $tmp;
48
+
49
+
50
+ $csv .= '"'.$order->getId().'","'.$order->getBillingAddress()->getEmail().'","'.$order->getBillingAddress()->getEmail().'",'
51
+ .'"'.$order->getCreatedAt().'","'.$item->getProductId().'","'.str_replace('"','""',$tmp['Name']).'","'.$tmp['Url'].'","'.$tmp['ImageUrl'].'","Magento '.MAGE::getVersion().' CSV"'
52
+ ."\n";
53
+
54
+
55
+ }
56
+ } else {
57
+ $tmp['Id'] = $item->getProductId();
58
+
59
+
60
+ Mage::getModel('core/url_rewrite')->loadByRequestPath(
61
+ $tmp['Url'] = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).$fd_oProduct->getUrlPath()
62
+ );
63
+ if ($fd_oProduct->getImage() != "no_selection")
64
+ $tmp['ImageUrl'] = Mage::getModel('catalog/product_media_config')->getMediaUrl( $fd_oProduct->getImage() );
65
+ else
66
+ $tmp['ImageUrl'] = "";
67
+ //$tmp['sku'] = $item->getSku();
68
+
69
+ $tmp['Name'] = $item->getName();
70
+ $tmp['Brand'] = $item->getBrand();
71
+ if (is_null($tmp['Brand'])) $tmp['Brand'] = "";
72
+
73
+
74
+ $csv .= '"'.$order->getId().'","'.$order->getBillingAddress()->getEmail().'","'.$order->getBillingAddress()->getEmail().'",'
75
+ .'"'.$order->getCreatedAt().'","'.$item->getProductId().'","'.str_replace('"','""',$tmp['Name']).'","'.$tmp['Url'].'","'.$tmp['ImageUrl'].'","Magento '.MAGE::getVersion().' CSV"'
76
+ ."\n";
77
+ }
78
+ }
79
+ }
80
+
81
  }
82
 
83
  echo $csv;
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>feedaty</name>
4
- <version>1.1.18</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>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>13:09:36</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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>feedaty</name>
4
+ <version>1.1.19</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>Relase</notes>
12
  <authors><author><name>Feedaty</name><user>feedtest</user><email>info@feedaty.com</email></author></authors>
13
+ <date>2013-10-31</date>
14
+ <time>09:41:20</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="12e3bada70bbab8a0be9ebee88852d74"/></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>