-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Duplicate product #15656
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
Comments
I believe that's expected behavior. You have a possibility to choose the exact product's variant to duplicate. If you need default values - choose the global scope, otherwise choose the variant that should be duplicated. |
@Fredwak, thank you for your report. |
Hi @shikhamis11. Thank you for working on this issue.
|
#MM19IN |
Hi @JeroenVanLeusden. Thank you for working on this issue.
|
Hi @deadlexus. Thank you for working on this issue.
|
@magento give me 2.3-develop instance |
Hi @deadlexus. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @deadlexus, here is your Magento instance. |
- Fixed an issue with incorrect duplicating of product attributes when they have different values on store view level;
- Fixed static and unit tests;
- Static test fix;
I'm seeing something very similar (perhaps the same issue) when duplicating from the default storeview (currently on magento version 2.3.3-p1) We solved it by applying the attached patch: |
Same issue as rvm-pmis. Magento version 2.3.3, duplicating from default store view with 2 language store views (dutch and french). It only happens when i change the URL key for a store view. Then, when i save and duplicate, the store view information (description etc) is not copied. The default store information is copied. Also the images get duplicated multiple times. This does not happen when "use default value" is checked for the URL key for each store view. Only then save and duplicate works as expected. |
@sdzhepa any progress on this? |
Some extra findings on my end. It might be related, might not. I have one website with 3 storeviews. If I duplicate a product from the Default (i.e. "All") storeviews, all attributes that have Scope = Website configured, those values are copied from the Default storeview into all storeviews, even though in the original product the value is only set in the default storeview! Example in case; This is the value for that attribute for my original product in
But when I duplicate that product, the rows for the new product are as follows: (duplicated product ID in this test is 46406)
When I update the attribute to Scope 'Global' this does not happen! (duplicated product ID in this test is 46407)
But it gets weirder; if I update the attribute to Scope 'Store view', it gets copied to all storeviews except to store id 1, which is my default storeview. (duplicated product ID in this test is 46408)
🤯 The following attributes are Scope=Website by default;
Edit; when I Xdebug and Duplicate the product, I see duplicate lines show up when this I see there have been 3 commits to this file in |
Ha! It appears this commit from this PR by @JeroenVanLeusden not only fixes the original problem in this issue, but also my specific issue! 🎉 |
Here's my patch based on the abovementioned PR for Magento 2.3.4;
|
Need Urgent Help, magento setup version is 2.3.4[upgraded m1], we have "29542 records found" products, i am facing duplicate product issue, try to fix using available patch but its not fix. Today i remove all products images in test environment, there no image for a single product, now i add product image for a single product, i save it, working cool, but when i try to do duplicate this product, its again went into infinite loop, within few mints it create huge[4.3GB] garbage of that image that recently add. now i am helpless. |
Does anyone have a solution for 2,4,1? Still facing this problem, but logic seems to have changed a lot and patches won't work anymore. |
Hello; We also discover the same issue in magento2.4.1 as @rvm-pmis facing. Please let us know if you have any news on it. Thanks |
Hi, |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Is this issue still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? Thank you for your contributions! |
Preconditions
Steps to reproduce
Expected result
Actual result
Example (Productname):
Original product:
StoreView Default: "My default name"
StoreView UK: "My UK name"
StoreView NL: "My NL name"
...
Duplicated product: (before clicking on duplicate, I switch to the storeView "UK")
StoreView Default: "My UK name"
StoreView UK: "My UK name"
StoreView NL: "My NL name"
...
The text was updated successfully, but these errors were encountered: