Version Notes
this is a beta version
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | Feed_Manager_Version_1_1_2 |
| Version | 2.0.5 |
| Comparing to | |
| See all releases | |
Code changes from version 2.0.4 to 2.0.5
- magento_feedmanager.php +7 -0
- package.xml +4 -4
- productapi.php +12 -10
magento_feedmanager.php
CHANGED
|
@@ -17,6 +17,13 @@ Mage::app();
|
|
| 17 |
Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_CATALOG
|
| 18 |
);
|
| 19 |
$products->addAttributeToFilter('visibility', $visibility);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
$products->load();
|
| 22 |
|
| 17 |
Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_CATALOG
|
| 18 |
);
|
| 19 |
$products->addAttributeToFilter('visibility', $visibility);
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
$collection = Mage::getModel('catalog/product')->getCollection();
|
| 23 |
+
$collection->addAttributeToSelect('manufacturer');
|
| 24 |
+
$collection->addFieldToFilter(array(
|
| 25 |
+
array('attribute' => 'manufacturer', 'eq' =>$designer_id),
|
| 26 |
+
));
|
| 27 |
|
| 28 |
$products->load();
|
| 29 |
|
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.0.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -10,9 +10,9 @@
|
|
| 10 |
<description>RetailTower is a FREE online solution that enables merchants to list their products on shopping comparison engines and create Facebook fanpage stores.</description>
|
| 11 |
<notes>this is a beta version</notes>
|
| 12 |
<authors><author><name>Rinkart Asibey</name><user>auto-converted</user><email>rinkart@retailtower.com</email></author></authors>
|
| 13 |
-
<date>2011-11-
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="mageweb"><dir name="."><file name="magento_feedmanager.php" hash="
|
| 16 |
<compatible/>
|
| 17 |
<dependencies/>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Feed_Manager_Version_1_1_2</name>
|
| 4 |
+
<version>2.0.5</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
| 7 |
<channel>community</channel>
|
| 10 |
<description>RetailTower is a FREE online solution that enables merchants to list their products on shopping comparison engines and create Facebook fanpage stores.</description>
|
| 11 |
<notes>this is a beta version</notes>
|
| 12 |
<authors><author><name>Rinkart Asibey</name><user>auto-converted</user><email>rinkart@retailtower.com</email></author></authors>
|
| 13 |
+
<date>2011-11-16</date>
|
| 14 |
+
<time>12:30:58</time>
|
| 15 |
+
<contents><target name="mageweb"><dir name="."><file name="magento_feedmanager.php" hash="91f54af6158e076af9852573a55962e0"/><file name="productapi.php" hash="056f6191466b7af6d175ffe7268725d9"/></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
<dependencies/>
|
| 18 |
</package>
|
productapi.php
CHANGED
|
@@ -6,7 +6,7 @@ umask(0);
|
|
| 6 |
Mage::app();
|
| 7 |
|
| 8 |
|
| 9 |
-
|
| 10 |
$products->addAttributeToSelect('*');
|
| 11 |
$products->addAttributeToFilter('status', array('eq' => Mage_Catalog_Model_Product_Status::STATUS_ENABLED));
|
| 12 |
|
|
@@ -15,6 +15,13 @@ Mage::app();
|
|
| 15 |
Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_CATALOG
|
| 16 |
);
|
| 17 |
$products->addAttributeToFilter('visibility', $visibility);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
|
| 20 |
$products->load();
|
|
@@ -55,17 +62,12 @@ if (count($collection)){
|
|
| 55 |
|
| 56 |
if ($key == 'thumbnail'){
|
| 57 |
$value = $baseUrl."media/catalog/product".$value;
|
| 58 |
-
//$value = str_replace('/productapi.php','',$value);
|
| 59 |
-
//$value = trim ($value);
|
| 60 |
}
|
| 61 |
-
|
| 62 |
if ($key == 'manufacturer'){
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
$
|
| 66 |
-
|
| 67 |
-
//$value = str_replace('/productapi.php','',$value);
|
| 68 |
-
//$value = trim ($value);
|
| 69 |
}
|
| 70 |
|
| 71 |
//$search = array('&','<','>','"','\'','-','—',"'",'(',')','™','®','©');
|
| 6 |
Mage::app();
|
| 7 |
|
| 8 |
|
| 9 |
+
$products = Mage::getModel('catalog/product')->getCollection();
|
| 10 |
$products->addAttributeToSelect('*');
|
| 11 |
$products->addAttributeToFilter('status', array('eq' => Mage_Catalog_Model_Product_Status::STATUS_ENABLED));
|
| 12 |
|
| 15 |
Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_CATALOG
|
| 16 |
);
|
| 17 |
$products->addAttributeToFilter('visibility', $visibility);
|
| 18 |
+
|
| 19 |
+
$collection = Mage::getModel('catalog/product')->getCollection();
|
| 20 |
+
$collection->addAttributeToSelect('manufacturer');
|
| 21 |
+
$collection->addFieldToFilter(array(
|
| 22 |
+
array('attribute' => 'manufacturer', 'eq' =>$designer_id),
|
| 23 |
+
));
|
| 24 |
+
|
| 25 |
|
| 26 |
|
| 27 |
$products->load();
|
| 62 |
|
| 63 |
if ($key == 'thumbnail'){
|
| 64 |
$value = $baseUrl."media/catalog/product".$value;
|
|
|
|
|
|
|
| 65 |
}
|
|
|
|
| 66 |
if ($key == 'manufacturer'){
|
| 67 |
+
$value = $product->getAttributeText('manufacturer');
|
| 68 |
+
}
|
| 69 |
+
if ($key == 'brand'){
|
| 70 |
+
$value = $product->getAttributeText('manufacturer');
|
|
|
|
|
|
|
| 71 |
}
|
| 72 |
|
| 73 |
//$search = array('&','<','>','"','\'','-','—',"'",'(',')','™','®','©');
|
