AMartinez_CustomImportExport - Version 1.5.004

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 "\t" . $process->getIndexer()->getName() . " index was rebuilt successfully\n";
62
  } catch (Mage_Core_Exception $e) {
63
  echo $e->getMessage() . "\n";
64
  } catch (Exception $e) {
65
- echo "\t" . $process->getIndexer()->getName() . " index process unknown error:\n";
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.003</version>
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.003)
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.003</version>
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.&#xD;
11
  &#xD;
12
- It extends Mage_ImportExport class -so it's FAST- creating CATEGORIES and ATTRIBUTE OPTIONS automatically.&#xD;
13
  &#xD;
14
  You can use old-style csv files too, as used in previous magento versions (all values in a single row, comma separated)&#xD;
15
- &#xD;
16
  e.g., fie named "myproducts.csv1":&#xD;
17
  &#xD;
18
  ..."store1,store2","visibility1,visibility2","CAT1,CAT2,CAT3","ASSOCIATED1,ASSOCIATED2"..&#xD;
@@ -20,36 +19,36 @@ e.g., fie named "myproducts.csv1":&#xD;
20
  To daily automatize imports, you must call "run.php" via crontab or similar.&#xD;
21
  &#xD;
22
  USE:&#xD;
23
- &#xD;
24
  php -f app/code/community/AMartinez/CustomImportExport/shell/run.php&#xD;
 
25
  php -f app/code/community/AMartinez/CustomImportExport/shell/run.php [-- [OPTIONS...]]&#xD;
26
  &#xD;
27
  OPTIONS&#xD;
 
28
  -s, --source csv file to import, if not passed uses the defined in config.xml&#xD;
 
29
  -r, --reindex reindex data by all indexers (attributes, prices, etc)&#xD;
 
30
  -c, --cleancache clean cache storage (html output, etc)&#xD;
 
31
  -f, --flushimages flush catalog images cache (pregenerated product images files)&#xD;
 
32
  -p, --applyrules recalculate catalog price rules&#xD;
33
  &#xD;
34
  EXAMPLES&#xD;
 
35
  php -f app/code/community/AMartinez/CustomImportExport/shell/run.php -- -source var/importexport/products.csv&#xD;
36
- php -f app/code/community/AMartinez/CustomImportExport/shell/run.php -- -reindex&#xD;
37
- php -f app/code/community/AMartinez/CustomImportExport/shell/run.php -- -s var/importexport/products.csv -r -c -f -p&#xD;
38
  &#xD;
 
39
  &#xD;
40
- More options is coming soon!&#xD;
41
  &#xD;
42
- &lt;form action="https://www.paypal.com/cgi-bin/webscr" method="post"&gt;&#xD;
43
- &lt;input type="hidden" name="cmd" value="_s-xclick"&gt;&#xD;
44
- &lt;input type="hidden" name="hosted_button_id" value="2YW7S23YH44UU"&gt;&#xD;
45
- &lt;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&#xE1;pida y segura de pagar en Internet."&gt;&#xD;
46
- &lt;img alt="" border="0" src="https://www.paypalobjects.com/WEBSCR-640-20110401-1/es_ES/i/scr/pixel.gif" width="1" height="1"&gt;&#xD;
47
- &lt;/form&gt;</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>11:30:09</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="2659523fed863f17915134b4e8d5d347"/></dir><dir name="etc"><file name="config.xml" hash="71565db61607529502e877ffb485556a"/></dir><dir name="shell"><file name="run.php" hash="75a5b247c6057c9c7a50bf19559a9f81"/></dir></dir></dir></target><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="AMartinez_CustomImportExport.xml" hash="75ba4fbc265d1cf2b6ab61b8f3a3b95e"/></dir></dir></dir><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 name="log"><file name="exception.log" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="system.log" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></target></contents>
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.&#xD;
11
  &#xD;
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.&#xD;
13
  &#xD;
14
  You can use old-style csv files too, as used in previous magento versions (all values in a single row, comma separated)&#xD;
 
15
  e.g., fie named "myproducts.csv1":&#xD;
16
  &#xD;
17
  ..."store1,store2","visibility1,visibility2","CAT1,CAT2,CAT3","ASSOCIATED1,ASSOCIATED2"..&#xD;
19
  To daily automatize imports, you must call "run.php" via crontab or similar.&#xD;
20
  &#xD;
21
  USE:&#xD;
 
22
  php -f app/code/community/AMartinez/CustomImportExport/shell/run.php&#xD;
23
+ &#xD;
24
  php -f app/code/community/AMartinez/CustomImportExport/shell/run.php [-- [OPTIONS...]]&#xD;
25
  &#xD;
26
  OPTIONS&#xD;
27
+ &#xD;
28
  -s, --source csv file to import, if not passed uses the defined in config.xml&#xD;
29
+ &#xD;
30
  -r, --reindex reindex data by all indexers (attributes, prices, etc)&#xD;
31
+ &#xD;
32
  -c, --cleancache clean cache storage (html output, etc)&#xD;
33
+ &#xD;
34
  -f, --flushimages flush catalog images cache (pregenerated product images files)&#xD;
35
+ &#xD;
36
  -p, --applyrules recalculate catalog price rules&#xD;
37
  &#xD;
38
  EXAMPLES&#xD;
39
+ &#xD;
40
  php -f app/code/community/AMartinez/CustomImportExport/shell/run.php -- -source var/importexport/products.csv&#xD;
 
 
41
  &#xD;
42
+ php -f app/code/community/AMartinez/CustomImportExport/shell/run.php -- -reindex&#xD;
43
  &#xD;
44
+ php -f app/code/community/AMartinez/CustomImportExport/shell/run.php -- -s var/importexport/products.csv -r -c -f -p&#xD;
45
  &#xD;
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