Version Notes
Minor bugfixes
Download this release
Release Info
Developer | Gurusmart.ru |
Extension | YMLExportYandexMarket |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0.0 to 1.0.1
app/code/local/Gurusmart/YandexMarket/controllers/Adminhtml/IndexController.php
CHANGED
@@ -62,15 +62,7 @@ class Gurusmart_YandexMarket_Adminhtml_IndexController extends Mage_Adminhtml_Co
|
|
62 |
);
|
63 |
|
64 |
// Get products collection and add attributes to select
|
65 |
-
$products = $_category->getProductCollection()
|
66 |
-
->joinField(
|
67 |
-
'qty',
|
68 |
-
'cataloginventory/stock_item',
|
69 |
-
'qty',
|
70 |
-
'product_id=entity_id',
|
71 |
-
'{{table}}.stock_id=1',
|
72 |
-
'left'
|
73 |
-
);
|
74 |
foreach ($attributesToSelect as $ats) {
|
75 |
$products->addAttributeToSelect($ats);
|
76 |
}
|
@@ -99,7 +91,7 @@ class Gurusmart_YandexMarket_Adminhtml_IndexController extends Mage_Adminhtml_Co
|
|
99 |
// Save product data into result array
|
100 |
$result['products'][] = array(
|
101 |
'id' => $_product->getId(),
|
102 |
-
'
|
103 |
'url' => str_replace('/index.php', null, $result['shop_data']['url']) . $_product->getUrlKey(),
|
104 |
'price' => $_product->getPrice(),
|
105 |
'currencyId' => $currencyCode,
|
62 |
);
|
63 |
|
64 |
// Get products collection and add attributes to select
|
65 |
+
$products = $_category->getProductCollection();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
foreach ($attributesToSelect as $ats) {
|
67 |
$products->addAttributeToSelect($ats);
|
68 |
}
|
91 |
// Save product data into result array
|
92 |
$result['products'][] = array(
|
93 |
'id' => $_product->getId(),
|
94 |
+
'in_stock' => (bool)Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getIsInStock(),
|
95 |
'url' => str_replace('/index.php', null, $result['shop_data']['url']) . $_product->getUrlKey(),
|
96 |
'price' => $_product->getPrice(),
|
97 |
'currencyId' => $currencyCode,
|
package.xml
CHANGED
@@ -1,20 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>YMLExportYandexMarket</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>GPL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Magento extension to generate Yandex.Market YML feed</summary>
|
10 |
<description>Magento extension to generate Yandex.Market YML feed</description>
|
11 |
-
<notes>
|
12 |
-
2. Для выборочной выгрузки выбрать "Export only marked"
|
13 |
-
3. products.xml будет сгенерирован в корневой директории</notes>
|
14 |
<authors><author><name>Gurusmart.ru</name><user>mit686</user><email>info@gurusmart.ru</email></author></authors>
|
15 |
-
<date>2014-
|
16 |
-
<time>
|
17 |
-
<contents><target name="mageetc"><dir name="modules"><file name="Gurusmart_YandexMarket.xml" hash="8a3364501cd3951d9c13c1fcdf063a7b"/></dir></target><target name="magelocal"><dir name="Gurusmart"><dir name="YandexMarket"><dir name="Block"><dir name="Adminhtml"><file name="Export.php" hash="3736651ce4b019bb8b3ea8d6027c97dd"/></dir></dir><dir name="Helper"><file name="Data.php" hash="b38d0589ad412de64813106ec15a243f"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>YMLExportYandexMarket</name>
|
4 |
+
<version>1.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>GPL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Magento extension to generate Yandex.Market YML feed</summary>
|
10 |
<description>Magento extension to generate Yandex.Market YML feed</description>
|
11 |
+
<notes>Minor bugfixes</notes>
|
|
|
|
|
12 |
<authors><author><name>Gurusmart.ru</name><user>mit686</user><email>info@gurusmart.ru</email></author></authors>
|
13 |
+
<date>2014-06-11</date>
|
14 |
+
<time>00:04:18</time>
|
15 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Gurusmart_YandexMarket.xml" hash="8a3364501cd3951d9c13c1fcdf063a7b"/></dir></target><target name="magelocal"><dir name="Gurusmart"><dir name="YandexMarket"><dir name="Block"><dir name="Adminhtml"><file name="Export.php" hash="3736651ce4b019bb8b3ea8d6027c97dd"/></dir></dir><dir name="Helper"><file name="Data.php" hash="b38d0589ad412de64813106ec15a243f"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="8b6ac44541dcf0fd6985256c389a4c0f"/></dir></dir><dir name="etc"><file name="config.xml" hash="f4b1fdf4ebaf6e736cdb222cb04f61fa"/></dir><dir name="sql"><dir name="gmyandexmarket_setup"><file name="install-0.0.1.php" hash="b6a62bd3e463263cc7dac76347c25ac7"/></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|