Version Notes
The release fixed:
- MEKCFM-7 Magento API - remove unprintable chars
Download this release
Release Info
Developer | GetReady Team |
Extension | getready_kaas |
Version | 1.0.5 |
Comparing to | |
See all releases |
Code changes from version 1.0.4 to 1.0.5
app/code/community/Getready/Kaas/Helper/Product/Data.php
CHANGED
@@ -146,7 +146,7 @@ class Getready_Kaas_Helper_Product_Data extends Mage_Core_Helper_Abstract
|
|
146 |
if (!$is_parent) {
|
147 |
$parent_id = $this->_isChild($product, true);
|
148 |
if ($parent_id) {
|
149 |
-
$group_id = $parent_id;
|
150 |
}
|
151 |
}
|
152 |
|
@@ -194,12 +194,11 @@ class Getready_Kaas_Helper_Product_Data extends Mage_Core_Helper_Abstract
|
|
194 |
// }
|
195 |
|
196 |
if ($parent_ids) {
|
197 |
-
if (
|
198 |
$is_child = reset($parent_ids);
|
199 |
} else {
|
200 |
$is_child = true;
|
201 |
}
|
202 |
-
|
203 |
}
|
204 |
}
|
205 |
|
@@ -285,6 +284,16 @@ class Getready_Kaas_Helper_Product_Data extends Mage_Core_Helper_Abstract
|
|
285 |
return $flat_attributes;
|
286 |
}
|
287 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
288 |
public function _getProductAttributeValue($product, $attribute)
|
289 |
{
|
290 |
$formated_value = $attribute->getFrontend()->getValue($product);
|
@@ -315,6 +324,9 @@ class Getready_Kaas_Helper_Product_Data extends Mage_Core_Helper_Abstract
|
|
315 |
case 'datetime':
|
316 |
$formated_value = $this->_format_datetime($formated_value);
|
317 |
break;
|
|
|
|
|
|
|
318 |
}
|
319 |
|
320 |
return $formated_value;
|
146 |
if (!$is_parent) {
|
147 |
$parent_id = $this->_isChild($product, true);
|
148 |
if ($parent_id) {
|
149 |
+
$group_id = $parent_id;
|
150 |
}
|
151 |
}
|
152 |
|
194 |
// }
|
195 |
|
196 |
if ($parent_ids) {
|
197 |
+
if ($return_parent_id) {
|
198 |
$is_child = reset($parent_ids);
|
199 |
} else {
|
200 |
$is_child = true;
|
201 |
}
|
|
|
202 |
}
|
203 |
}
|
204 |
|
284 |
return $flat_attributes;
|
285 |
}
|
286 |
|
287 |
+
protected function _normalizeFormatedValue($formated_value)
|
288 |
+
{
|
289 |
+
// check utf8
|
290 |
+
$formated_value = @iconv('UTF-8', 'UTF-8//IGNORE', $formated_value);
|
291 |
+
// remove not printed chars and 4+bytes symbols
|
292 |
+
$formated_value = preg_replace('/[\x00-\x08\x0B\x0C\x0E-\x1F\x80-\x9F\x{10000}-\x{10FFFF}]/u', '', $formated_value);
|
293 |
+
|
294 |
+
return $formated_value;
|
295 |
+
}
|
296 |
+
|
297 |
public function _getProductAttributeValue($product, $attribute)
|
298 |
{
|
299 |
$formated_value = $attribute->getFrontend()->getValue($product);
|
324 |
case 'datetime':
|
325 |
$formated_value = $this->_format_datetime($formated_value);
|
326 |
break;
|
327 |
+
default:
|
328 |
+
$formated_value = $this->_normalizeFormatedValue($formated_value);
|
329 |
+
|
330 |
}
|
331 |
|
332 |
return $formated_value;
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>getready_kaas</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL-v3</license>
|
7 |
<channel>community</channel>
|
@@ -9,11 +9,11 @@
|
|
9 |
<summary>Koongo is the ultimate Feed and Affiliate Marketing Tool that allows integration of electronic stores with more 500+ product aggregators, affiliate networks and selling channels worldwide.</summary>
|
10 |
<description>Koongo is the ultimate feed marketing tool that streamlines the process of the product export from e-stores to various product search and price comparison websites, affiliate networks and selling channels. Since Koongo doesn’t require any programming skills it allows online retailers and merchants to reach seamlessly hundreds of new marketing channels from around the world from a single integration point. Hence, Koongo is capable of bringing millions of new prospective customers to online stores of merchants and can increase store revenues by up to 25%! In addition, through the support of 500+ selling channels from more than 40 countries worldwide Koongo simplifies the process of expanding online businesses behind the borders of one country (i.e. cross-border selling).</description>
|
11 |
<notes>The release fixed: 
|
12 |
-
- MEKCFM-
|
13 |
<authors><author><name>GetReady Team</name><user>getreadycz</user><email>info@getready.cz</email></author></authors>
|
14 |
-
<date>2016-
|
15 |
-
<time>
|
16 |
-
<contents><target name="magecommunity"><dir name="Getready"><dir name="Kaas"><dir name="Helper"><dir name="Activity"><file name="Data.php" hash="f740db9b7cf37539c30ce8766120099e"/></dir><dir name="Category"><dir name="Cache"><file name="Data.php" hash="f58b176ea2aafaf6379b3a8032807c9a"/></dir><file name="Data.php" hash="cdfcb801765cfdcb0fc29324e0f83c79"/></dir><file name="Data.php" hash="396a79d8e2d1bc921d16853a8810be6f"/><dir name="Product"><dir name="Category"><file name="Data.php" hash="3b0d25221ea5470e74e18f3d95c65f3e"/></dir><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>getready_kaas</name>
|
4 |
+
<version>1.0.5</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL-v3</license>
|
7 |
<channel>community</channel>
|
9 |
<summary>Koongo is the ultimate Feed and Affiliate Marketing Tool that allows integration of electronic stores with more 500+ product aggregators, affiliate networks and selling channels worldwide.</summary>
|
10 |
<description>Koongo is the ultimate feed marketing tool that streamlines the process of the product export from e-stores to various product search and price comparison websites, affiliate networks and selling channels. Since Koongo doesn’t require any programming skills it allows online retailers and merchants to reach seamlessly hundreds of new marketing channels from around the world from a single integration point. Hence, Koongo is capable of bringing millions of new prospective customers to online stores of merchants and can increase store revenues by up to 25%! In addition, through the support of 500+ selling channels from more than 40 countries worldwide Koongo simplifies the process of expanding online businesses behind the borders of one country (i.e. cross-border selling).</description>
|
11 |
<notes>The release fixed: 
|
12 |
+
- MEKCFM-7 Magento API - remove unprintable chars</notes>
|
13 |
<authors><author><name>GetReady Team</name><user>getreadycz</user><email>info@getready.cz</email></author></authors>
|
14 |
+
<date>2016-08-24</date>
|
15 |
+
<time>08:41:01</time>
|
16 |
+
<contents><target name="magecommunity"><dir name="Getready"><dir name="Kaas"><dir name="Helper"><dir name="Activity"><file name="Data.php" hash="f740db9b7cf37539c30ce8766120099e"/></dir><dir name="Category"><dir name="Cache"><file name="Data.php" hash="f58b176ea2aafaf6379b3a8032807c9a"/></dir><file name="Data.php" hash="cdfcb801765cfdcb0fc29324e0f83c79"/></dir><file name="Data.php" hash="396a79d8e2d1bc921d16853a8810be6f"/><dir name="Product"><dir name="Category"><file name="Data.php" hash="3b0d25221ea5470e74e18f3d95c65f3e"/></dir><file name="Data.php" hash="2f0d8223518969a1c7dc1174449d7bfb"/><dir name="Store"><file name="Data.php" hash="4f7520c7735e8a74c2f31108af0292d1"/></dir></dir><dir name="Store"><file name="Data.php" hash="dd6761eabe99f38e1bee0b8970d79ad1"/></dir></dir><dir name="Model"><dir name="Activity"><dir name="Api"><file name="V2.php" hash="95991dd5a89815c25b3452b504ddc724"/></dir><file name="Api.php" hash="9d2cc4613c946121339947c3f6d309d1"/></dir><file name="Activity.php" hash="5c66680b60ed77a43b72f7f48fc5a388"/><dir name="Category"><dir name="Api"><file name="V2.php" hash="3b630df6b4db280474c101739e845cf1"/></dir><file name="Api.php" hash="168fb674acfd68ab8783272cc6451b05"/></dir><dir name="Mysql4"><dir name="Activity"><file name="Collection.php" hash="07ca00fd1d671851a2cda075f43d1edf"/></dir><file name="Activity.php" hash="df1ee06c9f0d5b51f351a770056bc6cc"/></dir><file name="Observer.php" hash="86a5f75f45e6fa3a24aa3c0f48167ca3"/><dir name="Product"><dir name="Api"><file name="V2.php" hash="d897bffbb6828432959552242970309c"/></dir><file name="Api.php" hash="2412f1942067b954ddf69b106c6b5e0d"/></dir><dir name="Store"><dir name="Api"><file name="V2.php" hash="80c4a43f1f06448dc4a615ba4faa4380"/></dir><file name="Api.php" hash="77ec017377e44735cba6c3b87b2d40d6"/></dir></dir><dir name="etc"><file name="api.xml" hash="a3837ad74ac6d25f3486d1f8c174bf98"/><file name="config.xml" hash="61788895e8cfca614bf87015c948e860"/><file name="wsdl.xml" hash="49baf43dfcb1e8f5726de0d2ac9cea5a"/></dir><dir name="sql"><dir name="kaas_setup"><file name="mysql4-install-1.0.0.php" hash="74ddd3718f91c81735c47aee48781e13"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Getready_Kaas.xml" hash="0ad572c56eb98c83337dcaf2f1f2053f"/></dir></target></contents>
|
17 |
<compatible/>
|
18 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
19 |
</package>
|