socialcommerce_suite_by_turnto - Version 2.2.9

Version Notes

TurnTo Admin Extension

2.0 Adds support for Single Sign On
2.1 Re-wrote catalog feed generator
2.1.6 - Better catalog support in catalog feed generator.
2.2.0 - Support for sku average rating feed
2.2.2 - Minor bug fix
2.2.9 - Historical Feed bug fix

Download this release

Release Info

Developer TurnTo Networks
Extension socialcommerce_suite_by_turnto
Version 2.2.9
Comparing to
See all releases


Code changes from version 2.2.8 to 2.2.9

app/code/community/Turnto/Admin/controllers/Adminhtml/TurntoController.php CHANGED
@@ -75,59 +75,59 @@ class Turnto_Admin_Adminhtml_TurntoController extends Mage_Adminhtml_Controller_
75
  $currentPage = 1;
76
  do {
77
  $orders->setCurPage($currentPage);
78
- foreach($orders as $order) {
79
- $itemlineid = 0;
80
- foreach($order->getAllVisibleItems() as $item) {
81
- //ORDERID
82
- fwrite($handle, $order->getRealOrderId());
83
- fwrite($handle, "\t");
84
- //ORDERDATE
85
- fwrite($handle, $order->getCreatedAtDate()->toString('Y-MM-d'));
86
- fwrite($handle, "\t");
87
- //EMAIL
88
- fwrite($handle, $order->getCustomerEmail());
89
- fwrite($handle, "\t");
90
- //ITEMTITLE
91
- fwrite($handle, $item->getName());
92
- fwrite($handle, "\t");
93
- //ITEMURL
94
- $product = $item->getProduct();
95
- fwrite($handle, $product->getProductUrl());
96
- fwrite($handle, "\t");
97
- //ITEMLINEID
98
- fwrite($handle, $itemlineid++);
99
- fwrite($handle, "\t");
100
- //ZIP
101
- fwrite($handle, $order->getShippingAddress()->getPostcode());
102
- fwrite($handle, "\t");
103
- //FIRSTNAME
104
- $name = explode(' ', $order->getCustomerName());
105
- fwrite($handle, $name[0]);
106
- fwrite($handle, "\t");
107
- //LASTNAME
108
- if (isset($name[1])){
109
- fwrite($handle, $name[1]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  }
111
- fwrite($handle, "\t");
112
- //SKU
113
- fwrite($handle, $item->getSku());
114
- fwrite($handle, "\t");
115
- //PRICE
116
- fwrite($handle, $item->getOriginalPrice());
117
- fwrite($handle, "\t");
118
- //ITEMIMAGEURL
119
- if($product->getImage() != null && $product->getImage() != "no_selection") {
120
- fwrite($handle, Mage::getModel('catalog/product_media_config')->getMediaUrl( $product->getImage() ));
121
- } else if ($product->getSmallImage() != null && $product->getSmallImage() != "no_selection") {
122
- fwrite($handle, Mage::getModel('catalog/product_media_config')->getMediaUrl( $product->getSmallImage() ));
123
- } else if ($product->getThumbnail() != null && $product->getThumbnail() != "no_selection") {
124
- fwrite($handle, Mage::getModel('catalog/product_media_config')->getMediaUrl( $product->getThumbnail() ));
125
- }
126
- fwrite($handle, "\n");
127
  }
128
- }
129
  $currentPage++;
130
- } while($currentPage <= $pages);
131
 
132
  fclose($handle);
133
 
75
  $currentPage = 1;
76
  do {
77
  $orders->setCurPage($currentPage);
78
+ foreach ($orders as $order) {
79
+ $itemlineid = 0;
80
+ foreach ($order->getAllVisibleItems() as $item) {
81
+ //ORDERID
82
+ fwrite($handle, $order->getRealOrderId());
83
+ fwrite($handle, "\t");
84
+ //ORDERDATE
85
+ fwrite($handle, $order->getCreatedAtDate()->toString('Y-MM-d'));
86
+ fwrite($handle, "\t");
87
+ //EMAIL
88
+ fwrite($handle, $order->getCustomerEmail());
89
+ fwrite($handle, "\t");
90
+ //ITEMTITLE
91
+ fwrite($handle, $item->getName());
92
+ fwrite($handle, "\t");
93
+ //ITEMURL
94
+ $product = $item->getProduct();
95
+ fwrite($handle, $product->getProductUrl());
96
+ fwrite($handle, "\t");
97
+ //ITEMLINEID
98
+ fwrite($handle, $itemlineid++);
99
+ fwrite($handle, "\t");
100
+ //ZIP
101
+ fwrite($handle, $order->getShippingAddress()->getPostcode());
102
+ fwrite($handle, "\t");
103
+ //FIRSTNAME
104
+ $name = explode(' ', $order->getCustomerName());
105
+ fwrite($handle, $name[0]);
106
+ fwrite($handle, "\t");
107
+ //LASTNAME
108
+ if (isset($name[1])) {
109
+ fwrite($handle, $name[1]);
110
+ }
111
+ fwrite($handle, "\t");
112
+ //SKU
113
+ fwrite($handle, $item->getSku());
114
+ fwrite($handle, "\t");
115
+ //PRICE
116
+ fwrite($handle, $item->getOriginalPrice());
117
+ fwrite($handle, "\t");
118
+ //ITEMIMAGEURL
119
+ if ($product->getImage() != null && $product->getImage() != "no_selection") {
120
+ fwrite($handle, Mage::getModel('catalog/product_media_config')->getMediaUrl($product->getImage()));
121
+ } else if ($product->getSmallImage() != null && $product->getSmallImage() != "no_selection") {
122
+ fwrite($handle, Mage::getModel('catalog/product_media_config')->getMediaUrl($product->getSmallImage()));
123
+ } else if ($product->getThumbnail() != null && $product->getThumbnail() != "no_selection") {
124
+ fwrite($handle, Mage::getModel('catalog/product_media_config')->getMediaUrl($product->getThumbnail()));
125
+ }
126
+ fwrite($handle, "\n");
127
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
128
  }
 
129
  $currentPage++;
130
+ } while ($currentPage <= $pages);
131
 
132
  fclose($handle);
133
 
app/code/community/Turnto/Admin/etc/config.xml CHANGED
@@ -3,7 +3,7 @@
3
  <config>
4
  <modules>
5
  <Turnto_Admin>
6
- <version>2.2.0</version>
7
  </Turnto_Admin>
8
  </modules>
9
 
@@ -64,7 +64,7 @@
64
  <use>standard</use>
65
  <args>
66
  <module>Turnto_Admin_Adminhtml</module>
67
- <frontName>version</frontName>
68
  </args>
69
  </turntoversion>
70
  </routers>
3
  <config>
4
  <modules>
5
  <Turnto_Admin>
6
+ <version>2.2.9</version>
7
  </Turnto_Admin>
8
  </modules>
9
 
64
  <use>standard</use>
65
  <args>
66
  <module>Turnto_Admin_Adminhtml</module>
67
+ <frontName>turntoversion</frontName>
68
  </args>
69
  </turntoversion>
70
  </routers>
app/code/community/Turnto/Login/etc/config.xml CHANGED
@@ -3,7 +3,7 @@
3
  <config>
4
  <modules>
5
  <Turnto_Login>
6
- <version>2.1.5</version>
7
  </Turnto_Login>
8
  </modules>
9
 
3
  <config>
4
  <modules>
5
  <Turnto_Login>
6
+ <version>2.2.9</version>
7
  </Turnto_Login>
8
  </modules>
9
 
app/design/adminhtml/default/default/template/turnto/historical_feed_tab.phtml CHANGED
@@ -19,7 +19,9 @@
19
  ?>
20
  </td>
21
  </tr>
22
- <?php } ?>
 
 
23
  <tr>
24
  <td>From Date:</td>
25
  <td>
19
  ?>
20
  </td>
21
  </tr>
22
+ <?php } else { ?>
23
+ <input name="scope" id="scope" type="hidden" value="1"/>
24
+ <?php } ?>
25
  <tr>
