-
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
Only 2 related products are showing in backend . #13720
Comments
Hello @dipind4u. Thanks for reporting. Probably we've missed something but currently we are not able to reproduce Your issue. Here is what we did in order to get it reproduced. |
I will explain the issue with example . |
Ok @dipind4u, We have recorded three videos where we were trying to reproduce Your issue. Sorry for its bad quality, but we hope You won't miss the essential things in it. As You will see we are still not able to reproduce Your issue. So please after You have watched the videos tell us what we do incorrectly not as You mean or what we've missed. Thank You. |
@dipind4u, we are closing this issue due to inactivity. If you'd like to update it, please reopen the issue. |
I have the same issue: only 2 related products are shown in admin. Below steps to reproduce:
After that only 2 products related to P1 will be shown in admin (in frontend everything is ok).
@magento-engcom-team Could you reopen this issue? |
I have the same issue. I have migrated the data from M1 to M2. @magento-engcom-team please reopen this issue. |
@magento-engcom-team: I've reopened the issue, since there is an update and some good information pointing towards the cause of this bug (I've seen this thing happen myself, but hadn't had the change yet to look into the problem, so thanks to @KrzysztofMoskalik & @gulshan-streammarket for the extra info!) |
I fixed this by doing this in the function @KrzysztofMoskalik said:
|
What is the current status of this issue? Will it ever be merged into core? |
I believe #15251 should be re-opened and re-evaluated because it was closed for an incorrect reason. |
…in the backend grids and in the correct order. Fixes magento#13720
@dipind4u, thank you for your report. |
I think the problem here is that the import behavior will only add related skus, never remove them. Let's start with 2 related skus already in the database:
If I upload this:
I expect that the new skus would overwrite the old skus in their positions, like:
Instead it will only add skus to the list and trigger this bug, like:
Likewise, if I upload:
I'd expect the empty field to cause Magento to remove the related skus at positions 1 and 2. Instead, this simply does nothing. |
…ells) show up in the backend grids and in the correct order. Fixes magento#13720 (cherry picked from commit a3f1c38)
After i have added this fix in my Magento2.2.6 version all the related products are showing, but i cannot properly sort the related products from backend. Unable to move the position of related products. |
@ameshca: indeed, you are correct, if some positions of those linked products in the database are non-unique you might have problems dragging the products in the grid correctly. But what can help is just randomly dragging multiple products in all kind of positions in the grid, until the grid has generated enough unique sorting positions that it starts working properly again. Which is a bit tedious to do, but it seems to work when I'm quickly trying this. Or you can try to update the positions directly in your database so they are unique per linked product (but make sure you test this first on a local/staging environment and don't do this directly on production without proper testing). |
Yes, your are correct. I have updated the positions directly from database and now its working fine. Thanks @hostep |
@robbertstevens Is this solution is safe to implement? Will it effect other data in admin? |
@ChintanKaneriya havent noticed any side effects |
Preconditions
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: