-
Notifications
You must be signed in to change notification settings - Fork 29
Image attribute type import issue #42
Comments
From @EnricoB3 on April 13, 2017 14:11 Same issue. The image is imported as text. |
From @jroca22 on May 8, 2017 20:32 Ciao EnricoB3, |
From @mukdam on May 9, 2017 9:27 I have the same error. |
From @amaddatu on August 2, 2017 16:13 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. |
From @okorshenko on September 7, 2017 20:22 @jroca22 thank you for your report.
|
From @magento-engcom-team on October 12, 2017 8:30 @jroca22, thank you for your report. |
From @NormAtHuemor on October 16, 2017 13:41 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: |
From @amaddatu on October 22, 2017 9:27 @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. |
From @amaddatu on October 22, 2017 9:46 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 |
Hello @piotrekkaminski, |
…tually use the database to load the image information
… remove the _ in the name
Accepted Public Pull Requests: - magento/magento2#13339: In checkout->multishipping-> new addres clean region when select country without dropdown for states (by @enriquei4) - #94: #42 - Dynamically fill the image keys (by @VincentMarmiesse) Fixed GitHub Issues: - magento/magento2#8621: M2.1 Multishipping Checkout step New Address - Old State is saved when country is changed (reported by @ajaysinghrana23) has been fixed in magento/magento2#13339 by @enriquei4 in 2.3-develop branch Related commits:
This has been fixed in |
Hi guys, I made composer module based on a solution at #94 and it seems works for our store. Feel free to use it it would help your stores: https://github.com/sashas777/magento224-issue9171 |
MAGETWO-66666: Adding a product to cart from category page with an ex…
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
Expected result
Actual result
Why is this attributed not treated the same way an image attribute created by the system?
Copied from original issue: magento/magento2#9171
The text was updated successfully, but these errors were encountered: