YMLExportYandexMarket - Version 1.0.1

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
- 'qty' => $_product->getQty(),
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.0.0</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>1. &#x412;&#x44B;&#x433;&#x440;&#x443;&#x437;&#x43A;&#x430; &#x442;&#x43E;&#x432;&#x430;&#x440;&#x43E;&#x432;: System -&gt; Import/Export -&gt; Yandex Market&#xD;
12
- 2. &#x414;&#x43B;&#x44F; &#x432;&#x44B;&#x431;&#x43E;&#x440;&#x43E;&#x447;&#x43D;&#x43E;&#x439; &#x432;&#x44B;&#x433;&#x440;&#x443;&#x437;&#x43A;&#x438; &#x432;&#x44B;&#x431;&#x440;&#x430;&#x442;&#x44C; "Export only marked"&#xD;
13
- 3. products.xml &#x431;&#x443;&#x434;&#x435;&#x442; &#x441;&#x433;&#x435;&#x43D;&#x435;&#x440;&#x438;&#x440;&#x43E;&#x432;&#x430;&#x43D; &#x432; &#x43A;&#x43E;&#x440;&#x43D;&#x435;&#x432;&#x43E;&#x439; &#x434;&#x438;&#x440;&#x435;&#x43A;&#x442;&#x43E;&#x440;&#x438;&#x438;</notes>
14
  <authors><author><name>Gurusmart.ru</name><user>mit686</user><email>info@gurusmart.ru</email></author></authors>
15
- <date>2014-05-23</date>
16
- <time>17:29:30</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="df6d3a6c0fa592158833776601e09d6d"/></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>
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>