magmi-git
magmi-git copied to clipboard
Is that possible just update image_label or thumnail_label value ?
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.
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.
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.
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 [email protected]:
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.
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);