Magento Forum

   
AMartinez_CustomImportExport 1.5 extension: import/export/and more…! 
 
Magento Knight
Member
 
Total Posts:  40
Joined:  2010-03-04
 

With your module installed, I try importing a csv1 module installed [from the web interface, System -> Import, select file, test.csv1], and it tells me CSV1 files arent supported.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Magento Knight
Member
 
Total Posts:  40
Joined:  2010-03-04
 

ok,nm, I see that this may only be run from the command line via shell.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Magento Knight
Member
 
Total Posts:  40
Joined:  2010-03-04
 

and importing csv1 files still isnt working. the parent-child relationships arent being kept. base image import doesnt work either.

i specified the children and separated them with commas, and the image i placed in /media/import, and specified it with the correct cased file name /image.jpg

anyone having better luck with this thing

 
Magento Community Magento Community
Magento Community
Magento Community
 
Magento Knight
Member
 
Total Posts:  40
Joined:  2010-03-04
 

got the images working. http://www.magentocommerce.com/boards/viewthread/227019/ the directory you must put them in is /import/catallog/product

 
Magento Community Magento Community
Magento Community
Magento Community
 
amartinez
Guru
 
Avatar
Total Posts:  347
Joined:  2008-11-14
Spain
 

Magento core don’t export multiple images (galleries)

You can analyze my code examples to easily make you own patch, reading the media-gallery database info.

But as comment before, I prefer to edit app/design/frontend/default/default/template/catalog/product/view/media.phtml to make my own multi-imagen-with-rollover method, some like:

WHILE SKU_n.JPG EXISTS
ECHO IMAGE_n.jpg
FURTHER COMMANDS…
n++
END

Luck!

 
Magento Community Magento Community
Magento Community
Magento Community
 
giallu26
Jr. Member
 
Total Posts:  10
Joined:  2011-05-06
 

hi amartinez!
I need to make a few changes to your plugin, I use a source control manager to track my changes and I need the down-loadable package of your plugin (the version in the first post is outdated). With magento connect I can only have the installation link

thanks! smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
Magento Knight
Member
 
Total Posts:  40
Joined:  2010-03-04
 

So how do I import multiple images for a product using your module? I only tried to export them to figure out the format.

 
Magento Community Magento Community
Magento Community
Magento Community
 
amartinez
Guru
 
Avatar
Total Posts:  347
Joined:  2008-11-14
Spain
 

@giallu26:

tgz updated

in any case, you can do:

./mage mage-setup
./mage install community (magento connect key)

I think Varien track these clicks, so please click on magento connect :D

@Magento Knight:

the key is to put manually/automatically your images under media/catalog/product/ folder, then adapt the commented template file

 
Magento Community Magento Community
Magento Community
Magento Community
 
Magento Knight
Member
 
Total Posts:  40
Joined:  2010-03-04
 

Ok, I understand you have your own method to display import multiple images

However, it doesn’t make any sense that this script cannot import multiple images. It must be a bug in Magento Core import? If you can specify multiple images in GUI when creating a product, why can’t you do the same when importing a product by CSV?  The GUI must be storing the data somehow, and I’ve used an older script in the past which relied on the old dataslow to import the gallery. Why can’t the new 1.5 import understand the gallery column and import it?

 
Magento Community Magento Community
Magento Community
Magento Community
 
amartinez
Guru
 
Avatar
Total Posts:  347
Joined:  2008-11-14
Spain
 

there’s no bug: it’s a functionality not yet development

media&gallery;aren’t “normal” attributes, I don’t like 100% media-gallery magento concept, historically they duplicate a lot of cache image files, because that I use my own product “images, rollover, 3D & video” method

but don’t worry, I will analyze your suggestion wherever my agenda allows it

thanks,

 
Magento Community Magento Community
Magento Community
Magento Community
 
VernBurton
Jr. Member
 
Total Posts:  23
Joined:  2011-02-22
Rochester, MN
 

I am unable to get this extension working on any of my servers.  I am getting the below on 2 separate servers.  This is installed using

./mage install community AMartinez_CustomImportExport
.  Anything that you can do to help?

PHP Fatal error:  Uncaught exception 'Exception' with message 'Warning: include(Mage/Customimportexport/Model/Import.php): failed to open stream: No such file or directory  in /var/www/vhosts/bigestock.com/www/lib/Varien/Autoload.php on line 93' in /var/www/vhosts/bigestock.com/www/app/code/core/Mage/Core/functions.php:245
Stack trace
:
#0 /var/www/vhosts/bigestock.com/www/lib/Varien/Autoload.php(93): mageCoreErrorHandler(2, 'include(Mage/Cu...', '/var/www/vhosts...', 93, Array)
#1 /var/www/vhosts/bigestock.com/www/lib/Varien/Autoload.php(93): Varien_Autoload::autoload()
#2 [internal function]: Varien_Autoload->autoload('Mage_Customimpo...')
#3 [internal function]: spl_autoload_call('Mage_Customimpo...')
#4 /var/www/vhosts/bigestock.com/www/app/code/core/Mage/Core/Model/Config.php(1252): class_exists('Mage_Customimpo...')
#5 /var/www/vhosts/bigestock.com/www/app/Mage.php(432): Mage_Core_Model_Config->getModelInstance('customimportexp...', Array)
#6 /var/www/vhosts/bigestock.com/www/app/code/community/AMartinez/CustomImportExpor in /var/www/vhosts/bigestock.com/www/app/code/core/Mage/Core/functions.php on line 245

Fatal errorUncaught exception 'Exception' with message 'Warning: include(Mage/Customimportexport/Model/Import.php): failed to open stream: No such file or directory  in /var/www/vhosts/bigestock.com/www/lib/Varien/Autoload.php on line 93' in /var/www/vhosts/bigestock.com/www/app/code/core/Mage/Core/functions.php:245
Stack trace
:
#0 /var/www/vhosts/bigestock.com/www/lib/Varien/Autoload.php(93): mageCoreErrorHandler(2, 'include(Mage/Cu...', '/var/www/vhosts...', 93, Array)
#1 /var/www/vhosts/bigestock.com/www/lib/Varien/Autoload.php(93): Varien_Autoload::autoload()
#2 [internal function]: Varien_Autoload->autoload('Mage_Customimpo...')
#3 [internal function]: spl_autoload_call('Mage_Customimpo...')
#4 /var/www/vhosts/bigestock.com/www/app/code/core/Mage/Core/Model/Config.php(1252): class_exists('Mage_Customimpo...')
#5 /var/www/vhosts/bigestock.com/www/app/Mage.php(432): Mage_Core_Model_Config->getModelInstance('customimportexp...', Array)
#6 /var/www/vhosts/bigestock.com/www/app/code/community/AMartinez/CustomImportExpor in /var/www/vhosts/bigestock.com/www/app/code/core/Mage/Core/functions.php on line 245

 
Magento Community Magento Community
Magento Community
Magento Community
 
amartinez
Guru
 
Avatar
Total Posts:  347
Joined:  2008-11-14
Spain
 

I think your vhost have some special configuration

Can you give me access?

php -f shell/indexer.php
runs fine?

 
Magento Community Magento Community
Magento Community
Magento Community
 
VernBurton
Jr. Member
 
Total Posts:  23
Joined:  2011-02-22
Rochester, MN
 

I don’t have an indexer.php in the shell directory

[root@erebus shell]# ls -al
total 36
drwxr
-xr-x 2 www-data development  4096 May 11 02:08 .
drwxr-xr-x 6 www-data development  4096 May 11 02:08 ..
-
rw-rw-rw1 www-data development 13987 May 11 02:08 run.php

I’ll have to open some firewalls.  Can you send your IP via PM?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Magento Knight
Member
 
Total Posts:  40
Joined:  2010-03-04
 

Does the CSV1 support work? When I create a CSV1 file per the documentation, it does not set the parent-child relationships correctly.

 
Magento Community Magento Community
Magento Community
Magento Community
 
amartinez
Guru
 
Avatar
Total Posts:  347
Joined:  2008-11-14
Spain
 
vburton - 11 May 2011 07:37 AM

I don’t have an indexer.php in the shell directory

[root@erebus shell]# ls -al
total 36
drwxr
-xr-x 2 www-data development  4096 May 11 02:08 .
drwxr-xr-x 6 www-data development  4096 May 11 02:08 ..
-
rw-rw-rw1 www-data development 13987 May 11 02:08 run.php

I’ll have to open some firewalls.  Can you send your IP via PM?

you must have:

ls shell/
abstract.php compiler.php indexer.php log.php

what magento version are you running?

in any case, I don’t like these magento installation smile

you can PM if you want

regards!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top