Version Notes
Fixed compatibility issues with PHP 5.3 and Magento 1.7 and below.
Download this release
Release Info
Developer | FarApp |
Extension | FarApp_Connector |
Version | 1.2.8 |
Comparing to | |
See all releases |
Code changes from version 1.2.7 to 1.2.8
app/code/community/FarApp/Connector/Model/Import/Entity/Product.php
CHANGED
@@ -24,7 +24,8 @@ class FarApp_Connector_Model_Import_Entity_Product extends Mage_ImportExport_Mod
|
|
24 |
|
25 |
while ($source->valid() || $bunchRows) {
|
26 |
if ($startNewBunch || !$source->valid()) {
|
27 |
-
|
|
|
28 |
$arrKeys = array_keys($bunchRows);
|
29 |
$arrNew = array();
|
30 |
while(($tRow = array_pop($bunchRows))) {
|
@@ -351,6 +352,15 @@ class FarApp_Connector_Model_Import_Entity_Product extends Mage_ImportExport_Mod
|
|
351 |
return $this;
|
352 |
}
|
353 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
354 |
public function validateRow(array $rowData, $rowNum)
|
355 |
{
|
356 |
static $sku = null; // SKU is remembered through all product rows
|
@@ -431,4 +441,13 @@ class FarApp_Connector_Model_Import_Entity_Product extends Mage_ImportExport_Mod
|
|
431 |
}
|
432 |
return !isset($this->_invalidRows[$rowNum]);
|
433 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
434 |
}
|
24 |
|
25 |
while ($source->valid() || $bunchRows) {
|
26 |
if ($startNewBunch || !$source->valid()) {
|
27 |
+
$nextRowBackupValues = array_values($nextRowBackup);
|
28 |
+
if ($this->getBehavior() != Mage_ImportExport_Model_Import::BEHAVIOR_DELETE && $startNewBunch && !$nextRowBackupValues[0]['sku']) {
|
29 |
$arrKeys = array_keys($bunchRows);
|
30 |
$arrNew = array();
|
31 |
while(($tRow = array_pop($bunchRows))) {
|
352 |
return $this;
|
353 |
}
|
354 |
|
355 |
+
protected function _filterRowData(&$rowData)
|
356 |
+
{
|
357 |
+
$rowData = array_filter($rowData, 'strlen');
|
358 |
+
// Exceptions - for sku - put them back in
|
359 |
+
if (!isset($rowData[self::COL_SKU])) {
|
360 |
+
$rowData[self::COL_SKU] = null;
|
361 |
+
}
|
362 |
+
}
|
363 |
+
|
364 |
public function validateRow(array $rowData, $rowNum)
|
365 |
{
|
366 |
static $sku = null; // SKU is remembered through all product rows
|
441 |
}
|
442 |
return !isset($this->_invalidRows[$rowNum]);
|
443 |
}
|
444 |
+
|
445 |
+
protected function _validate($rowData, $rowNum, $sku)
|
446 |
+
{
|
447 |
+
$this->_isProductWebsiteValid($rowData, $rowNum);
|
448 |
+
$this->_isProductCategoryValid($rowData, $rowNum);
|
449 |
+
$this->_isTierPriceValid($rowData, $rowNum);
|
450 |
+
$this->_isGroupPriceValid($rowData, $rowNum);
|
451 |
+
$this->_isSuperProductsSkuValid($rowData, $rowNum);
|
452 |
+
}
|
453 |
}
|
app/code/community/FarApp/Connector/etc/config.xml
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
<config>
|
10 |
<modules>
|
11 |
<FarApp_Connector>
|
12 |
-
<version>1.2.
|
13 |
</FarApp_Connector>
|
14 |
</modules>
|
15 |
<global>
|
9 |
<config>
|
10 |
<modules>
|
11 |
<FarApp_Connector>
|
12 |
+
<version>1.2.8</version>
|
13 |
</FarApp_Connector>
|
14 |
</modules>
|
15 |
<global>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>FarApp_Connector</name>
|
4 |
-
<version>1.2.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://www.farapp.com/signup/">Commercial</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Connector to sync product data from FarApp to Magento. FarApp currently supports NetSuite and other backends.</summary>
|
10 |
<description>FarApp is a cloud-based solution for posting product data to storefronts, retrieving orders from storefront and posting fulfillments to storefronts. We support various backends including NetSuite, X-Cart, 3D-Cart, and more. This connector allows full product data posting to Magento from FarApp. It has the the extra benefits of allowing FarApp to dynamically push new product data, automatically creating new attribute options and importing external images (features not provided by Magento).</description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>FarApp</name><user>FarApp</user><email>support@farapp.com</email></author></authors>
|
13 |
-
<date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="FarApp"><dir name="Connector"><dir name="Model"><dir name="Export"><dir name="Adapter"><file name="Abstract.php" hash="765dc8fbab996f17b9f049cc8aa906a0"/><file name="Array.php" hash="6ca62c702dcb9512ec429563ac1ce1a2"/></dir><dir name="Entity"><file name="Order.php" hash="14a2f735cf8fc5e8f2bcd6682a1e56b1"/></dir></dir><file name="Export.php" hash="01643ef101731c6d98bbc523642f95a0"/><dir name="Import"><dir name="Entity"><file name="Customer.php" hash="376978f635c73605d428037cca8cf594"/><file name="Order.php" hash="38579396825a1bd3ad59de84278085f6"/><file name="Product.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.0.0</min><max>5.7.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>FarApp_Connector</name>
|
4 |
+
<version>1.2.8</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://www.farapp.com/signup/">Commercial</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Connector to sync product data from FarApp to Magento. FarApp currently supports NetSuite and other backends.</summary>
|
10 |
<description>FarApp is a cloud-based solution for posting product data to storefronts, retrieving orders from storefront and posting fulfillments to storefronts. We support various backends including NetSuite, X-Cart, 3D-Cart, and more. This connector allows full product data posting to Magento from FarApp. It has the the extra benefits of allowing FarApp to dynamically push new product data, automatically creating new attribute options and importing external images (features not provided by Magento).</description>
|
11 |
+
<notes>Fixed compatibility issues with PHP 5.3 and Magento 1.7 and below.</notes>
|
12 |
<authors><author><name>FarApp</name><user>FarApp</user><email>support@farapp.com</email></author></authors>
|
13 |
+
<date>2016-01-10</date>
|
14 |
+
<time>23:09:11</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="FarApp"><dir name="Connector"><dir name="Model"><dir name="Export"><dir name="Adapter"><file name="Abstract.php" hash="765dc8fbab996f17b9f049cc8aa906a0"/><file name="Array.php" hash="6ca62c702dcb9512ec429563ac1ce1a2"/></dir><dir name="Entity"><file name="Order.php" hash="14a2f735cf8fc5e8f2bcd6682a1e56b1"/></dir></dir><file name="Export.php" hash="01643ef101731c6d98bbc523642f95a0"/><dir name="Import"><dir name="Entity"><file name="Customer.php" hash="376978f635c73605d428037cca8cf594"/><file name="Order.php" hash="38579396825a1bd3ad59de84278085f6"/><file name="Product.php" hash="212ce858d898edb59445e0925f8a79b3"/><file name="minVersion2.php" hash="8df670fd68516ba1629304ae8ab6c812"/></dir></dir><file name="Import.php" hash="5f226d5505bf8e258a4e61f43b09b25a"/><dir name="Order"><dir name="Creditmemo"><file name="Api.php" hash="edb85d34679eab92e8990a0dd065632e"/></dir><dir name="Invoice"><file name="Api.php" hash="f133255dae51ab9c44c71ca9cc702d0a"/></dir></dir></dir><dir name="controllers"><file name="ExportController.php" hash="c51395789ff9eed363f20d5ab08ff528"/><file name="ImportController.php" hash="ec66abaf46073b9491889a199d665992"/><file name="IndexController.php" hash="93918848d3ce7f6ad05688f89a730e75"/></dir><dir name="etc"><file name="api.xml" hash="25b50336e5bfbd139eeb81bbf321dd78"/><file name="config.xml" hash="57f658aa6b1ace786cf8fa17a99f54d8"/><file name="wsdl.xml" hash="831bf87f9939132a9d9be6327d1b6a8e"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="FarApp_Connector.xml" hash="ff3fe315c70239229cb5ff3a49d40967"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.0.0</min><max>5.7.0</max></php></required></dependencies>
|
18 |
</package>
|