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.
Download this release
Release Info
Developer | TurnTo Networks |
Extension | socialcommerce_suite_by_turnto |
Version | 2.1.6 |
Comparing to | |
See all releases |
Code changes from version 2.1.5 to 2.1.6
app/code/community/Turnto/Admin/controllers/AdminControllers/TurntoController.php.bkup
DELETED
@@ -1,227 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Turnto_Admin_AdminControllers_TurntoController extends Mage_Adminhtml_Controller_Action
|
4 |
-
{
|
5 |
-
public function indexAction()
|
6 |
-
{
|
7 |
-
$this->loadLayout();
|
8 |
-
|
9 |
-
$resource = Mage::getSingleton('core/resource');
|
10 |
-
$storeList = array();
|
11 |
-
foreach (Mage::app()->getWebsites() as $website) {
|
12 |
-
foreach ($website->getGroups() as $group) {
|
13 |
-
$stores = $group->getStores();
|
14 |
-
foreach ($stores as $store) {
|
15 |
-
array_push($storeList, $store);
|
16 |
-
}
|
17 |
-
}
|
18 |
-
}
|
19 |
-
|
20 |
-
Mage::register('sites', $storeList);
|
21 |
-
|
22 |
-
$this->_addLeft($this->getLayout()->createBlock('Turnto_Admin_Block_ShowTabsAdminBlock'));
|
23 |
-
|
24 |
-
$this->renderLayout();
|
25 |
-
}
|
26 |
-
|
27 |
-
public function redirectAction()
|
28 |
-
{
|
29 |
-
$this->_redirectUrl('http://www.turnto.com');
|
30 |
-
}
|
31 |
-
|
32 |
-
public function postAction()
|
33 |
-
{
|
34 |
-
$post = $this->getRequest()->getPost();
|
35 |
-
$catalogFeed = true;
|
36 |
-
|
37 |
-
try {
|
38 |
-
if (empty($post)) {
|
39 |
-
Mage::throwException($this->__('Invalid form data.'));
|
40 |
-
}
|
41 |
-
|
42 |
-
$path = Mage::getBaseDir('media') . DS . 'turnto/';
|
43 |
-
mkdir($path, 0755);
|
44 |
-
|
45 |
-
if($post['feed_type'] == 'historical'){
|
46 |
-
/* form processing */
|
47 |
-
$startDate = $post['start_date'];
|
48 |
-
|
49 |
-
if($startDate == null || $startDate == ""){
|
50 |
-
Mage::getSingleton('adminhtml/session')->addError("Start Date is required");
|
51 |
-
$this->_redirect('*/*/', array('active_tab' => 'turnto_hist_feed_tab'));
|
52 |
-
return;
|
53 |
-
}
|
54 |
-
|
55 |
-
$scope = $post['scope'];
|
56 |
-
$baseUrl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK);
|
57 |
-
$baseMediaUrl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'catalog/product';
|
58 |
-
if(isset($scope)){
|
59 |
-
$baseUrl = Mage::app()->getStore($scope)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK);
|
60 |
-
$baseMediaUrl = Mage::app()->getStore($scope)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'catalog/product';
|
61 |
-
}
|
62 |
-
|
63 |
-
$resource = Mage::getSingleton('core/resource');
|
64 |
-
$readConnection = $resource->getConnection('core_read');
|
65 |
-
|
66 |
-
$stmt = $readConnection->prepare(
|
67 |
-
'select sales_flat_order.entity_id as orderid, '
|
68 |
-
.'sales_flat_order_item.created_at as orderdate, '
|
69 |
-
.'customer_email as email, '
|
70 |
-
.'ifnull(parent.name, sales_flat_order_item.name) as itemtitle, '
|
71 |
-
.'concat('.$readConnection->quote($baseUrl).', ifnull(parent.url_path, catalog_product_flat_1.url_path)) as itemurl, '
|
72 |
-
.'item_id as itemlineid, '
|
73 |
-
.'postcode as zip, '
|
74 |
-
.'customer_firstname as firstname, '
|
75 |
-
.'customer_lastname as lastname, '
|
76 |
-
.'ifnull(parent.sku, sales_flat_order_item.sku) as sku, '
|
77 |
-
.'grand_total as price, '
|
78 |
-
.'concat('.$readConnection->quote($baseMediaUrl).', ifnull(parent.small_image, catalog_product_flat_1.small_image)) as itemimageurl '
|
79 |
-
.'from sales_flat_order,'
|
80 |
-
.'sales_flat_order_item, '
|
81 |
-
.'sales_flat_order_address, '
|
82 |
-
.'catalog_product_flat_1 '
|
83 |
-
.'left join catalog_product_super_link on catalog_product_flat_1.entity_id = catalog_product_super_link.product_id '
|
84 |
-
.'left join catalog_product_flat_1 as parent on catalog_product_super_link.parent_id = parent.entity_id '
|
85 |
-
.'where sales_flat_order.entity_id = sales_flat_order_item.order_id '
|
86 |
-
.'and sales_flat_order.entity_id = sales_flat_order_address.parent_id '
|
87 |
-
.'and sales_flat_order_item.product_id = catalog_product_flat_1.entity_id '
|
88 |
-
.'and sales_flat_order_item.created_at > str_to_date(\''.$startDate.'\', \'%m/%d/%Y\')', array(PDO::ATTR_CURSOR => PDO::CURSOR_SCROLL));
|
89 |
-
$stmt->execute();
|
90 |
-
|
91 |
-
$handle = fopen($path . 'histfeed.csv', 'w');
|
92 |
-
|
93 |
-
fwrite($handle, "ORDERID\tORDERDATE\tEMAIL\tITEMTITLE\tITEMURL\tITEMLINEID\tZIP\tFIRSTNAME\tLASTNAME\tSKU\tPRICE\tITEMIMAGEURL");
|
94 |
-
fwrite($handle, "\n");
|
95 |
-
|
96 |
-
while ($row = $stmt->fetch(PDO::FETCH_NUM, PDO::FETCH_ORI_NEXT)) {
|
97 |
-
foreach($row as $column){
|
98 |
-
fwrite($handle, str_replace("\t", "\\t", $column));
|
99 |
-
fwrite($handle, "\t");
|
100 |
-
}
|
101 |
-
|
102 |
-
fwrite($handle, "\n");
|
103 |
-
}
|
104 |
-
$stmt = null;
|
105 |
-
fclose($handle);
|
106 |
-
|
107 |
-
$message = $this->__('The historical feed was successfully generated. Click the "Download historical feed" link to download.');
|
108 |
-
$catalogFeed = false;
|
109 |
-
}
|
110 |
-
else{
|
111 |
-
/* form processing */
|
112 |
-
$scope = $post['scope'];
|
113 |
-
|
114 |
-
$baseUrl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK);
|
115 |
-
$baseMediaUrl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'catalog/product';
|
116 |
-
if(isset($scope)){
|
117 |
-
$baseUrl = Mage::app()->getStore($scope)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK);
|
118 |
-
$baseMediaUrl = Mage::app()->getStore($scope)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'catalog/product';
|
119 |
-
}
|
120 |
-
|
121 |
-
$handle = fopen($path . 'catfeed.csv', 'w');
|
122 |
-
|
123 |
-
fwrite($handle, "SKU\tIMAGEURL\tTITLE\tPRICE\tCURRENCY\tACTIVE\tITEMURL\tCATEGORY\tKEYWORDS\tREPLACEMENTSKU\tINSTOCK\tVIRTUALPARENTCODE\tCATEGORYPATHJSON\tISCATEGORY");
|
124 |
-
fwrite($handle, "\n");
|
125 |
-
|
126 |
-
$products = Mage::getModel('catalog/product')->setStoreId($scope)->getCollection()->addAttributeToSelect('name')->addAttributeToSelect('*')->addAttributeToSelect('price')->addAttributeToSelect('image');
|
127 |
-
if ($products) {
|
128 |
-
foreach ($products as $product) {
|
129 |
-
$product->setStoreId($scope);
|
130 |
-
fwrite($handle, $product->getSku());
|
131 |
-
fwrite($handle, "\t");
|
132 |
-
if($product->getImage() != null && $product->getImage() != "no_selection") {
|
133 |
-
fwrite($handle, Mage::getModel('catalog/product_media_config')->getMediaUrl( $product->getImage() ));
|
134 |
-
} else if ($product->getSmallImage() != null && $product->getSmallImage() != "no_selection") {
|
135 |
-
fwrite($handle, Mage::getModel('catalog/product_media_config')->getMediaUrl( $product->getSmallImage() ));
|
136 |
-
} else if ($product->getThumbnail() != null && $product->getThumbnail() != "no_selection") {
|
137 |
-
fwrite($handle, Mage::getModel('catalog/product_media_config')->getMediaUrl( $product->getThumbnail() ));
|
138 |
-
}
|
139 |
-
fwrite($handle, "\t");
|
140 |
-
fwrite($handle, $product->getName());
|
141 |
-
fwrite($handle, "\t");
|
142 |
-
fwrite($handle, $product->getPrice());
|
143 |
-
fwrite($handle, "\t");
|
144 |
-
//CURRENCY
|
145 |
-
fwrite($handle, "\t");
|
146 |
-
//ACTIVE
|
147 |
-
fwrite($handle, "Y");
|
148 |
-
fwrite($handle, "\t");
|
149 |
-
//ITEMURL
|
150 |
-
fwrite($handle, $product->getProductUrl());
|
151 |
-
fwrite($handle, "\t");
|
152 |
-
//CATEGORY
|
153 |
-
$ids = $product->getCategoryIds();
|
154 |
-
fwrite($handle, (isset($ids[0]) ? $ids[0] : ''));
|
155 |
-
fwrite($handle, "\t");
|
156 |
-
// KEYWORDS
|
157 |
-
fwrite($handle, "\t");
|
158 |
-
// REPLACEMENTSKU
|
159 |
-
fwrite($handle, "\t");
|
160 |
-
//VIRTUALPARENTCODE
|
161 |
-
fwrite($handle, "\t");
|
162 |
-
//CATEGORYPATHJSON
|
163 |
-
fwrite($handle, "\t");
|
164 |
-
//ISCATEGORY
|
165 |
-
fwrite($handle, "n");
|
166 |
-
fwrite($handle, "\n");
|
167 |
-
}
|
168 |
-
}
|
169 |
-
|
170 |
-
$categories = Mage::getModel('catalog/category')->setStoreId($scope)->getCollection()->addAttributeToSelect('name');
|
171 |
-
if ($categories) {
|
172 |
-
foreach ($categories as $category) {
|
173 |
-
if ($category->getId() == 1) {
|
174 |
-
continue;
|
175 |
-
}
|
176 |
-
$category->setStoreId($scope);
|
177 |
-
fwrite($handle, $category->getId());
|
178 |
-
fwrite($handle, "\t");
|
179 |
-
//IMAGEURL
|
180 |
-
fwrite($handle, "\t");
|
181 |
-
//TITLE
|
182 |
-
fwrite($handle, $category->getName());
|
183 |
-
fwrite($handle, "\t");
|
184 |
-
//PRICE
|
185 |
-
fwrite($handle, "\t");
|
186 |
-
//CURRENCY
|
187 |
-
fwrite($handle, "\t");
|
188 |
-
//ACTIVE
|
189 |
-
fwrite($handle, "Y");
|
190 |
-
fwrite($handle, "\t");
|
191 |
-
//ITEMURL
|
192 |
-
fwrite($handle, $category->getUrl());
|
193 |
-
fwrite($handle, "\t");
|
194 |
-
//CATEGORY
|
195 |
-
fwrite($handle, $category->getParentCategory()->getId());
|
196 |
-
fwrite($handle, "\t");
|
197 |
-
//KEYWORDS
|
198 |
-
fwrite($handle, "\t");
|
199 |
-
//REPLACEMENTSKU
|
200 |
-
fwrite($handle, "\t");
|
201 |
-
//VIRTUALPARENTCODE
|
202 |
-
fwrite($handle, "\t");
|
203 |
-
//CATEGORYPATHJSON
|
204 |
-
fwrite($handle, "\t");
|
205 |
-
//ISCATEGORY
|
206 |
-
fwrite($handle, "Y");
|
207 |
-
fwrite($handle, "\n");
|
208 |
-
|
209 |
-
}
|
210 |
-
}
|
211 |
-
|
212 |
-
fclose($handle);
|
213 |
-
|
214 |
-
$message = $this->__('The catalog feed was successfully generated. Click the "Download catalog feed" link to download.');
|
215 |
-
}
|
216 |
-
Mage::getSingleton('adminhtml/session')->addSuccess($message);
|
217 |
-
} catch (Exception $e) {
|
218 |
-
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
219 |
-
}
|
220 |
-
|
221 |
-
if($catalogFeed){
|
222 |
-
$this->_redirect('*/*/', array('active_tab' => 'turnto_catalog_feed_tab'));
|
223 |
-
}else{
|
224 |
-
$this->_redirectUrl(Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).'media/turnto/histfeed.csv');
|
225 |
-
}
|
226 |
-
}
|
227 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Turnto/Admin/controllers/IndexController.php
CHANGED
@@ -1,133 +1,137 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Turnto_Admin_IndexController extends Mage_Core_Controller_Front_Action{
|
4 |
-
public function indexAction(){
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
echo "\t";
|
51 |
-
|
52 |
-
echo "\t";
|
53 |
-
|
54 |
-
echo "
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
echo
|
59 |
-
|
60 |
-
|
61 |
-
echo
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
echo
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
echo "\
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Turnto_Admin_IndexController extends Mage_Core_Controller_Front_Action{
|
4 |
+
public function indexAction(){
|
5 |
+
header( 'Content-type: text/plain; charset=utf-8' );
|
6 |
+
try {
|
7 |
+
$resource = Mage::getSingleton('core/resource');
|
8 |
+
$readConnection = $resource->getConnection('core_read');
|
9 |
+
$params = $this->getRequest()->getParams();
|
10 |
+
$storeId = $params['storeId'];
|
11 |
+
$websiteId = $params['websiteId'];
|
12 |
+
$baseUrl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK);
|
13 |
+
$baseMediaUrl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'catalog/product';
|
14 |
+
if(!isset($storeId)){
|
15 |
+
$storeId = 1;
|
16 |
+
}
|
17 |
+
$baseUrl = Mage::app()->getStore($storeId)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK);
|
18 |
+
$baseMediaUrl = Mage::app()->getStore($storeId)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'catalog/product';
|
19 |
+
|
20 |
+
if(!isset($websiteId)){
|
21 |
+
$websiteId=1;
|
22 |
+
}
|
23 |
+
|
24 |
+
echo "SKU\tIMAGEURL\tTITLE\tPRICE\tCURRENCY\tACTIVE\tITEMURL\tCATEGORY\tKEYWORDS\tREPLACEMENTSKU\tINSTOCK\tVIRTUALPARENTCODE\tCATEGORYPATHJSON\tISCATEGORY";
|
25 |
+
echo "\n";
|
26 |
+
|
27 |
+
$products = Mage::getModel('catalog/product')->setStoreId($storeId)->getCollection()->addAttributeToSelect('*')->addWebsiteFilter($websiteId);
|
28 |
+
|
29 |
+
Mage::getSingleton('core/resource_iterator')->walk(
|
30 |
+
$products->getSelect(),
|
31 |
+
array(array($this, 'productCallback')),
|
32 |
+
array('store_id' => $storeId)
|
33 |
+
);
|
34 |
+
|
35 |
+
$categories = Mage::getModel('catalog/category')->setStoreId($storeId)->getCollection()->addAttributeToSelect('*');
|
36 |
+
if ($categories) {
|
37 |
+
foreach ($categories as $category) {
|
38 |
+
if ($category->getId() == 1) {
|
39 |
+
continue;
|
40 |
+
}
|
41 |
+
$category->setStoreId($storeId);
|
42 |
+
echo $category->getId();
|
43 |
+
echo "\t";
|
44 |
+
//IMAGEURL
|
45 |
+
echo "\t";
|
46 |
+
//TITLE
|
47 |
+
echo $category->getName();
|
48 |
+
echo "\t";
|
49 |
+
//PRICE
|
50 |
+
echo "\t";
|
51 |
+
//CURRENCY
|
52 |
+
echo "\t";
|
53 |
+
//ACTIVE
|
54 |
+
echo "Y";
|
55 |
+
echo "\t";
|
56 |
+
//ITEMURL
|
57 |
+
echo $category->getUrl();
|
58 |
+
echo "\t";
|
59 |
+
//CATEGORY
|
60 |
+
echo $category->getParentCategory()->getId();
|
61 |
+
echo "\t";
|
62 |
+
//KEYWORDS
|
63 |
+
echo "\t";
|
64 |
+
//REPLACEMENTSKU
|
65 |
+
echo "\t";
|
66 |
+
//VIRTUALPARENTCODE
|
67 |
+
echo "\t";
|
68 |
+
//CATEGORYPATHJSON
|
69 |
+
echo "\t";
|
70 |
+
//ISCATEGORY
|
71 |
+
echo "Y";
|
72 |
+
echo "\n";
|
73 |
+
}
|
74 |
+
}
|
75 |
+
} catch (Exception $e) {
|
76 |
+
echo $e->getMessage();
|
77 |
+
}
|
78 |
+
|
79 |
+
return;
|
80 |
+
|
81 |
+
|
82 |
+
}
|
83 |
+
|
84 |
+
public function productCallback($args)
|
85 |
+
{
|
86 |
+
$product = Mage::getModel('catalog/product');
|
87 |
+
$product->setData($args['row']);
|
88 |
+
|
89 |
+
$parents = Mage::getModel('catalog/product_type_configurable')->getParentIdsByChild($product->getId());
|
90 |
+
if(isset($parents[0]))
|
91 |
+
{
|
92 |
+
// skip products with a parent
|
93 |
+
return;
|
94 |
+
}
|
95 |
+
$product->setStoreId($args["store_id"]);
|
96 |
+
echo $product->getSku();
|
97 |
+
echo "\t";
|
98 |
+
//echo Mage::getModel('catalog/product_media_config')->getMediaUrl( $product->getImage() );
|
99 |
+
if($product->getImage() != null && $product->getImage() != "no_selection") {
|
100 |
+
echo Mage::getModel('catalog/product_media_config')->getMediaUrl( $product->getImage() );
|
101 |
+
} else if ($product->getSmallImage() != null && $product->getSmallImage() != "no_selection") {
|
102 |
+
echo Mage::getModel('catalog/product_media_config')->getMediaUrl( $product->getSmallImage() );
|
103 |
+
} else if ($product->getThumbnail() != null && $product->getThumbnail() != "no_selection") {
|
104 |
+
echo Mage::getModel('catalog/product_media_config')->getMediaUrl( $product->getThumbnail() );
|
105 |
+
}
|
106 |
+
echo "\t";
|
107 |
+
echo $product->getName();
|
108 |
+
echo "\t";
|
109 |
+
echo $product->getPrice();
|
110 |
+
echo "\t";
|
111 |
+
//CURRENCY
|
112 |
+
echo "\t";
|
113 |
+
//ACTIVE
|
114 |
+
echo 'Y';
|
115 |
+
echo "\t";
|
116 |
+
//ITEMURL
|
117 |
+
echo $product->getProductUrl();
|
118 |
+
echo "\t";
|
119 |
+
//CATEGORY
|
120 |
+
$ids = $product->getCategoryIds();
|
121 |
+
echo (isset($ids[0]) ? $ids[0] : '');
|
122 |
+
echo "\t";
|
123 |
+
// KEYWORDS
|
124 |
+
echo "\t";
|
125 |
+
// REPLACEMENTSKU
|
126 |
+
echo "\t";
|
127 |
+
//VIRTUALPARENTCODE
|
128 |
+
echo "\t";
|
129 |
+
//CATEGORYPATHJSON
|
130 |
+
echo "\t";
|
131 |
+
//ISCATEGORY
|
132 |
+
echo "n";
|
133 |
+
echo "\n";
|
134 |
+
}
|
135 |
+
}
|
136 |
+
|
137 |
+
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>socialcommerce_suite_by_turnto</name>
|
4 |
-
<version>2.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.turntonetworks.com/terms-of-use">TurnTo Networks</license>
|
7 |
<channel>community</channel>
|
@@ -11,11 +11,12 @@
|
|
11 |
<notes>TurnTo Admin Extension
|
12 |
2.0 Adds support for Single Sign On
|
13 |
2.1 Re-wrote catalog feed generator
|
14 |
-
|
|
|
15 |
<authors><author><name>TurnTo</name><user>TurnTo</user><email>contact@turnto.com</email></author></authors>
|
16 |
-
<date>2015-
|
17 |
-
<time>16:
|
18 |
-
<contents><target name="magecommunity"><dir name="Turnto"><dir name="Admin"><dir name="Block"><file name="CatalogFeed.php" hash="f974cfdc687bf5edb3fdccb879547200"/><file name="HistoricalFeed.php" hash="a4d2b29c6d8bb2ed59aa884e02abc23b"/><file name="Overview.php" hash="51c8ed09153f1dc3b3d02aa0ab83f195"/><file name="ShowTabsAdminBlock.php" hash="d904239a91cc367e93c138eff3e2b074"/></dir><dir name="Helper"><file name="Data.php" hash="78a1e318ccf05caac4ca7a8c2bd74e43"/></dir><dir name="controllers"><dir name="AdminControllers"><file name="TurntoController.php" hash="690057e9429e3454939976232f0ccb22"
|
19 |
<compatible/>
|
20 |
<dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
|
21 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>socialcommerce_suite_by_turnto</name>
|
4 |
+
<version>2.1.6</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.turntonetworks.com/terms-of-use">TurnTo Networks</license>
|
7 |
<channel>community</channel>
|
11 |
<notes>TurnTo Admin Extension
|
12 |
2.0 Adds support for Single Sign On
|
13 |
2.1 Re-wrote catalog feed generator
|
14 |
+

|
15 |
+
2.1.6 - Better catalog support in catalog feed generator.</notes>
|
16 |
<authors><author><name>TurnTo</name><user>TurnTo</user><email>contact@turnto.com</email></author></authors>
|
17 |
+
<date>2015-06-08</date>
|
18 |
+
<time>16:02:55</time>
|
19 |
+
<contents><target name="magecommunity"><dir name="Turnto"><dir name="Admin"><dir name="Block"><file name="CatalogFeed.php" hash="f974cfdc687bf5edb3fdccb879547200"/><file name="HistoricalFeed.php" hash="a4d2b29c6d8bb2ed59aa884e02abc23b"/><file name="Overview.php" hash="51c8ed09153f1dc3b3d02aa0ab83f195"/><file name="ShowTabsAdminBlock.php" hash="d904239a91cc367e93c138eff3e2b074"/></dir><dir name="Helper"><file name="Data.php" hash="78a1e318ccf05caac4ca7a8c2bd74e43"/></dir><dir name="controllers"><dir name="AdminControllers"><file name="TurntoController.php" hash="690057e9429e3454939976232f0ccb22"/></dir><file name="IndexController.php" hash="52729ba61be3d9bd1a5abcf3b111af1a"/><file name="VersionController.php" hash="60fb4a7d588c728166d11b5808cf2099"/><file name=".IndexController.php.swo" hash="9fe1be1d74e273018c523559e88f8950"/><file name=".VersionController.php.swo" hash="297b78fd627fc67e350325767bd33e9a"/><file name=".VersionController.php.swp" hash="2285964acc4ac6ecd381d38e64ce252b"/></dir><dir name="etc"><file name="config.xml" hash="0a15daa1aa6e619ffc0c3718cb768d7f"/><file name=".config.xml.swp" hash="91caa56be3f38be493b6028dfb87ec79"/></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"><file name="catalog_feed_tab.phtml" hash="c7623db3227221f10a32de69322bead9"/><file name="historical_feed_tab.phtml" hash="510bee39f490fe289e28e796ba0d43f2"/><file name="overview.phtml" hash="4cc20b32c3b0cd36cd349f0be44e4615"/></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>
|
20 |
<compatible/>
|
21 |
<dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
|
22 |
</package>
|