Version Notes
Fixed an issue with identifier type
Download this release
Release Info
| Developer | Albert Andrejev |
| Extension | LinnLiveConnect |
| Version | 1.1.62 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.61 to 1.1.62
app/code/local/LinnSystems/LinnLiveConnect/Helper/Data.php
CHANGED
|
@@ -387,7 +387,8 @@ class LinnSystems_LinnLiveConnect_Helper_Data extends Mage_Core_Helper_Abstract
|
|
| 387 |
if (in_array($websiteId, $currentWebsites) === false){
|
| 388 |
$currentWebsites[] = $websiteId;
|
| 389 |
$productData->websites = $currentWebsites;
|
| 390 |
-
}
|
|
|
|
| 391 |
}
|
| 392 |
|
| 393 |
public function flushWsdlCache(){
|
| 387 |
if (in_array($websiteId, $currentWebsites) === false){
|
| 388 |
$currentWebsites[] = $websiteId;
|
| 389 |
$productData->websites = $currentWebsites;
|
| 390 |
+
}
|
| 391 |
+
return $_loadedProduct->getId();
|
| 392 |
}
|
| 393 |
|
| 394 |
public function flushWsdlCache(){
|
app/code/local/LinnSystems/LinnLiveConnect/Model/Community.php
CHANGED
|
@@ -337,12 +337,12 @@ class LinnSystems_LinnLiveConnect_Model_Community extends LinnSystems_LinnLiveCo
|
|
| 337 |
*
|
| 338 |
* @return boolean
|
| 339 |
*/
|
| 340 |
-
public function updateSimpleProduct($
|
| 341 |
|
| 342 |
$helper = Mage::helper('linnLiveConnect');
|
| 343 |
$store = $helper -> currentStoreCode($store);
|
| 344 |
|
| 345 |
-
$helper -> updateProductData($
|
| 346 |
|
| 347 |
$productData = $helper -> updateProperties($productData);
|
| 348 |
|
|
@@ -350,7 +350,7 @@ class LinnSystems_LinnLiveConnect_Model_Community extends LinnSystems_LinnLiveCo
|
|
| 350 |
|
| 351 |
$productAPI = Mage::getModel('catalog/product_api_v2');
|
| 352 |
|
| 353 |
-
return $productAPI -> update($
|
| 354 |
}
|
| 355 |
|
| 356 |
/**
|
|
@@ -358,7 +358,7 @@ class LinnSystems_LinnLiveConnect_Model_Community extends LinnSystems_LinnLiveCo
|
|
| 358 |
*
|
| 359 |
* @return boolean
|
| 360 |
*/
|
| 361 |
-
public function updateConfigurableProduct($
|
| 362 |
|
| 363 |
$helper = Mage::helper('linnLiveConnect');
|
| 364 |
|
|
@@ -368,15 +368,15 @@ class LinnSystems_LinnLiveConnect_Model_Community extends LinnSystems_LinnLiveCo
|
|
| 368 |
|
| 369 |
$store = $helper -> currentStoreCode($store);
|
| 370 |
|
| 371 |
-
$helper -> updateProductData($
|
| 372 |
|
| 373 |
$productAPI = Mage::getModel('catalog/product_api_v2');
|
| 374 |
|
| 375 |
-
$productAPI -> update($
|
| 376 |
|
| 377 |
list($assignedProductsArray, $attributesSetArray) = $this -> _prepareConfigurableData($productsSet, $attributesSet, $productId, true);
|
| 378 |
|
| 379 |
-
return $this -> _updateConfigurable($store, $
|
| 380 |
}
|
| 381 |
|
| 382 |
/**
|
| 337 |
*
|
| 338 |
* @return boolean
|
| 339 |
*/
|
| 340 |
+
public function updateSimpleProduct($productIdentifier, $productData, $store = null, $identifierType = 'id') {
|
| 341 |
|
| 342 |
$helper = Mage::helper('linnLiveConnect');
|
| 343 |
$store = $helper -> currentStoreCode($store);
|
| 344 |
|
| 345 |
+
$helper -> updateProductData($productIdentifier, $productData, $store, $identifierType);
|
| 346 |
|
| 347 |
$productData = $helper -> updateProperties($productData);
|
| 348 |
|
| 350 |
|
| 351 |
$productAPI = Mage::getModel('catalog/product_api_v2');
|
| 352 |
|
| 353 |
+
return $productAPI -> update($productIdentifier, $productData, $store, $identifierType);
|
| 354 |
}
|
| 355 |
|
| 356 |
/**
|
| 358 |
*
|
| 359 |
* @return boolean
|
| 360 |
*/
|
| 361 |
+
public function updateConfigurableProduct($productIdentifier, $reindex, $productData, $productsSet, $attributesSet, $store = null, $identifierType = 'id') {
|
| 362 |
|
| 363 |
$helper = Mage::helper('linnLiveConnect');
|
| 364 |
|
| 368 |
|
| 369 |
$store = $helper -> currentStoreCode($store);
|
| 370 |
|
| 371 |
+
$productId = $helper -> updateProductData($productIdentifier, $productData, $store, $identifierType);
|
| 372 |
|
| 373 |
$productAPI = Mage::getModel('catalog/product_api_v2');
|
| 374 |
|
| 375 |
+
$productAPI -> update($productIdentifier, $productData, $store, $identifierType);
|
| 376 |
|
| 377 |
list($assignedProductsArray, $attributesSetArray) = $this -> _prepareConfigurableData($productsSet, $attributesSet, $productId, true);
|
| 378 |
|
| 379 |
+
return $this -> _updateConfigurable($store, $productIdentifier, $assignedProductsArray, $attributesSetArray, $identifierType, true, $reindex);
|
| 380 |
}
|
| 381 |
|
| 382 |
/**
|
app/code/local/LinnSystems/LinnLiveConnect/etc/config.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<LinnSystems_LinnLiveConnect>
|
| 5 |
-
<version>1.1.
|
| 6 |
</LinnSystems_LinnLiveConnect>
|
| 7 |
</modules>
|
| 8 |
<global>
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<LinnSystems_LinnLiveConnect>
|
| 5 |
+
<version>1.1.62</version>
|
| 6 |
</LinnSystems_LinnLiveConnect>
|
| 7 |
</modules>
|
| 8 |
<global>
|
app/code/local/LinnSystems/LinnLiveConnect/etc/wsi.xml
CHANGED
|
@@ -280,7 +280,7 @@
|
|
| 280 |
<xsd:complexType name="linnLiveBulkResultResponseEntity">
|
| 281 |
<xsd:sequence>
|
| 282 |
<xsd:element minOccurs="1" name="sku" type="xsd:string" />
|
| 283 |
-
<xsd:element minOccurs="1" name="productId" type="xsd:
|
| 284 |
<xsd:element minOccurs="1" name="isError" type="xsd:boolean" />
|
| 285 |
<xsd:element minOccurs="0" name="error" type="xsd:string" />
|
| 286 |
</xsd:sequence>
|
|
@@ -297,7 +297,7 @@
|
|
| 297 |
<xsd:complexType name="linnLiveBulkImageResponseEntity">
|
| 298 |
<xsd:sequence>
|
| 299 |
<xsd:element minOccurs="1" name="imageId" type="xsd:string" />
|
| 300 |
-
<xsd:element minOccurs="1" name="productId" type="xsd:
|
| 301 |
<xsd:element minOccurs="1" name="isError" type="xsd:boolean" />
|
| 302 |
<xsd:element minOccurs="0" name="error" type="xsd:string" />
|
| 303 |
<xsd:element minOccurs="0" name="file" type="xsd:string" />
|
|
@@ -316,7 +316,7 @@
|
|
| 316 |
<xsd:complexType name="linnLiveBulkRelatedProductsResponseEntity">
|
| 317 |
<xsd:sequence>
|
| 318 |
<xsd:element minOccurs="1" name="relatedId" type="xsd:string" />
|
| 319 |
-
<xsd:element minOccurs="1" name="productId" type="xsd:
|
| 320 |
<xsd:element minOccurs="1" name="isError" type="xsd:boolean" />
|
| 321 |
<xsd:element minOccurs="0" name="error" type="xsd:string" />
|
| 322 |
</xsd:sequence>
|
|
@@ -370,9 +370,9 @@
|
|
| 370 |
<xsd:complexType name="linnLiveDeleteProductImagesRequestEntity">
|
| 371 |
<xsd:sequence>
|
| 372 |
<xsd:element minOccurs="1" maxOccurs="1" name="imageId" type="xsd:string" />
|
| 373 |
-
<xsd:element minOccurs="1" maxOccurs="1" name="productId" type="xsd:string"
|
| 374 |
-
<xsd:element minOccurs="1" maxOccurs="1" name="file" type="xsd:string"
|
| 375 |
-
<xsd:element minOccurs="0" maxOccurs="1" name="identifierType" type="xsd:string"
|
| 376 |
</xsd:sequence>
|
| 377 |
</xsd:complexType>
|
| 378 |
|
| 280 |
<xsd:complexType name="linnLiveBulkResultResponseEntity">
|
| 281 |
<xsd:sequence>
|
| 282 |
<xsd:element minOccurs="1" name="sku" type="xsd:string" />
|
| 283 |
+
<xsd:element minOccurs="1" name="productId" type="xsd:string" />
|
| 284 |
<xsd:element minOccurs="1" name="isError" type="xsd:boolean" />
|
| 285 |
<xsd:element minOccurs="0" name="error" type="xsd:string" />
|
| 286 |
</xsd:sequence>
|
| 297 |
<xsd:complexType name="linnLiveBulkImageResponseEntity">
|
| 298 |
<xsd:sequence>
|
| 299 |
<xsd:element minOccurs="1" name="imageId" type="xsd:string" />
|
| 300 |
+
<xsd:element minOccurs="1" name="productId" type="xsd:string" />
|
| 301 |
<xsd:element minOccurs="1" name="isError" type="xsd:boolean" />
|
| 302 |
<xsd:element minOccurs="0" name="error" type="xsd:string" />
|
| 303 |
<xsd:element minOccurs="0" name="file" type="xsd:string" />
|
| 316 |
<xsd:complexType name="linnLiveBulkRelatedProductsResponseEntity">
|
| 317 |
<xsd:sequence>
|
| 318 |
<xsd:element minOccurs="1" name="relatedId" type="xsd:string" />
|
| 319 |
+
<xsd:element minOccurs="1" name="productId" type="xsd:string" />
|
| 320 |
<xsd:element minOccurs="1" name="isError" type="xsd:boolean" />
|
| 321 |
<xsd:element minOccurs="0" name="error" type="xsd:string" />
|
| 322 |
</xsd:sequence>
|
| 370 |
<xsd:complexType name="linnLiveDeleteProductImagesRequestEntity">
|
| 371 |
<xsd:sequence>
|
| 372 |
<xsd:element minOccurs="1" maxOccurs="1" name="imageId" type="xsd:string" />
|
| 373 |
+
<xsd:element minOccurs="1" maxOccurs="1" name="productId" type="xsd:string" />
|
| 374 |
+
<xsd:element minOccurs="1" maxOccurs="1" name="file" type="xsd:string" />
|
| 375 |
+
<xsd:element minOccurs="0" maxOccurs="1" name="identifierType" type="xsd:string" />
|
| 376 |
</xsd:sequence>
|
| 377 |
</xsd:complexType>
|
| 378 |
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>LinnLiveConnect</name>
|
| 4 |
-
<version>1.1.
|
| 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).
|
| 11 |
Contains some workarounds to avoid bugs in original Magento modules and additional functionality to operate Magento store remotely.</description>
|
| 12 |
-
<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>2015-02-
|
| 15 |
-
<time>
|
| 16 |
-
<contents><target name="magelocal"><dir name="LinnSystems"><dir name="LinnLiveConnect"><dir name="Helper"><file name="Data.php" hash="
|
| 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.62</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).
|
| 11 |
Contains some workarounds to avoid bugs in original Magento modules and additional functionality to operate Magento store remotely.</description>
|
| 12 |
+
<notes>Fixed an issue with identifier type</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>2015-02-19</date>
|
| 15 |
+
<time>06:37:30</time>
|
| 16 |
+
<contents><target name="magelocal"><dir name="LinnSystems"><dir name="LinnLiveConnect"><dir name="Helper"><file name="Data.php" hash="78f74c475691a687b1468f2fcb3f9337"/><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="e1d52ef1f902a454c747f0d67d7dfb5e"/></dir><file name="Community.php" hash="20c1d880203627654657a90676eae460"/><dir name="Core"><file name="Store.php" hash="223c37a5156966322f1ef3d4b4530502"/><file name="Url.php" hash="f7480821c151b21f071b8853bf468f78"/></dir><file name="Main.php" hash="f0e9eff62c728f566e9a7da8730ac4d6"/><dir name="Product"><dir name="Api"><file name="V2.php" hash="2e5d74bff09976d7970ac514ec2babd1"/></dir><file name="Api.php" hash="eaa63183cb69e529322459cf3e86c6df"/><dir name="Attribute"><file name="Api.php" hash="fa77daa27c19a04d2a357a4da8222f16"/><dir name="Media"><file name="Api.php" hash="d343f56cbf15bbf5ae5a829be8c66d6d"/></dir></dir><dir name="Link"><file name="Api.php" hash="0ff8998682b9d85a84947215748dd94b"/></dir></dir></dir><dir name="etc"><file name="api.xml" hash="a4b2a568bf5b2def5f3fe32c06b4528c"/><file name="config.xml" hash="0952c9fd8898ddc5a86e37c1b3311c53"/><file name="wsdl.xml" hash="2b450fd6a6332d20583aaa4fc52012b6"/><file name="wsi.xml" hash="38e71032a3bcf4629c4feccdd9e3ca15"/></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>
|
