Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
how to overwrite images on import
 
Bonaventure
Jr. Member
 
Avatar
Total Posts:  27
Joined:  2007-09-26
 

I’ve imported 100,000 products with images (all “simple” products with one image each).
I send updated and new images to my media/import folder and my products get updated without a hitch.

Unfortunately, the dataflow import does not overwrite the image files. In other words, image “00123.jpg” (matching sku 00123) from my first batch import becomes “00123_1.jpg” when I update the database. Then “00123_2.jpg” for the next import, and so on and so on. As one might imagine, 100,000 images multiplied by every update to the system will be too much for the server.

I submitted a support ticket to Varien--they said that the dataflow connector works as I have described---in other words, I need to modify it to overwrite the images. If only I knew where to find the import files to make the change. I suspected that they would be in app/code/core/mage/model/import....but I can’t see anything that controls the image import.

Any thoughts?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Very Clever Stuff
Sr. Member
 
Avatar
Total Posts:  76
Joined:  2008-05-06
Sheffield, UK
 

Can you not delete the old files first?

 Signature 

Dave Speake
Very Clever Stuff

 
Magento Community Magento Community
Magento Community
Magento Community
 
sherrie
Enthusiast
 
Avatar
Total Posts:  861
Joined:  2007-12-14
Illinois, USA
 

The old images or the old products?  Deleting the old products would take forever and screw up any linking, etc, between them.  Deleting the old images would be much more manageable - though it’s still ridiculous that you would need to do that.

 Signature 

Creativity is falling in love with the world. – Dewitt Jones
Current Projects: TECH USA & IHSA State Finals • Currently Running: PHP 5.2.5/MySQL 5.0.45/Magento 1.1.6 on HostGator

 
Magento Community Magento Community
Magento Community
Magento Community
 
Very Clever Stuff
Sr. Member
 
Avatar
Total Posts:  76
Joined:  2008-05-06
Sheffield, UK
 

Yeah, I meant the old images. Does seem strange though, I noticed this myself.

Along these lines (sort of) it also seems strange that you can’t re-use images for different products. i.e. I have products that are different colours outside, but the same inside. I have a common image for the inside, but Magento doesn’t allow me to ‘choose’ from existing images, only upload a new one.

Ends up will silly amounts of duplicate data.

Also, does anyone know if you can delete the files in media/import after importing? I assume you can, but it doesn’t happen automatically?

 Signature 

Dave Speake
Very Clever Stuff

 
Magento Community Magento Community
Magento Community
Magento Community
 
Very Clever Stuff
Sr. Member
 
Avatar
Total Posts:  76
Joined:  2008-05-06
Sheffield, UK
 

By the way, “Improved import/export methods” is on the Road Map

 Signature 

Dave Speake
Very Clever Stuff

 
Magento Community Magento Community
Magento Community
Magento Community
 
sherrie
Enthusiast
 
Avatar
Total Posts:  861
Joined:  2007-12-14
Illinois, USA
 

I’ve actually noticed that importing seems to work better in the 1.1 alpha I’ve been playing with.  I haven’t noticed the above issue, so I’m not sure if it still exists or not.

 Signature 

Creativity is falling in love with the world. – Dewitt Jones
Current Projects: TECH USA & IHSA State Finals • Currently Running: PHP 5.2.5/MySQL 5.0.45/Magento 1.1.6 on HostGator

 
Magento Community Magento Community
Magento Community
Magento Community
 
joesixpack
Member
 
Total Posts:  35
Joined:  2008-06-23
 

How did you manage to import 100,000 products?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Thejosh13
Sr. Member
 
Total Posts:  166
Joined:  2008-06-23
 

Have you noticed if you try to change an old product image with a new product image, it does not completely remove the old? It will still use it as the base? Thoughts? (Its not cache)

 
Magento Community Magento Community
Magento Community
Magento Community
 
Thejosh13
Sr. Member
 
Total Posts:  166
Joined:  2008-06-23
 

http://www.magentocommerce.com/boards/viewthread/15130/

 
Magento Community Magento Community
Magento Community
Magento Community
 
Benjamin Bellamy
Jr. Member
 
Avatar
Total Posts:  12
Joined:  2008-06-26
 

Have you looked there ?
http://www.magentocommerce.com/boards/viewthread/18248/

 Signature 

Benjamin Bellamy
153, rue de Courcelles - 75017 PARIS
INTERAKTING
L’AGENCE INTERACTIVE
DU GROUPE BUSINESS & DECISION

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
50110 users|481 users currently online|102250 forum posts