Version Notes
price update fixed
Download this release
Release Info
| Developer | Albert Andrejev |
| Extension | LinnLiveConnect |
| Version | 1.1.55 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.54 to 1.1.55
app/code/local/LinnSystems/LinnLiveConnect/Model/Api/V2.php
CHANGED
|
@@ -871,13 +871,13 @@ class LinnLiveCommunity extends LinnLiveMain {
|
|
| 871 |
*
|
| 872 |
* @return boolean
|
| 873 |
*/
|
| 874 |
-
protected function updateProductPrice($productId, $store = null, $identifierType = 'id') {
|
| 875 |
|
| 876 |
$product = Mage::helper('catalog/product') -> getProduct($productId, $store, $identifierType);
|
| 877 |
|
| 878 |
if ($product && $product -> getId()) {
|
| 879 |
-
if ($product -> getPrice() != $
|
| 880 |
-
$product -> setPrice($
|
| 881 |
$product -> save();
|
| 882 |
}
|
| 883 |
return true;
|
|
@@ -1070,7 +1070,7 @@ class LinnLiveCommunity extends LinnLiveMain {
|
|
| 1070 |
for ($i = 0; $i < sizeof($data); $i++) {
|
| 1071 |
$entity = $data[$i];
|
| 1072 |
try {
|
| 1073 |
-
$result = $this -> updateProductPrice($entity -> sku, $store, $identifierType);
|
| 1074 |
$response[] = array('sku' => $entity -> sku, 'success' => $result);
|
| 1075 |
} catch (Exception $e) {
|
| 1076 |
$response[] = array('sku' => $entity -> sku, 'success' => false);
|
| 871 |
*
|
| 872 |
* @return boolean
|
| 873 |
*/
|
| 874 |
+
protected function updateProductPrice($productId, $price, $store = null, $identifierType = 'id') {
|
| 875 |
|
| 876 |
$product = Mage::helper('catalog/product') -> getProduct($productId, $store, $identifierType);
|
| 877 |
|
| 878 |
if ($product && $product -> getId()) {
|
| 879 |
+
if ($product -> getPrice() != $price) {
|
| 880 |
+
$product -> setPrice($price);
|
| 881 |
$product -> save();
|
| 882 |
}
|
| 883 |
return true;
|
| 1070 |
for ($i = 0; $i < sizeof($data); $i++) {
|
| 1071 |
$entity = $data[$i];
|
| 1072 |
try {
|
| 1073 |
+
$result = $this -> updateProductPrice($entity -> sku, $entity -> price, $store, $identifierType);
|
| 1074 |
$response[] = array('sku' => $entity -> sku, 'success' => $result);
|
| 1075 |
} catch (Exception $e) {
|
| 1076 |
$response[] = array('sku' => $entity -> sku, 'success' => false);
|
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.55</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.
|
| 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>2014-
|
| 15 |
-
<time>
|
| 16 |
-
<contents><target name="magelocal"><dir name="LinnSystems"><dir name="LinnLiveConnect"><dir name="Helper"><file name="Data.php" hash="c9e451e14ccc0e723f6535627ade9e0d"/><file name="Settings.php" hash="086ba912d38dc66964a2f40f685394a5"/></dir><dir name="Model"><dir name="Api"><file name="V2.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.55</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>price update fixed</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-04</date>
|
| 15 |
+
<time>14:00:26</time>
|
| 16 |
+
<contents><target name="magelocal"><dir name="LinnSystems"><dir name="LinnLiveConnect"><dir name="Helper"><file name="Data.php" hash="c9e451e14ccc0e723f6535627ade9e0d"/><file name="Settings.php" hash="086ba912d38dc66964a2f40f685394a5"/></dir><dir name="Model"><dir name="Api"><file name="V2.php" hash="bca78c146c45b83af9f1d18494f7be9f"/></dir></dir><dir name="etc"><file name="api.xml" hash="75b6e8083d17b8dbf4c1cab2ff3ed1ea"/><file name="config.xml" hash="0ec4b881655aa0352392a279cf244291"/><file name="wsdl.xml" hash="2b450fd6a6332d20583aaa4fc52012b6"/><file name="wsi.xml" hash="c27640d6dc0ddb63fa3b0450a8312780"/></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>
|
