Version Notes
Magento 1.5 version. Please use UTF-8 csv files (to convert from any charset please use iconv linux command)
Download this release
Release Info
| Developer | Antonio Martinez |
| Extension | AMartinez_CustomImportExport |
| Version | 1.5.004 |
| Comparing to | |
| See all releases | |
Code changes from version 1.5.003 to 1.5.004
app/code/community/AMartinez/CustomImportExport/Model/Import.php
CHANGED
|
@@ -57,12 +57,13 @@ class AMartinez_CustomImportExport_Model_Import extends Mage_ImportExport_Model_
|
|
| 57 |
foreach ($processes as $process) {
|
| 58 |
/* @var $process Mage_Index_Model_Process */
|
| 59 |
try {
|
|
|
|
| 60 |
$process->reindexEverything();
|
| 61 |
-
echo "
|
| 62 |
} catch (Mage_Core_Exception $e) {
|
| 63 |
echo $e->getMessage() . "\n";
|
| 64 |
} catch (Exception $e) {
|
| 65 |
-
echo "
|
| 66 |
echo "\t" . $e . "\n";
|
| 67 |
}
|
| 68 |
}
|
| 57 |
foreach ($processes as $process) {
|
| 58 |
/* @var $process Mage_Index_Model_Process */
|
| 59 |
try {
|
| 60 |
+
echo "\t" . $process->getIndexer()->getName() . "... ";
|
| 61 |
$process->reindexEverything();
|
| 62 |
+
echo "index was rebuilt successfully\n";
|
| 63 |
} catch (Mage_Core_Exception $e) {
|
| 64 |
echo $e->getMessage() . "\n";
|
| 65 |
} catch (Exception $e) {
|
| 66 |
+
echo "index process unknown error:\n";
|
| 67 |
echo "\t" . $e . "\n";
|
| 68 |
}
|
| 69 |
}
|
app/code/community/AMartinez/CustomImportExport/etc/config.xml
CHANGED
|
@@ -14,7 +14,7 @@
|
|
| 14 |
|
| 15 |
<modules>
|
| 16 |
<AMartinez_CustomImportExport>
|
| 17 |
-
<version>1.5.
|
| 18 |
<depends>
|
| 19 |
<!-- no dependencies -->
|
| 20 |
</depends>
|
| 14 |
|
| 15 |
<modules>
|
| 16 |
<AMartinez_CustomImportExport>
|
| 17 |
+
<version>1.5.004</version>
|
| 18 |
<depends>
|
| 19 |
<!-- no dependencies -->
|
| 20 |
</depends>
|
app/code/community/AMartinez/CustomImportExport/shell/run.php
CHANGED
|
@@ -166,7 +166,7 @@ class AMartinez_CustomImportExport extends Mage_Shell_Abstract
|
|
| 166 |
{
|
| 167 |
return <<<HELP
|
| 168 |
|
| 169 |
-
AMartinez_CustomImportExport script (v. 1.5.
|
| 170 |
|
| 171 |
NAME
|
| 172 |
run.php
|
| 166 |
{
|
| 167 |
return <<<HELP
|
| 168 |
|
| 169 |
+
AMartinez_CustomImportExport script (v. 1.5.004)
|
| 170 |
|
| 171 |
NAME
|
| 172 |
run.php
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>AMartinez_CustomImportExport</name>
|
| 4 |
-
<version>1.5.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/osl-3.0">OSL v3.0</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -9,10 +9,9 @@
|
|
| 9 |
<summary>Import products to Magento database from CSV file, creating categories and attribute options automatically.</summary>
|
| 10 |
<description>This extension can import products to Magento database from pregenerated CSV file.
|
| 11 |

|
| 12 |
-
It extends Mage_ImportExport class -so it's FAST- creating CATEGORIES and ATTRIBUTE OPTIONS automatically.
|
| 13 |

|
| 14 |
You can use old-style csv files too, as used in previous magento versions (all values in a single row, comma separated)
|
| 15 |
-

|
| 16 |
e.g., fie named "myproducts.csv1":
|
| 17 |

|
| 18 |
..."store1,store2","visibility1,visibility2","CAT1,CAT2,CAT3","ASSOCIATED1,ASSOCIATED2"..
|
|
@@ -20,36 +19,36 @@ e.g., fie named "myproducts.csv1":
|
|
| 20 |
To daily automatize imports, you must call "run.php" via crontab or similar.
|
| 21 |

|
| 22 |
USE:
|
| 23 |
-

|
| 24 |
php -f app/code/community/AMartinez/CustomImportExport/shell/run.php
|
|
|
|
| 25 |
php -f app/code/community/AMartinez/CustomImportExport/shell/run.php [-- [OPTIONS...]]
|
| 26 |

|
| 27 |
OPTIONS
|
|
|
|
| 28 |
-s, --source csv file to import, if not passed uses the defined in config.xml
|
|
|
|
| 29 |
-r, --reindex reindex data by all indexers (attributes, prices, etc)
|
|
|
|
| 30 |
-c, --cleancache clean cache storage (html output, etc)
|
|
|
|
| 31 |
-f, --flushimages flush catalog images cache (pregenerated product images files)
|
|
|
|
| 32 |
-p, --applyrules recalculate catalog price rules
|
| 33 |

|
| 34 |
EXAMPLES
|
|
|
|
| 35 |
php -f app/code/community/AMartinez/CustomImportExport/shell/run.php -- -source var/importexport/products.csv
|
| 36 |
-
php -f app/code/community/AMartinez/CustomImportExport/shell/run.php -- -reindex
|
| 37 |
-
php -f app/code/community/AMartinez/CustomImportExport/shell/run.php -- -s var/importexport/products.csv -r -c -f -p
|
| 38 |

|
|
|
|
| 39 |

|
| 40 |
-
|
| 41 |

|
| 42 |
-
|
| 43 |
-
<input type="hidden" name="cmd" value="_s-xclick">
|
| 44 |
-
<input type="hidden" name="hosted_button_id" value="2YW7S23YH44UU">
|
| 45 |
-
<input type="image" src="https://www.paypalobjects.com/WEBSCR-640-20110401-1/es_ES/ES/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal. La forma rápida y segura de pagar en Internet.">
|
| 46 |
-
<img alt="" border="0" src="https://www.paypalobjects.com/WEBSCR-640-20110401-1/es_ES/i/scr/pixel.gif" width="1" height="1">
|
| 47 |
-
</form></description>
|
| 48 |
<notes>Magento 1.5 version. Please use UTF-8 csv files (to convert from any charset please use iconv linux command)</notes>
|
| 49 |
<authors><author><name>Antonio Martinez</name><user>amartinez</user><email>toniyecla@gmail.com</email></author></authors>
|
| 50 |
<date>2011-04-28</date>
|
| 51 |
-
<time>
|
| 52 |
-
<contents><target name="magecommunity"><dir name="AMartinez"><dir name="CustomImportExport"><dir name="Helper"><file name="Data.php" hash="0c8b64920ba9cf893513573bbbb55549"/></dir><dir name="Model"><dir name="Import"><dir name="Adapter"><file name="Csv1.php" hash="fa713ee0bc9034befd91eee758fc2d0a"/></dir><file name="Adapter.php" hash="6d7d568cc3dfe002763638513bc04b7f"/><dir name="Entity"><dir name="Product"><dir name="Type"><file name="Configurable.php" hash="3614bf1abe10bb500219c787c2a6ebcc"/><file name="Grouped.php" hash="b7c054303353d88e5d0c9fd303670ef5"/><file name="Simple.php" hash="48cdfdfc5c2e42b011e83483f50690c4"/></dir></dir><file name="Product.php" hash="0c211bad9b0f30306b72f11b2116cd0c"/></dir></dir><file name="Import.php" hash="
|
| 53 |
<compatible/>
|
| 54 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
| 55 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>AMartinez_CustomImportExport</name>
|
| 4 |
+
<version>1.5.004</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/osl-3.0">OSL v3.0</license>
|
| 7 |
<channel>community</channel>
|
| 9 |
<summary>Import products to Magento database from CSV file, creating categories and attribute options automatically.</summary>
|
| 10 |
<description>This extension can import products to Magento database from pregenerated CSV file.
|
| 11 |

|
| 12 |
+
It extends Mage_ImportExport class -so it's FAST- creating CATEGORIES and ATTRIBUTE OPTIONS automatically. You can update index, cache, images and price rules too.
|
| 13 |

|
| 14 |
You can use old-style csv files too, as used in previous magento versions (all values in a single row, comma separated)
|
|
|
|
| 15 |
e.g., fie named "myproducts.csv1":
|
| 16 |

|
| 17 |
..."store1,store2","visibility1,visibility2","CAT1,CAT2,CAT3","ASSOCIATED1,ASSOCIATED2"..
|
| 19 |
To daily automatize imports, you must call "run.php" via crontab or similar.
|
| 20 |

|
| 21 |
USE:
|
|
|
|
| 22 |
php -f app/code/community/AMartinez/CustomImportExport/shell/run.php
|
| 23 |
+

|
| 24 |
php -f app/code/community/AMartinez/CustomImportExport/shell/run.php [-- [OPTIONS...]]
|
| 25 |

|
| 26 |
OPTIONS
|
| 27 |
+

|
| 28 |
-s, --source csv file to import, if not passed uses the defined in config.xml
|
| 29 |
+

|
| 30 |
-r, --reindex reindex data by all indexers (attributes, prices, etc)
|
| 31 |
+

|
| 32 |
-c, --cleancache clean cache storage (html output, etc)
|
| 33 |
+

|
| 34 |
-f, --flushimages flush catalog images cache (pregenerated product images files)
|
| 35 |
+

|
| 36 |
-p, --applyrules recalculate catalog price rules
|
| 37 |

|
| 38 |
EXAMPLES
|
| 39 |
+

|
| 40 |
php -f app/code/community/AMartinez/CustomImportExport/shell/run.php -- -source var/importexport/products.csv
|
|
|
|
|
|
|
| 41 |

|
| 42 |
+
php -f app/code/community/AMartinez/CustomImportExport/shell/run.php -- -reindex
|
| 43 |

|
| 44 |
+
php -f app/code/community/AMartinez/CustomImportExport/shell/run.php -- -s var/importexport/products.csv -r -c -f -p
|
| 45 |

|
| 46 |
+
More options is coming soon!</description>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
<notes>Magento 1.5 version. Please use UTF-8 csv files (to convert from any charset please use iconv linux command)</notes>
|
| 48 |
<authors><author><name>Antonio Martinez</name><user>amartinez</user><email>toniyecla@gmail.com</email></author></authors>
|
| 49 |
<date>2011-04-28</date>
|
| 50 |
+
<time>17:38:56</time>
|
| 51 |
+
<contents><target name="magecommunity"><dir name="AMartinez"><dir name="CustomImportExport"><dir name="Helper"><file name="Data.php" hash="0c8b64920ba9cf893513573bbbb55549"/></dir><dir name="Model"><dir name="Import"><dir name="Adapter"><file name="Csv1.php" hash="fa713ee0bc9034befd91eee758fc2d0a"/></dir><file name="Adapter.php" hash="6d7d568cc3dfe002763638513bc04b7f"/><dir name="Entity"><dir name="Product"><dir name="Type"><file name="Configurable.php" hash="3614bf1abe10bb500219c787c2a6ebcc"/><file name="Grouped.php" hash="b7c054303353d88e5d0c9fd303670ef5"/><file name="Simple.php" hash="48cdfdfc5c2e42b011e83483f50690c4"/></dir></dir><file name="Product.php" hash="0c211bad9b0f30306b72f11b2116cd0c"/></dir></dir><file name="Import.php" hash="ac94315dc71c43dcbbd49146e4714723"/></dir><dir name="etc"><file name="config.xml" hash="a96fee9e3b19ac1a1c69763214e58404"/></dir><dir name="shell"><file name="run.php" hash="805ec027cce51301d256bf04b479d45a"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="AMartinez_CustomImportExport.xml" hash="75ba4fbc265d1cf2b6ab61b8f3a3b95e"/></dir></target><target name="mage"><dir name="var"><dir name="customimportexport"><file name="test_configurable.csv" hash="da1cb8fea77cc7ee591e3488d12ca6d8"/><file name="test_grouped.csv" hash="1281612b7e89e4681367e654631b2521"/><file name="test_single_row_style.csv1" hash="dfcd266cb65ab97e93f9402e4f32bffb"/></dir></dir></target></contents>
|
| 52 |
<compatible/>
|
| 53 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
| 54 |
</package>
|
var/log/exception.log
DELETED
|
File without changes
|
var/log/system.log
DELETED
|
File without changes
|
