Magmi won't update images - magento

I'm using the datapump API - it works fine with my products, but now with updating images it won't work.
This is my array that Magmi doesn't like
array(5) {
["type"]=>
string(6) "simple"
["sku"]=>
string(6) "131017"
["image"]=>
string(76) "/ext/vhosts/site/subdomains/m/public/importer/../import/NO/A_131017.jpg"
["small_image"]=>
string(76) "/ext/vhosts/site/subdomains/m/public/importer/../import/NO/A_131017.jpg"
["thumbnail"]=>
string(76) "/ext/vhosts/site/subdomains/m/public/importer/../import/NO/A_131017.jpg"
}
When I imported my products, this worked fine, but there were descriptions etc. on
I have the following magmi settings:
using mode - Update existing items only,skip new ones
Image import mode - override existing images
Pre-download check for remote images - enabled
Assign only existing images - no

It seems like its a prerequisite of Magento import (and hence Magmi) that the images should be placed inside the media/import folder. So, regardless of where you run Magmi GUI from, the images should be placed inside the media/import folder. Moreover, if your images lie inside a folder inside media/import, you have to specify that in the import csv as well.
For example your images lie inside manufacturer-A folder, then you would have to also define on the image columns, the relevant folder path i.e. manufacturer-A/imagefilename.jpg
Plus, please be aware that it is a bad idea to have images named as 1.jpg, 2.jpg. Magento tries to create the subfolders for cacheing purposes using the first two letters in the filename. So a 1.jpg would ideally be placed inside 1/./1.jpg which is not possible because of the dot.
Note that when you define path for the images, it is not needed to define a full path just the relative path from the import folder (media/import) so in the example above, it is
manufacturer-A/image-1.jpg
and not
/ext/vhosts/site/subdomains/m/sitename/magento/media/import/manufacturer-A/image-1.jpg
Hope this helps. :-)

Related

prevent magento from importing images that already exist in var/import/images folder

I am using admin csv import feature
In my csv file I have base, small and thumbnail image columns
When I do an import, all image come in fine and can be seen as expected
However, when I do a subsequent import, if the image columns are in that csv doc then I am seeing multiple images in the PDP page
Is there a way to prevent this other than not having the columns in the import file, obviously
No, this is not possible. For that you need to do custom code.

magmi do not import first media_gallery image

I'm using magmi 0.7.22 in a magento 1.9.3.1
I need to import several images, and replace all the current images by the new ones.
I'm trying first with on single product and I see that it is working fine, except that the first media_gallery image is not imported.
The test csv is the following:
"sku","image","small_image","thumbnail","media_gallery"
"S1712400-10","+/S1712400-5-10.jpg","+/S1712400-5-10.jpg","+/S1712400-5-10.jpg","/S1712400-2-10.jpg;/S1712400-3-10.jpg;/S1712400-4-10.jpg"
The import finishes without any error, but the image S1712400-5-10.jpg is not showing anywhere, though the other 2 following images are in it's place.
I checked that the image name is correct, and that it is in the same place as the other ones, but still the same result.
I cleared all the magento's caches, including the "catalog images cache" but see no change.
The same happens to all the products, the first image of the media_gallery is completely ignored.
I finally found the answer in this question: https://magento.stackexchange.com/questions/71962/import-multiple-images-with-magmi
It seems there is some problem with Image attributes processor v1.0.33a image renaming.
To solve this go to itemprocessors and in the Image attributes processor v1.0.33a select configuration. Then empty the Image renaming and save.
This solved my problem.

Is it possible to manually import product images to Nopcommerce

currently the import function is not working for product images, so is it possible to FTP the images onto the site. I noticed that stock images are stored in the /wwwroot/Content/Images/Thumbs/. So if I was to add product images would they go there?
you have 2 options,
1) storing on the local drive or CDN: in this case NC should convert your images in its format and name convention. Therefore when you import 1 image (do a test on the admin panel) you can see how it is stored under Images folder.
you can see the Libraries\Nop.Services\ExportImport\ImportManager.cs, funciton is called ImportProductsFromXlsx. this function is normally reading from xlsx file and looping through each defined line. you can create your own funciton by using this which can read from your DB (get path information all you need) and let to convert each images.
2) Store as binary into picture table: this is same procedure as described above. all you have to do is the define in the settings that you want to store as binary.
The actual issue was there some sort of problem importing the images with the product details. So instead I created a path for the product images, in the products details and then manually placed all the images into the wwwroot/Content/images/Thumbs/ folder. It seemed to have worked!

