-
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
Product images are being duplicated on import #21885
Comments
Hi @simonworkhouse. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @simonworkhouse do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
@magento-engcom-team give me 2.3-develop instance |
Hi @dipti2jcommerce. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @dipti2jcommerce, here is your Magento instance. |
✅ Confirmed by @engcom-backlog-nazar Issue Available: @engcom-backlog-nazar, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
I would like to share some point about the issue. It happens in Magento\CatalogImportExport\Model\Import\Product.php line 1772. If add a variable for exists images in mapper like _media_is_disabled, it should be fix it but the code try to match it with path. That why it doesn't work. |
Thank you for the information @tnsezer |
Actually, there's a better PR here, based on mine but it also deals with image deletion: #21855 |
@erfanimani thanks for the update. Are the issues duplicated or the PRs? |
I am working on this at #dmcdindia1 |
@soundararajanm1990 thank you for joining. Please accept team invitation here and self-assign the issue. |
Hi @soundararajanm1990. Thank you for working on this issue.
|
Have you fixed this issue? its also coming when trying to Duplicate product. Thanks |
what's the status on this issue? |
We can't solve this issue. Still now pending. |
Temporary solution to this issue:1. Edit this file: 2. Modify init() function:
to
Result: Keep in mind: This is my first comment on github. So please be kind with your feedback - thanks! For the Magento dev team:
|
✅ Confirmed by @engcom-Alfa Issue Available: @engcom-Alfa, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Hi @simonworkhouse. Thank you for your report.
The fix will be available with the upcoming 2.4.2 release. |
MDVA-31021 patch available in Quality Patches Tool |
@arunu MDVA-31021 patch does not fix this issue |
When importing product data the product images are being duplicated for each import run.
Preconditions
Steps to reproduce
<install dir>
<install dir>
test-1.jpg
,test-2.jpg
,test-3.jpg
andtest-4.jpg
inside the path<install dir>/var/import-images
. Any valid jpeg will do.Import settings
__EMPTY__VALUE__
(default)Expected result
Products end up with each product image only attached once.
Actual result
Products end up with all product images duplicated.
The text was updated successfully, but these errors were encountered: