Version Notes
It is optimized to display more products and the last updated parameter added for faster product download. Displays dynamic product attributes
Download this release
Release Info
Developer | Rinkart Osei Asibey |
Extension | Feed_Manager_Version_1_1_2 |
Version | 2.1.2 |
Comparing to | |
See all releases |
Code changes from version 2.1.1 to 2.1.2
- package.xml +5 -5
- productapi.php +24 -7
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Feed_Manager_Version_1_1_2</name>
|
4 |
-
<version>2.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/academic.php">Academic Free License (AFL)</license>
|
7 |
<channel>community</channel>
|
@@ -25,11 +25,11 @@
|
|
25 |
<p>1. Feed Manager Version 1.1.2 works with magento 1.4x and above. </p>
|
26 |
<p>2. Please back-up your store and database before installing this extension as we will not be responsible for any errors or problems that may occur with this open source extension.</p>
|
27 |
<p>3. RetailTower does not provide extensive Magento support or other related Magento installation services for this open source extension. Please read our documentation and help file for assistance.</p></description>
|
28 |
-
<notes>It is optimized to display more products and the last updated parameter added for faster product download
|
29 |
<authors><author><name>Rinkart Osei Asibey</name><user>rinkarto</user><email>rinkarto2000@gmail.com</email></author><author><name>Retailtower</name><user>RetailTower</user><email>support@retailtower.com</email></author></authors>
|
30 |
-
<date>
|
31 |
-
<time>
|
32 |
-
<contents><target name="mage"><dir name="."><file name="productapi.php" hash="
|
33 |
<compatible/>
|
34 |
<dependencies><required><php><min>5.1.0</min><max>5.5.1</max></php></required></dependencies>
|
35 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Feed_Manager_Version_1_1_2</name>
|
4 |
+
<version>2.1.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/academic.php">Academic Free License (AFL)</license>
|
7 |
<channel>community</channel>
|
25 |
<p>1. Feed Manager Version 1.1.2 works with magento 1.4x and above. </p>
|
26 |
<p>2. Please back-up your store and database before installing this extension as we will not be responsible for any errors or problems that may occur with this open source extension.</p>
|
27 |
<p>3. RetailTower does not provide extensive Magento support or other related Magento installation services for this open source extension. Please read our documentation and help file for assistance.</p></description>
|
28 |
+
<notes>It is optimized to display more products and the last updated parameter added for faster product download. Displays dynamic product attributes</notes>
|
29 |
<authors><author><name>Rinkart Osei Asibey</name><user>rinkarto</user><email>rinkarto2000@gmail.com</email></author><author><name>Retailtower</name><user>RetailTower</user><email>support@retailtower.com</email></author></authors>
|
30 |
+
<date>2015-01-05</date>
|
31 |
+
<time>15:10:20</time>
|
32 |
+
<contents><target name="mage"><dir name="."><file name="productapi.php" hash="00244dd759c4f1d89850da1b2b635218"/></dir></target></contents>
|
33 |
<compatible/>
|
34 |
<dependencies><required><php><min>5.1.0</min><max>5.5.1</max></php></required></dependencies>
|
35 |
</package>
|
productapi.php
CHANGED
@@ -5,8 +5,8 @@
|
|
5 |
umask(0);
|
6 |
Mage::app();
|
7 |
|
8 |
-
|
9 |
-
|
10 |
|
11 |
if($_GET['status'] == 'disabled'){
|
12 |
|
@@ -48,20 +48,34 @@
|
|
48 |
}
|
49 |
|
50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
$products = Mage::getModel('catalog/product')->getCollection();
|
52 |
|
53 |
|
54 |
$products->addAttributeToSelect('*');
|
55 |
|
56 |
-
if(!empty($_GET['
|
57 |
|
58 |
//Start Date filter
|
59 |
|
60 |
-
$date = $_GET['
|
61 |
//Set start date
|
62 |
$fromDate = $date;
|
63 |
//Set end date
|
64 |
-
$toDate = '
|
65 |
|
66 |
// Format our dates
|
67 |
$fromDate = date('Y-m-d H:i:s', strtotime($fromDate));
|
@@ -146,7 +160,7 @@
|
|
146 |
$categories = $product->getCategoryIds();
|
147 |
$product = array();
|
148 |
|
149 |
-
foreach($categories as $k => $_category_id)
|
150 |
|
151 |
$_category = Mage::getModel('catalog/category')->load($_category_id);
|
152 |
$cat_name = $_category->getName();
|
@@ -162,10 +176,13 @@
|
|
162 |
array_push($output, $output["products"] = $product);
|
163 |
|
164 |
|
165 |
-
|
166 |
|
167 |
|
168 |
}//endforeach;
|
|
|
|
|
|
|
169 |
|
170 |
}//endif;
|
171 |
|
5 |
umask(0);
|
6 |
Mage::app();
|
7 |
|
8 |
+
//get store disabled products
|
9 |
+
if(!empty($_GET['status'])){
|
10 |
|
11 |
if($_GET['status'] == 'disabled'){
|
12 |
|
48 |
}
|
49 |
|
50 |
|
51 |
+
//get store attributes
|
52 |
+
$attribute = Mage::getModel('catalog/product')->getAttributes();
|
53 |
+
$attributeArray = array();
|
54 |
+
|
55 |
+
foreach($attribute as $a){
|
56 |
+
|
57 |
+
foreach ($a->getEntityType()->getAttributeCodes() as $attributeName) {
|
58 |
+
|
59 |
+
$attributeArray[$attributeName] = $attributeName;
|
60 |
+
}
|
61 |
+
}
|
62 |
+
|
63 |
+
|
64 |
+
//get store products
|
65 |
$products = Mage::getModel('catalog/product')->getCollection();
|
66 |
|
67 |
|
68 |
$products->addAttributeToSelect('*');
|
69 |
|
70 |
+
if(!empty($_GET['lastupdated'])){
|
71 |
|
72 |
//Start Date filter
|
73 |
|
74 |
+
$date = $_GET['lastupdated'];
|
75 |
//Set start date
|
76 |
$fromDate = $date;
|
77 |
//Set end date
|
78 |
+
$toDate = '2040-12-06 11:06:00';
|
79 |
|
80 |
// Format our dates
|
81 |
$fromDate = date('Y-m-d H:i:s', strtotime($fromDate));
|
160 |
$categories = $product->getCategoryIds();
|
161 |
$product = array();
|
162 |
|
163 |
+
foreach($categories as $k => $_category_id){
|
164 |
|
165 |
$_category = Mage::getModel('catalog/category')->load($_category_id);
|
166 |
$cat_name = $_category->getName();
|
176 |
array_push($output, $output["products"] = $product);
|
177 |
|
178 |
|
179 |
+
}
|
180 |
|
181 |
|
182 |
}//endforeach;
|
183 |
+
|
184 |
+
//push product attributes into output
|
185 |
+
array_push($output, $output["attributes"] = $attributeArray);
|
186 |
|
187 |
}//endif;
|
188 |
|