-
Notifications
You must be signed in to change notification settings - Fork 307
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 import exclude-flag not set consistently #471
Comments
I've tested some more and it seems pretty random what gets set. |
In addition: I tried importing the same data-set multiple times. The main product (configurable) stabilizes after 2 imports but will never set the exclude flags for small and thumbnail for the default config values. For the stores it flip flops a few times and then eventually the exclude flags is set correctly and. For the simple products (associated with the main product) I had to run the import 4-5 times before the exclude flags were constantly correctly set for the stores. The default config values never gets exclude flags set. @dweeves hope this can give you some idea about what is going on. If there no outlook to more stability please let me know. I'll see if I can come up with a new image processing plugin. |
5 hours later. It seems that magmi leaves duplicate rows in I noticed that the duplication is reduced with each run. The two said tables shrink until the reach what is likely the "real" count of rows needed to express the state. |
So two odd things.
(I don't know if this affects duplication) Regarding what happens on viewing a product in Magento I've debugged a little and here is a bunch of findings:
You can see that before doing anything magmi has created multiple rows to the same image. Some for store 1 and some for store 2 (remember store 1 and store 2 are not in same row). After viewing the product page in Magento, thus involuntarily cleaning up, the duplicates are removed. I cannot spot any pattern in how they are removed, - both store 1 and store 2 specific values are removed. But naturally since they are removed so are the 'exclude' values. |
I found what appears to be a bug or at least what is causing the duplication (and shrinking effect).
The code is:
It should be:
Going about it this way removes duplication and Magneto behaves nicely. Not deleting duplicate images without sorting out relations. I'll put this small change in a PR. There is still one problem left. That is figuring out why
So in the above the first row results in store 0 (admin) not store 1 (my store1). Whereas store2 with id 2 is created as it should. |
The 'exclude' flag is not set when running in
create
mode but only inupdate
mode.I tried:
create
create
mode—still no changeupdate
mode the exclude flag was set.With
create
:With
update
:(Note: that order isn't set correctly as well)
Both views above are for a store view not the default.
I tried running several times with
create
deleting the products between each run. Sometimes the exclude flag would be set.This is the input:
The text was updated successfully, but these errors were encountered: