LinnLiveConnect - Version 1.1.45

Version Notes

status bug fix

Download this release

Release Info

Developer Albert Andrejev
Extension LinnLiveConnect
Version 1.1.45
Comparing to
See all releases


Code changes from version 1.1.44 to 1.1.45

app/code/local/LinnSystems/LinnLiveConnect/Model/Api/V2.php CHANGED
@@ -435,7 +435,7 @@ class LinnLiveMain extends Mage_Core_Model_Abstract{
435
 
436
  private function _updateConfigurableQuantity( & $productData)
437
  {
438
- $this->_updateQuantity($productData);
439
 
440
  if (!property_exists($productData, 'stock_data'))
441
  {
@@ -446,13 +446,20 @@ class LinnLiveMain extends Mage_Core_Model_Abstract{
446
  $productData->stock_data->is_in_stock = 1;
447
  }
448
 
449
- private function _updateQuantity( & $productData)
450
  {
 
 
 
 
 
 
451
  if (property_exists($productData, 'stock_data') && property_exists($productData->stock_data, 'qty')) {
452
  $productData->stock_data->qty = intval($productData->stock_data->qty);
453
  $productData->stock_data->is_in_stock = 1;
454
  $productData->stock_data->manage_stock = 1;
455
  }
 
456
  }
457
 
458
  private function _objectToArray( $result )
@@ -1260,7 +1267,7 @@ class LinnLiveMain extends Mage_Core_Model_Abstract{
1260
  }
1261
  }
1262
 
1263
- $this->_updateQuantity($productData);
1264
 
1265
  $productData = $this->_fixAttributes($productData);
1266
 
@@ -1297,7 +1304,7 @@ class LinnLiveMain extends Mage_Core_Model_Abstract{
1297
 
1298
  $productData->categories = $productData->category_ids;
1299
 
1300
- $this->_updateQuantity($productData);
1301
 
1302
  $productData = $this->_fixAttributes($productData);
1303
 
435
 
436
  private function _updateConfigurableQuantity( & $productData)
437
  {
438
+ $productData = $this->_updateProperties($productData);
439
 
440
  if (!property_exists($productData, 'stock_data'))
441
  {
446
  $productData->stock_data->is_in_stock = 1;
447
  }
448
 
449
+ private function _updateProperties($productData)
450
  {
451
+
452
+ if (property_exists($productData, 'status')){
453
+ $productData->status = ($productData->status == 1) ? Mage_Catalog_Model_Product_Status::STATUS_ENABLED : Mage_Catalog_Model_Product_Status::STATUS_DISABLED;
454
+ }
455
+
456
+
457
  if (property_exists($productData, 'stock_data') && property_exists($productData->stock_data, 'qty')) {
458
  $productData->stock_data->qty = intval($productData->stock_data->qty);
459
  $productData->stock_data->is_in_stock = 1;
460
  $productData->stock_data->manage_stock = 1;
461
  }
462
+ return $productData;
463
  }
464
 
465
  private function _objectToArray( $result )
1267
  }
1268
  }
1269
 
1270
+ $productData = $this->_updateProperties($productData);
1271
 
1272
  $productData = $this->_fixAttributes($productData);
1273
 
1304
 
1305
  $productData->categories = $productData->category_ids;
1306
 
1307
+ $productData = $this->_updateProperties($productData);
1308
 
1309
  $productData = $this->_fixAttributes($productData);
1310
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>LinnLiveConnect</name>
4
- <version>1.1.44</version>
5
  <stability>stable</stability>
6
  <license>GPL v2</license>
7
  <channel>community</channel>
@@ -9,11 +9,11 @@
9
  <summary>Extended SOAP WS-I compliant API to support integration with LinnLive2.</summary>
10
  <description>Extended SOAP WS-I compliant API to support integration with LinnLive2 (http://www.linnlive.com).&#xD;
11
  Contains some workarounds to avoid bugs in original Magento modules and additional functionality to operate Magento store remotely.</description>
12
- <notes>mapping bug fixes</notes>
13
  <authors><author><name>Albert Andrejev</name><user>albert_andrejev</user><email>albert@linnsystems.com</email></author><author><name>Pavel Nikolajev</name><user>Pavel_LL2</user><email>pavel.nokolajev@linnsystems.com</email></author><author><name>Aleksandr Kornev</name><user>alex_LL2</user><email>alex.kornevs@linnsystems.com</email></author></authors>
14
- <date>2014-05-05</date>
15
- <time>13:13:19</time>
16
- <contents><target name="magelocal"><dir name="LinnSystems"><dir name="LinnLiveConnect"><dir name="Helper"><file name="Data.php" hash="5fe5216de67d4e69a0f418b0cd7780ee"/></dir><dir name="Model"><dir name="Api"><file name="V2.php" hash="8fcbd90078d8c11f99a632f516f24a3e"/></dir></dir><dir name="etc"><file name="api.xml" hash="ae6bb50af6b605606819021ce4acd33d"/><file name="config.xml" hash="9367dc40a0ce3d4078039f495ccd6527"/><file name="wsdl.xml" hash="fc21f2963c1253f5f40e5e8414312174"/><file name="wsi.xml" hash="ef000d5115f5988664f58df8b9139e5e"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="LinnSystems_LinnLiveConnect.xml" hash="19c48712cd0516815d6784592ada0881"/></dir></target></contents>
17
  <compatible/>
18
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
19
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>LinnLiveConnect</name>
4
+ <version>1.1.45</version>
5
  <stability>stable</stability>
6
  <license>GPL v2</license>
7
  <channel>community</channel>
9
  <summary>Extended SOAP WS-I compliant API to support integration with LinnLive2.</summary>
10
  <description>Extended SOAP WS-I compliant API to support integration with LinnLive2 (http://www.linnlive.com).&#xD;
11
  Contains some workarounds to avoid bugs in original Magento modules and additional functionality to operate Magento store remotely.</description>
12
+ <notes>status bug fix</notes>
13
  <authors><author><name>Albert Andrejev</name><user>albert_andrejev</user><email>albert@linnsystems.com</email></author><author><name>Pavel Nikolajev</name><user>Pavel_LL2</user><email>pavel.nokolajev@linnsystems.com</email></author><author><name>Aleksandr Kornev</name><user>alex_LL2</user><email>alex.kornevs@linnsystems.com</email></author></authors>
14
+ <date>2014-05-12</date>
15
+ <time>06:40:53</time>
16
+ <contents><target name="magelocal"><dir name="LinnSystems"><dir name="LinnLiveConnect"><dir name="Helper"><file name="Data.php" hash="5fe5216de67d4e69a0f418b0cd7780ee"/></dir><dir name="Model"><dir name="Api"><file name="V2.php" hash="d7df5aa90bf4e96c09d1969c4ae7fe27"/></dir></dir><dir name="etc"><file name="api.xml" hash="ae6bb50af6b605606819021ce4acd33d"/><file name="config.xml" hash="9367dc40a0ce3d4078039f495ccd6527"/><file name="wsdl.xml" hash="fc21f2963c1253f5f40e5e8414312174"/><file name="wsi.xml" hash="ef000d5115f5988664f58df8b9139e5e"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="LinnSystems_LinnLiveConnect.xml" hash="19c48712cd0516815d6784592ada0881"/></dir></target></contents>
17
  <compatible/>
18
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
19
  </package>