-
-
Notifications
You must be signed in to change notification settings - Fork 2
quick n' dirty fix to get default store_view in default group #8
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
Conversation
|
@Nolwennig-Jeulin, first of all, thank you for your contribution and the finding! I've updated your PR and reworked your suggestion. Regards, |
|
@thomas-kl1 Thank you But in my case the website I check the updated code and the store_code returned is the first store we found : 25b700b#diff-ba18a31227c39c60c216c48a20fd0afbbd3d9a2eed2e17ec6309daee95273818R117 In my case this return by chance If the default store_view is But, if my default store_group is The notion of default store_group is absent of the conditionnals statements |
|
You are right @Nolwennig-Jeulin
|
|
@Nolwennig-Jeulin I've reworked the code to use a score instead of complex conditional structure, it should be better and handle your case |
|
@thomas-kl1 Nice !! Thank you But I'm wonder at line 124
The current store id (in the loop) is necessarily in a group of his website ? |
|
Yup that's stupid me :) It's because originally points were calculated like this: Only default store = 1 We just have to weight the default website as 2 points (the condition to check if group is part of default website is really stupid I agree bc always true) |
|
No problem. I wondered if I understood what I was seeing correctly, or if I had missed a feature I wasn't familiar with. Thank you very much for your quick work and responsiveness. Will this work be included in a release soon? |
related to : #7