26
  <td>From Date:</td>
27
  <td>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>socialcommerce_suite_by_turnto</name>
4
- <version>2.2.8</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.turntonetworks.com/terms-of-use">TurnTo Networks</license>
7
  <channel>community</channel>
@@ -15,12 +15,11 @@
15
  2.1.6 - Better catalog support in catalog feed generator.&#xD;
16
  2.2.0 - Support for sku average rating feed&#xD;
17
  2.2.2 - Minor bug fix&#xD;
18
- 2.2.7 - Support for Magento Security Patch (SUPEE-6788)&#xD;
19
- 2.2.8 - Minor bug fix</notes>
20
  <authors><author><name>TurnTo</name><user>TurnTo</user><email>contact@turnto.com</email></author></authors>
21
- <date>2015-11-06</date>
22
- <time>12:53:13</time>
23
- <contents><target name="magecommunity"><dir name="Turnto"><dir name="Admin"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Feed.php" hash="84d005b13b3e39da048078bfc275bdf5"/></dir></dir></dir><file name="CatalogFeed.php" hash="f974cfdc687bf5edb3fdccb879547200"/><file name="HistoricalFeed.php" hash="a4d2b29c6d8bb2ed59aa884e02abc23b"/><file name="Overview.php" hash="51c8ed09153f1dc3b3d02aa0ab83f195"/><file name="RatingsFeed.php" hash="264cf15842c2738f1b77bce6ff9b9f0a"/><dir name="Review"><file name="Helper.php" hash="2ecc1a9252af9d40666b4f3a6603b522"/></dir><file name="ShowTabsAdminBlock.php" hash="403c3a8f95c65e361471b28fae25d2e3"/></dir><dir name="Helper"><file name="Data.php" hash="ba93cfd8b9159171aff2512b0c0f1d37"/></dir><dir name="Model"><dir name="Catalog"><file name="Product.php" hash="5325442b4449b7eb75547f50698400a6"/></dir><file name="Observer.php" hash="50d0a3ff030e0a20cd080003891aa167"/><file name="Rating.php" hash="2f3d43beb74018b394d7bf6ba1098e5c"/><dir name="Resource"><dir name="Rating"><file name="Collection.php" hash="2f0709f0f5f3bde0725c2db266f16e7d"/></dir><file name="Rating.php" hash="0a7f9415ba76c6e121e0f3281479a4df"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="d78518e5502f5c19ff02892e2fa9fe78"/><file name="TurntoController.php" hash="b9eb45193240f6f43bf6e261349fc7f3"/></dir><file name="IndexController.php" hash="4426fabb9ed1518d5f8fce7cfbbf091c"/></dir><dir name="etc"><file name="adminhtml.xml" hash="2583ebaabc3e8844fe27e70d1b519f3a"/><file name="config.xml" hash="0c963d5151361dd89c2b4914826f9f5f"/><file name="system.xml" hash="40c7079a0f5a368f0acf0df4195035c8"/></dir><dir name="sql"><dir name="turnto_admin_setup"><file name="mysql4-install-2.2.0.php" hash="747fc729ae7587b41c3f3cce62aba82b"/></dir></dir></dir><dir name="Login"><dir name="Block"><file name="Login.php" hash="a51bc0ee76d20a9f4cb32bb21420ecd9"/><file name="Reg.php" hash="4eece8d78391b6578b0ba5e2c764dba5"/></dir><dir name="Helper"><file name="Data.php" hash="e87f15957335101d5ae643befcc06817"/></dir><dir name="controllers"><file name="IndexController.php" hash="087867555ca6d8174fb1301f3b558720"/></dir><dir name="etc"><file name="config.xml" hash="2fcebddc4b687752f16860a3dd092d47"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Turnto_Admin.xml" hash="0932b63ab068e1e8b12ff7b997ae83ee"/><file name="Turnto_Login.xml" hash="734c463c75970bd14ac7d7a90fa2de11"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="turnto"><dir name="adminhtml"><dir name="system"><dir name="config"><file name="feed.phtml" hash="c4b453ab154a34408bc34021630653bf"/></dir></dir></dir><file name="catalog_feed_tab.phtml" hash="c7623db3227221f10a32de69322bead9"/><file name="historical_feed_tab.phtml" hash="510bee39f490fe289e28e796ba0d43f2"/><file name="overview.phtml" hash="4cc20b32c3b0cd36cd349f0be44e4615"/><file name="product_ratings_feed_tab.phtml" hash="3733a056ab45f0af0b6a93ea30e257e0"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="turnto"><dir name="login"><file name="login.phtml" hash="7ec602a8ca09180f324229a77ea3e2db"/><file name="login_form.phtml" hash="a176124e54fc105d09e8a219114d9cfe"/><file name="reg.phtml" hash="7ec602a8ca09180f324229a77ea3e2db"/><file name="reg_form.phtml" hash="8d513aa7b9b582f748f5a484f2e81568"/></dir></dir></dir><dir name="layout"><file name="turnto_login.xml" hash="e9c1993c14add5a7be5c4079547d3609"/></dir></dir></dir></dir></target></contents>
24
  <compatible/>
