Version Notes
fixes for store support
Download this release
Release Info
Developer | Albert Andrejev |
Extension | LinnLiveConnect |
Version | 1.1.58 |
Comparing to | |
See all releases |
Code changes from version 1.1.57 to 1.1.58
app/code/local/LinnSystems/LinnLiveConnect/Helper/Data.php
CHANGED
@@ -364,17 +364,16 @@ class LinnSystems_LinnLiveConnect_Helper_Data extends Mage_Core_Helper_Abstract
|
|
364 |
$productData->categories = $productData->category_ids;
|
365 |
}
|
366 |
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
//}
|
378 |
}
|
379 |
|
380 |
public function flushWsdlCache(){
|
364 |
$productData->categories = $productData->category_ids;
|
365 |
}
|
366 |
|
367 |
+
$websiteId = $this->getWebsiteId();
|
368 |
+
$currentWebsites = $_loadedProduct->getWebsiteIds();
|
369 |
+
if(!is_array($currentWebsites)){
|
370 |
+
$currentWebsites = array();
|
371 |
+
}
|
372 |
+
|
373 |
+
if (in_array($websiteId, $currentWebsites) === false){
|
374 |
+
$currentWebsites[] = $websiteId;
|
375 |
+
$productData->websites = $currentWebsites;
|
376 |
+
}
|
|
|
377 |
}
|
378 |
|
379 |
public function flushWsdlCache(){
|
app/code/local/LinnSystems/LinnLiveConnect/Model/Community.php
CHANGED
@@ -427,7 +427,19 @@ class LinnSystems_LinnLiveConnect_Model_Community extends LinnSystems_LinnLiveCo
|
|
427 |
* @return boolean
|
428 |
*/
|
429 |
protected function deleteProductImage($productId, $file, $identifierType = 'id') {
|
430 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
431 |
}
|
432 |
|
433 |
/**
|
427 |
* @return boolean
|
428 |
*/
|
429 |
protected function deleteProductImage($productId, $file, $identifierType = 'id') {
|
430 |
+
if(Mage::app()->isSingleStoreMode()){
|
431 |
+
return Mage::getModel('catalog/product_attribute_media_api') -> remove($productId, $file, $identifierType);
|
432 |
+
}
|
433 |
+
|
434 |
+
$product = Mage::helper('catalog/product') -> getProduct($productId, 'default', $identifierType);
|
435 |
+
$mediaGalleryAttribute = Mage::getModel('catalog/resource_eav_attribute')->loadByCode($product->getEntityTypeId(), 'media_gallery');
|
436 |
+
$gallery = $product->getMediaGalleryImages();
|
437 |
+
foreach ($gallery as $image){
|
438 |
+
if($file == $image->getFile()){
|
439 |
+
$mediaGalleryAttribute->getBackend()->removeImage($product, $file);
|
440 |
+
}
|
441 |
+
}
|
442 |
+
$product->save();
|
443 |
}
|
444 |
|
445 |
/**
|
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.58</version>
|
6 |
</LinnSystems_LinnLiveConnect>
|
7 |
</modules>
|
8 |
<global>
|
app/code/local/LinnSystems/LinnLiveConnect/etc/wsi.xml
CHANGED
@@ -18,6 +18,7 @@
|
|
18 |
<xsd:element minOccurs="1" maxOccurs="1" name="compilation_enabled" type="xsd:boolean" />
|
19 |
<xsd:element minOccurs="1" maxOccurs="1" name="max_upload_size" type="xsd:string" />
|
20 |
<xsd:element minOccurs="1" maxOccurs="1" name="store" type="xsd:string" />
|
|
|
21 |
<xsd:element minOccurs="1" maxOccurs="1" name="extension_version" type="xsd:string" />
|
22 |
<xsd:element minOccurs="1" maxOccurs="1" name="max_execution_time" type="xsd:string" />
|
23 |
</xsd:sequence>
|
18 |
<xsd:element minOccurs="1" maxOccurs="1" name="compilation_enabled" type="xsd:boolean" />
|
19 |
<xsd:element minOccurs="1" maxOccurs="1" name="max_upload_size" type="xsd:string" />
|
20 |
<xsd:element minOccurs="1" maxOccurs="1" name="store" type="xsd:string" />
|
21 |
+
<xsd:element minOccurs="1" maxOccurs="1" name="is_multi_store" type="xsd:boolean" />
|
22 |
<xsd:element minOccurs="1" maxOccurs="1" name="extension_version" type="xsd:string" />
|
23 |
<xsd:element minOccurs="1" maxOccurs="1" name="max_execution_time" type="xsd:string" />
|
24 |
</xsd:sequence>
|
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>
|
@@ -11,9 +11,9 @@
|
|
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-
|
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.58</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>GPL v2</license>
|
7 |
<channel>community</channel>
|
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-24</date>
|
15 |
+
<time>07:30:33</time>
|
16 |
+
<contents><target name="magelocal"><dir name="LinnSystems"><dir name="LinnLiveConnect"><dir name="Helper"><file name="Data.php" hash="456a8274c2f1d0565a2345fbc7677069"/><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="45032879e486d12760830b1f33d63ebb"/><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="3d8aebae53e3d62a7db21165743d244e"/><file name="wsdl.xml" hash="2b450fd6a6332d20583aaa4fc52012b6"/><file name="wsi.xml" hash="ad8aa3b49ac9cd24a3d1a4bef61d846d"/></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>
|