This repository was archived by the owner on Apr 29, 2019. It is now read-only.
This repository was archived by the owner on Apr 29, 2019. It is now read-only.
Image attribute type import issue #42
Closed
Description
From @jroca22 on April 7, 2017 19:58
I've created a custom image attribute and added to my attribute set as image. The thing is that when you try to import the attribute the same way you import images vis csv it only writes the value as text.
Preconditions
Magento 2.2.0
Steps to reproduce
- Create a custom image attribute and add it to your attribute set (new_image)
- Go to any product of that attribute set and assign the attribute to any image
- Export that product it and see the value of the new_image attribute on additional attributes
- Now let's say you want import a new image and assign to that image the new_image attribute. Let's say the image name is image01.jpg and it has been uploaded to pub/media/import
- On the csv change the value of new_image=image01.jpg and add image01.jpg to additional images.
- Import the csv and set the path to /pub/media/import
Expected result
- Now if you export the same product the value should be new_image=/i/m/image01.jpg. You expect Magento to copy the image to the product media folder.
Actual result
- Actually the attribute value is new_image=image01.jpg if you export the product again
Why is this attributed not treated the same way an image attribute created by the system?
Copied from original issue: magento/magento2#9171
Metadata
Metadata
Assignees
Labels
No labels