25
  <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
26
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>socialcommerce_suite_by_turnto</name>
4
+ <version>2.2.9</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.turntonetworks.com/terms-of-use">TurnTo Networks</license>
7
  <channel>community</channel>
15
  2.1.6 - Better catalog support in catalog feed generator.&#xD;
16
  2.2.0 - Support for sku average rating feed&#xD;
17
  2.2.2 - Minor bug fix&#xD;
18
+ 2.2.9 - Historical Feed bug fix</notes>
 
19
  <authors><author><name>TurnTo</name><user>TurnTo</user><email>contact@turnto.com</email></author></authors>
20
+ <date>2015-11-18</date>
21
+ <time>16:38:41</time>
22
+ <contents><target name="magecommunity"><dir name="Turnto"><dir name="Admin"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Feed.php" hash="84d005b13b3e39da048078bfc275bdf5"/></dir></dir></dir><file name="CatalogFeed.php" hash="f974cfdc687bf5edb3fdccb879547200"/><file name="HistoricalFeed.php" hash="a4d2b29c6d8bb2ed59aa884e02abc23b"/><file name="Overview.php" hash="51c8ed09153f1dc3b3d02aa0ab83f195"/><file name="RatingsFeed.php" hash="264cf15842c2738f1b77bce6ff9b9f0a"/><dir name="Review"><file name="Helper.php" hash="2ecc1a9252af9d40666b4f3a6603b522"/></dir><file name="ShowTabsAdminBlock.php" hash="403c3a8f95c65e361471b28fae25d2e3"/></dir><dir name="Helper"><file name="Data.php" hash="ba93cfd8b9159171aff2512b0c0f1d37"/></dir><dir name="Model"><dir name="Catalog"><file name="Product.php" hash="5325442b4449b7eb75547f50698400a6"/></dir><file name="Observer.php" hash="50d0a3ff030e0a20cd080003891aa167"/><file name="Rating.php" hash="2f3d43beb74018b394d7bf6ba1098e5c"/><dir name="Resource"><dir name="Rating"><file name="Collection.php" hash="2f0709f0f5f3bde0725c2db266f16e7d"/></dir><file name="Rating.php" hash="0a7f9415ba76c6e121e0f3281479a4df"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="d78518e5502f5c19ff02892e2fa9fe78"/><file name="TurntoController.php" hash="9b19ef018c21de5a25ed6f6cc850ce0e"/></dir><file name="IndexController.php" hash="4426fabb9ed1518d5f8fce7cfbbf091c"/></dir><dir name="etc"><file name="adminhtml.xml" hash="2583ebaabc3e8844fe27e70d1b519f3a"/><file name="config.xml" hash="8fd602e1d2f5ed0295128d1d89da9c61"/><file name="system.xml" hash="40c7079a0f5a368f0acf0df4195035c8"/></dir><dir name="sql"><dir name="turnto_admin_setup"><file name="mysql4-install-2.2.0.php" hash="747fc729ae7587b41c3f3cce62aba82b"/></dir></dir></dir><dir name="Login"><dir name="Block"><file name="Login.php" hash="a51bc0ee76d20a9f4cb32bb21420ecd9"/><file name="Reg.php" hash="4eece8d78391b6578b0ba5e2c764dba5"/></dir><dir name="Helper"><file name="Data.php" hash="e87f15957335101d5ae643befcc06817"/></dir><dir name="controllers"><file name="IndexController.php" hash="087867555ca6d8174fb1301f3b558720"/></dir><dir name="etc"><file name="config.xml" hash="146d7e17f1bfa48701cfd55b3460291e"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Turnto_Admin.xml" hash="0932b63ab068e1e8b12ff7b997ae83ee"/><file name="Turnto_Login.xml" hash="734c463c75970bd14ac7d7a90fa2de11"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="turnto"><dir name="adminhtml"><dir name="system"><dir name="config"><file name="feed.phtml" hash="c4b453ab154a34408bc34021630653bf"/></dir></dir></dir><file name="catalog_feed_tab.phtml" hash="c7623db3227221f10a32de69322bead9"/><file name="historical_feed_tab.phtml" hash="db808133a4528b3db12698badc41f6d8"/><file name="overview.phtml" hash="4cc20b32c3b0cd36cd349f0be44e4615"/><file name="product_ratings_feed_tab.phtml" hash="3733a056ab45f0af0b6a93ea30e257e0"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="turnto"><dir name="login"><file name="login.phtml" hash="7ec602a8ca09180f324229a77ea3e2db"/><file name="login_form.phtml" hash="a176124e54fc105d09e8a219114d9cfe"/><file name="reg.phtml" hash="7ec602a8ca09180f324229a77ea3e2db"/><file name="reg_form.phtml" hash="8d513aa7b9b582f748f5a484f2e81568"/></dir></dir></dir><dir name="layout"><file name="turnto_login.xml" hash="e9c1993c14add5a7be5c4079547d3609"/></dir></dir></dir></dir></target></contents>
23
  <compatible/>
24
  <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
25
  </package>