-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image attribute type import issue #9171
Comments
Same issue. The image is imported as text. |
Ciao EnricoB3, |
I have the same error. |
I have experienced a very similar issue. I have had to make a workaround. I overwrote the import class at \Magento\CatalogImportExport\Model\Import\Product with my own class preference in a module. I added a new constructor that calls the function below. My new image attribute was 'some_new_image'. I hope this helps someone out there. function _initImageArrayKeys(){ My guess is that the protected variable _imagesArrayKeys should actually be pulling from image types data instead of hardcoded arrays. |
@jroca22 thank you for your report.
|
@jroca22, thank you for your report. |
Hi, @amaddatu . Would you mind going into further detail on how you implemented the override of the import class constructor? I've set up an override in an extension based on your comment above. However, during the compile process I receive the following error: Errors during compilation: |
@NormAtHuemor I made sure that the Magento_CatalogImportExport module was loaded before my module would override. Added my new init function in Product.php and created a new constructor override here. The constructor is nearly an exact copy of the one inside of the original class. The Imports at the top of the file were also copied from the original class. What I did add was the init function call as I stated previously that would overwrite the object's variable.
You can see my files below. |
Also, I have confirmed that the issue does exist in my Magento version 2.1.8, and that my workaround is for that version, however, it may work in others. Magento ver. 2.1.8 |
This issue was moved to magento-engcom/import-export-improvements#42 |
Hi guys, I made composer module based on a solution at magento-engcom/import-export-improvements#94 and it seems works for our store. Feel free to use it it would help your stores: https://github.com/sashas777/magento224-issue9171 |
Hello, this is still happening in CE 2.2.5 I have applied a patch based on the PR I have seen in this and other threads. https://gist.github.com/jruzafa/61183fe581a6c86b6a06682f905e42c9 |
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
Expected result
Actual result
Why is this attributed not treated the same way an image attribute created by the system?
The text was updated successfully, but these errors were encountered: