LinnLiveConnect - Version 1.1.66

Version Notes

Fixed an issue with Magento case sensitive variation attributes

Download this release

Release Info

Developer Aleksandr Kornev
Extension LinnLiveConnect
Version 1.1.66
Comparing to
See all releases


Code changes from version 1.1.65 to 1.1.66

app/code/local/LinnSystems/LinnLiveConnect/Helper/Data.php CHANGED
@@ -211,7 +211,7 @@ class LinnSystems_LinnLiveConnect_Helper_Data extends Mage_Core_Helper_Abstract
211
 
212
  foreach ( $attribute->getSource()->getAllOptions(true, true) as $option ){
213
 
214
- $label = strtolower($option['label']);
215
  $optionId = $option['value'];
216
  if (!isset($currentOptions[$attribute_id][$label])){
217
  $currentOptions[$attribute_id][$label] = $optionId;
@@ -265,9 +265,9 @@ class LinnSystems_LinnLiveConnect_Helper_Data extends Mage_Core_Helper_Abstract
265
 
266
  $value = isset($option->value)? $option->value : "";
267
 
268
- if (isset($_availableOptions[$option->attribute_id]) && isset($_availableOptions[$option->attribute_id][strtolower($option->label)]))
269
  {
270
- $value = $_availableOptions[$option->attribute_id][strtolower($option->label)];
271
  }
272
 
273
  array_push($multiAttributes[$option->code]->value, $value);
@@ -278,9 +278,9 @@ class LinnSystems_LinnLiveConnect_Helper_Data extends Mage_Core_Helper_Abstract
278
  $newAttribute->key = $option->code;
279
  $newAttribute->value = isset($option->value)? $option->value : "";
280
 
281
- if (isset($_availableOptions[$option->attribute_id]) && isset($_availableOptions[$option->attribute_id][strtolower($option->label)]))
282
  {
283
- $newAttribute->value = $_availableOptions[$option->attribute_id][strtolower($option->label)];
284
  }
285
 
286
  $additional_attributes->single_data[] = $newAttribute;
211
 
212
  foreach ( $attribute->getSource()->getAllOptions(true, true) as $option ){
213
 
214
+ $label = $option['label'];
215
  $optionId = $option['value'];
216
  if (!isset($currentOptions[$attribute_id][$label])){
217
  $currentOptions[$attribute_id][$label] = $optionId;
265
 
266
  $value = isset($option->value)? $option->value : "";
267
 
268
+ if (isset($_availableOptions[$option->attribute_id]) && isset($_availableOptions[$option->attribute_id][$option->label]))
269
  {
270
+ $value = $_availableOptions[$option->attribute_id][$option->label];
271
  }
272
 
273
  array_push($multiAttributes[$option->code]->value, $value);
278
  $newAttribute->key = $option->code;
279
  $newAttribute->value = isset($option->value)? $option->value : "";
280
 
281
+ if (isset($_availableOptions[$option->attribute_id]) && isset($_availableOptions[$option->attribute_id][$option->label]))
282
  {
283
+ $newAttribute->value = $_availableOptions[$option->attribute_id][$option->label];
284
  }
285
 
286
  $additional_attributes->single_data[] = $newAttribute;
app/code/local/LinnSystems/LinnLiveConnect/Model/Main.php CHANGED
@@ -85,8 +85,8 @@ class LinnSystems_LinnLiveConnect_Model_Main extends Mage_Core_Model_Abstract {
85
 
86
  foreach ($assignedProductsArray as $id => $productOptions) {
87
  foreach ($productOptions as $index => $option) {
88
- if (isset($availableOptions[$option['attribute_id']][strtolower($option['label'])])) {
89
- $assignedProductsArray[$id][$index]['value_index'] = $availableOptions[$option['attribute_id']][strtolower($option['label'])];
90
  }
91
  }
92
  }
85
 
86
  foreach ($assignedProductsArray as $id => $productOptions) {
87
  foreach ($productOptions as $index => $option) {
88
+ if (isset($availableOptions[$option['attribute_id']][$option['label']])) {
89
+ $assignedProductsArray[$id][$index]['value_index'] = $availableOptions[$option['attribute_id']][$option['label']];
90
  }
91
  }
92
  }
app/code/local/LinnSystems/LinnLiveConnect/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <LinnSystems_LinnLiveConnect>
5
- <version>1.1.65</version>
6
  </LinnSystems_LinnLiveConnect>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <LinnSystems_LinnLiveConnect>
5
+ <version>1.1.66</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.65</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>Fixed an issue with Magento 1.7.0.2 error</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>2016-02-27</date>
15
- <time>09:35:39</time>
16
- <contents><target name="magelocal"><dir name="LinnSystems"><dir name="LinnLiveConnect"><dir name="Helper"><file name="Data.php" hash="39795e3b89da70d74f5a2bd1b8adb901"/><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="8ca85cd35830e9cf3f1a78b64cc2ef14"/><dir name="Core"><file name="Store.php" hash="223c37a5156966322f1ef3d4b4530502"/><file name="Url.php" hash="f7480821c151b21f071b8853bf468f78"/></dir><file name="Main.php" hash="81ad0f9d92300154e3ddc1fa8dcb0961"/><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="a020814bef521d89558caef18e8a15cd"/><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="14fc1be272169d4eec6a481eee3cbb0d"/></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.66</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>Fixed an issue with Magento case sensitive variation attributes</notes>
13
+ <authors><author><name>Aleksandr Kornev</name><user>alex_LL2</user><email>alex.kornevs@linnsystems.com</email></author></authors>
14
+ <date>2017-05-12</date>
15
+ <time>09:40:12</time>
16
+ <contents><target name="magelocal"><dir name="LinnSystems"><dir name="LinnLiveConnect"><dir name="Helper"><file name="Data.php" hash="3987ba2184894d53f3c740f17da4adc6"/><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="8ca85cd35830e9cf3f1a78b64cc2ef14"/><dir name="Core"><file name="Store.php" hash="223c37a5156966322f1ef3d4b4530502"/><file name="Url.php" hash="f7480821c151b21f071b8853bf468f78"/></dir><file name="Main.php" hash="038aa1c7cb18af387393f6dff32bf8e1"/><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="eb18eb798f10585b20b17f89fe129fe7"/><file name="wsdl.xml" hash="2b450fd6a6332d20583aaa4fc52012b6"/><file name="wsi.xml" hash="38e71032a3bcf4629c4feccdd9e3ca15"/></dir></dir></dir></target><target name="mageetc"><dir name="."><dir name="modules"><file name="LinnSystems_LinnLiveConnect.xml" hash="14fc1be272169d4eec6a481eee3cbb0d"/></dir></dir></target></contents>
17
  <compatible/>
18
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
19
  </package>