LinnLiveConnect - Version 1.1.57

Version Notes

fixes for store support

Download this release

Release Info

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


Code changes from version 1.1.56 to 1.1.57

app/code/local/LinnSystems/LinnLiveConnect/Helper/Data.php CHANGED
@@ -322,12 +322,10 @@ class LinnSystems_LinnLiveConnect_Helper_Data extends Mage_Core_Helper_Abstract
322
 
323
  public function createProductData($productData){
324
 
325
- //if (property_exists($productData, 'websites') === false) {
326
- // $defaultStore = $this->getDefaultStore();
327
- // if($defaultStore){
328
- // $productData->websites = array($defaultStore->getWebsiteId());
329
- // }
330
- //}
331
 
332
  if (property_exists($productData, 'category_ids') === true) {
333
  $productData->category_ids = is_array($productData->category_ids) ? $productData->category_ids : array($productData->category_ids);
322
 
323
  public function createProductData($productData){
324
 
325
+ $defaultStore = $this->getDefaultStore();
326
+ if($defaultStore){
327
+ $productData->websites = array($defaultStore->getWebsiteId());
328
+ }
 
 
329
 
330
  if (property_exists($productData, 'category_ids') === true) {
331
  $productData->category_ids = is_array($productData->category_ids) ? $productData->category_ids : array($productData->category_ids);
app/code/local/LinnSystems/LinnLiveConnect/Model/Community.php CHANGED
@@ -204,6 +204,7 @@ class LinnSystems_LinnLiveConnect_Model_Community extends LinnSystems_LinnLiveCo
204
  'compilation_enabled' => (bool)(defined('COMPILER_INCLUDE_PATH')),
205
  'max_upload_size' => min((int)ini_get("upload_max_filesize"), (int)ini_get("post_max_size"), (int)ini_get("memory_limit")),
206
  'store'=>Mage::helper('linnLiveConnect') -> currentStoreCode($store),
 
207
  'extension_version'=>Mage::helper('linnLiveConnect/settings') -> getVersion(),
208
  'max_execution_time'=>ini_get("max_execution_time")
209
  );
@@ -384,7 +385,6 @@ class LinnSystems_LinnLiveConnect_Model_Community extends LinnSystems_LinnLiveCo
384
  * @return boolean
385
  */
386
  protected function updateProductImage($productId, $file, $data, $store = null, $identifierType = 'id') {
387
-
388
  return Mage::getModel('catalog/product_attribute_media_api') -> update($productId, $file, Mage::helper('linnLiveConnect') -> objectToArray($data), $store, $identifierType);
389
  }
390
 
@@ -427,8 +427,7 @@ class LinnSystems_LinnLiveConnect_Model_Community extends LinnSystems_LinnLiveCo
427
  * @return boolean
428
  */
429
  protected function deleteProductImage($productId, $file, $identifierType = 'id') {
430
-
431
- return Mage::getModel('catalog/product_attribute_media_api') -> remove($productId, $file, $identifierType);
432
  }
433
 
434
  /**
204
  'compilation_enabled' => (bool)(defined('COMPILER_INCLUDE_PATH')),
205
  'max_upload_size' => min((int)ini_get("upload_max_filesize"), (int)ini_get("post_max_size"), (int)ini_get("memory_limit")),
206
  'store'=>Mage::helper('linnLiveConnect') -> currentStoreCode($store),
207
+ 'is_multi_store'=> !Mage::app()->isSingleStoreMode(),
208
  'extension_version'=>Mage::helper('linnLiveConnect/settings') -> getVersion(),
209
  'max_execution_time'=>ini_get("max_execution_time")
210
  );
385
  * @return boolean
386
  */
387
  protected function updateProductImage($productId, $file, $data, $store = null, $identifierType = 'id') {
 
388
  return Mage::getModel('catalog/product_attribute_media_api') -> update($productId, $file, Mage::helper('linnLiveConnect') -> objectToArray($data), $store, $identifierType);
389
  }
390
 
427
  * @return boolean
428
  */
429
  protected function deleteProductImage($productId, $file, $identifierType = 'id') {
430
+ return Mage::getModel('catalog/product_attribute_media_api') -> remove($productId, $file, $identifierType);
 
431
  }
432
 
433
  /**
app/code/local/LinnSystems/LinnLiveConnect/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <LinnSystems_LinnLiveConnect>
5
- <version>1.1.56</version>
6
  </LinnSystems_LinnLiveConnect>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <LinnSystems_LinnLiveConnect>
5
+ <version>1.1.57</version>
6
  </LinnSystems_LinnLiveConnect>
7
  </modules>
8
  <global>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>LinnLiveConnect</name>
4
- <version>1.1.56</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>improve compatibility with third party extensions</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-11-17</date>
15
- <time>09:26:38</time>
16
- <contents><target name="magelocal"><dir name="LinnSystems"><dir name="LinnLiveConnect"><dir name="Helper"><file name="Data.php" hash="62cd16402139b5316cb7b70fa6d2695c"/><file name="Factory.php" hash="7e0a0e26fa3618917f3540b799b05840"/><file name="Settings.php" hash="086ba912d38dc66964a2f40f685394a5"/></dir><dir name="Model"><dir name="Api"><file name="V2.php" hash="a60247b30a00144ee34b77b74821266a"/></dir><dir name="Category"><file name="Api.php" hash="c01d5bb1dfb59a559c3b94615593e38d"/></dir><file name="Community.php" hash="9018b657efc39133e30e57ff31fcc789"/><file name="Main.php" hash="bdf4ddce8fa2b01d75bd9f69ae854ab3"/><dir name="Product"><dir name="Api"><file name="V2.php" hash="0497a6775a80f0292b47aa0e64eee77d"/></dir><file name="Api.php" hash="721f80734374313c91d2cfbf46fb7a17"/><dir name="Attribute"><file name="Api.php" hash="d0678623a145bc2d76993819bd63bdb9"/><dir name="Media"><file name="Api.php" hash="62d58c61d93371793ebe94162755c4cd"/></dir></dir><dir name="Link"><file name="Api.php" hash="d42a76ca6368eabad4e4a96fd40a93a2"/></dir></dir></dir><dir name="etc"><file name="api.xml" hash="a4b2a568bf5b2def5f3fe32c06b4528c"/><file name="config.xml" hash="f60368e8365a7b2518c78f3b28d02b9d"/><file name="wsdl.xml" hash="2b450fd6a6332d20583aaa4fc52012b6"/><file name="wsi.xml" hash="67dfb6257459f972cebaa06e3443a67f"/></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.57</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>fixes for store support</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-11-20</date>
15
+ <time>08:50:30</time>
16
+ <contents><target name="magelocal"><dir name="LinnSystems"><dir name="LinnLiveConnect"><dir name="Helper"><file name="Data.php" hash="c7af92d5533ba7da2ef5eab65b58f3bd"/><file name="Factory.php" hash="7e0a0e26fa3618917f3540b799b05840"/><file name="Settings.php" hash="086ba912d38dc66964a2f40f685394a5"/></dir><dir name="Model"><dir name="Api"><file name="V2.php" hash="a60247b30a00144ee34b77b74821266a"/></dir><dir name="Category"><file name="Api.php" hash="c01d5bb1dfb59a559c3b94615593e38d"/></dir><file name="Community.php" hash="c14017ef16aa55f37fbd52fd74ae6ea3"/><file name="Main.php" hash="bdf4ddce8fa2b01d75bd9f69ae854ab3"/><dir name="Product"><dir name="Api"><file name="V2.php" hash="0497a6775a80f0292b47aa0e64eee77d"/></dir><file name="Api.php" hash="721f80734374313c91d2cfbf46fb7a17"/><dir name="Attribute"><file name="Api.php" hash="d0678623a145bc2d76993819bd63bdb9"/><dir name="Media"><file name="Api.php" hash="62d58c61d93371793ebe94162755c4cd"/></dir></dir><dir name="Link"><file name="Api.php" hash="d42a76ca6368eabad4e4a96fd40a93a2"/></dir></dir></dir><dir name="etc"><file name="api.xml" hash="a4b2a568bf5b2def5f3fe32c06b4528c"/><file name="config.xml" hash="38782ebee68e58d804b3a17f490f6656"/><file name="wsdl.xml" hash="2b450fd6a6332d20583aaa4fc52012b6"/><file name="wsi.xml" hash="67dfb6257459f972cebaa06e3443a67f"/></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>