dweeves / magmi-git

Magmi GitHub
364 stars 307 forks source link

Is that possible just update image_label or thumnail_label value ? #125

Open tmp2000 opened 9 years ago

tmp2000 commented 9 years ago

Hi, I want to import multi languages store views' products name and image label's value.With magmi,I can quickly rename the product name .But the image_label value did not replaced.(I tried to checked the image producessor,not work too) I googled about magmi for this while no info about that.Is that possible to just update image_label or thumnail_label value? Thanks.

dweeves commented 9 years ago

with current code, image_label , or thumbnail_label processing is linked to the presence of image & thumbnail column. but it's a good suggestion to separate processing of labels from processing of images.

tmp2000 commented 9 years ago

Thanks for quick response.I just see the code.Current update label logic might exist problem for this.I can not get it immediatly.So I will wait for this .Thanks again for this great extension.

dweeves commented 9 years ago

After a last look at the code, this "update label only" should work as stated in lines 577-584.

2014-10-03 16:25 GMT+02:00 tmp2000 notifications@github.com:

Thanks for quick response.I just see the code.For this function,it would consider the new product problem.Current update laabel logic might exist problem for this.I can not get it immediatly.So I will wait for this .Thanks again for this great extension.

— Reply to this email directly or view it on GitHub https://github.com/dweeves/magmi-git/issues/125#issuecomment-57803003.

odeland commented 5 years ago

Just wanted to say that, in order for this to work, I had to modify line 596 of the file imageitattributeemprocessor.php to include 'image_label' cols, otherwise the image processor plug-in would disable itself.

This: $imgattrs = array_intersect(array_merge($this->_img_baseattrs, array('media_gallery', 'image_remove')), $cols);

Becomes this:

$imgattrs = array_intersect(array_merge($this->_img_baseattrs, array('media_gallery', 'image_remove','image_label','small_image_label','thumbnail_label')), $cols);