Magento - update product image paths on multiple products through a csv file

I am trying to add products by duplicating them in a CSV file. It seems to work fine but when I update the product image path with the same path to multiple products it doesn't seem to update. When I export again and look at the data it has reverted to it original state. What is the problem here...?
Please review the following: http://www.magentocommerce.com/knowledge-base/entry/importing-product-images
Typical Problems:
Path
Name of File (Name does not match file name. ie: Name.jpg vs /name.jpg)
Image file does not exist on server for processing. (file is not at store/media/upload/file.jpg)
Permissions (store/media/* store/media/upload not accessible)
Reminder: When dealing with Image Modification/Upload etc, please flush (disable during trouble shooting) the cache, then re-enable after.
Uploading via Dataflow:
Assuming you have the correct basic required fields, there are two main behaviors.
If the SKU is unique, the product ID will be created in the system.
If the SKU exists, information will be replaced/updated or Appended in the system.
When you copy and paste, you will want to make sure each SKU is unique, and that there will be a correlating image that will 'live' on the server during the upload dataflow process.
In the case of Images, the Path is going to be looking for yourstoreroot/media/import/ for the images you reference in your image / small / thumbnail, if the image doesn't exist with the path described, or doesn't match exactly the name, then the data will not be added/appended in the cart as it is invalid to the import files and would not show on new exports.
To solve this problem I learned how to create an attribute, an attribute set, then a configurable product. With the configurable product I can apply the image once. Each product listing with a different size or color is listed as an associated product with all duplicate content but is not visible individually.
Here is a tutorial that got me started:
http://www.magentocommerce.com/knowledge-base/entry/tutorial-creating-a-configurable-product
Found this question via Google looking for something similar and thought I'd chime in.
The most common problem I've encountered (and its poorly documented) is that when importing using the built-in import tool, the "image" path must be relative to /media/import/. Note that by default there is no 'import' folder in /media, you'll need to make it.
That means that in your CSV under the "images" column, you should have '/somepicture.jpg', this corresponds to /media/import/somepicture.jpg during the actual import. If this is incorrect, while the import is going on you'll see a bunch of "image not found" errors scroll by, and the existing image data will not be updated.
Unfortunately it does not look like there is a way to simply update the stored image path (such as pointing a bunch of products to the same image) using the built-in importer, as it expects to be importing new images, and will dupe them up just like editing images manually does.

Magmi is cannot find multiple images

I've Googled, and Stackoverflowed this to death (and checked the Wiki), but I can't find a solution to my problem :(
Problem:
With Magento Magmi: all products and single images are importing fine, the only catch is that Magmi throws the following error when I try to import multiple images (e.g. /BJ977L.png,/BJ977R.png):
Image attributes processor v1.0.25 - /BJ977L.png,/BJ977R.png cannot be found in images path
Obviously I checked and the files are there... Also, if I change it to only reference one image, then it works. I find this very confusing.
The images are located in: media/import and the Magmi Image Plugin configuration reflects this. Also, if I move the images to another folder, say var/import/images; then it makes no difference...
Your help is hugely appreciated!
Thanks in advance!
As the Images Attribute Processor documentation states, you should be using a semi-colon ; to separate multiple images.
/extraimg1.jpg;/extraimg2.jpg
Also ensure that the column names you are using are correct. media_gallery is the correct column header name for the media gallery images.
Have you tried using semi colon?
/BJ977L.png;/BJ977R.png
Have you tried using the complete file path to the images? Also, did you specify the file path root for the images in the plugin settings?
If you have formatted the .csv file the right way then you should check the Image Renaming setting for the Image attributes processor. If you specify a bad rule to rename your newly imported images you could end up with the same name for every picture. So basically the first image will be imported, then the second will overwrite it because it was given the same name. If you only see the last picture you specified for the media_gallery attribute then this is probably the cause.
Hope this helps.

Resources