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
Remove deprecated enable_mobile|disable_mobile #27527
Conversation
Hi, thanks for this contribution! I found some issues with the Pull Request description:
Would you mind having a look at it? This will help us understand how interesting your contribution is, thank you very much! About linked issuesPlease consider opening an issue before submitting a Pull Request:
(Note: this is an automated message, but answering it will reach a real human) |
@NeOMakinG Cannot we just completely remove this? Its 2010 stuff.
|
I agree, responsive should be enough, this is not the backend responsibility |
But this prevents the module from running on mobile devices, which means that if you have a heavy module connecting to the external service, and you want to use it on desktop, and not on mobile - you can. It's completely different than hiding/showing something on mobile. |
No module should be that heavy that it should not be loaded on mobile. Usually over 60% of all customers access the web from mobile devices, they need to have the same experience as on desktop. ;-) |
Let's leave that decision on what customers should, or shouldn't have to the developers 👍 I can imagine some scenarios, especially related to the B2B stores where this feature can be helpful :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @PrestaEdit I really think that this PR will create a lot of wrong behaviors on different modules, be prepared to get some issues about it! |
Doesn't see why, as you are still able to enable/disable mobile devices for somes modules. It's just the old methods (not used by module itself) that are removed, not the feature. |
Oh ok, thanks for the precision! |
I think we also need to document BC break inside https://devdocs.prestashop.com/8/modules/core-updates/8.0/ so I keep the label "Needs documentation" |
📓 BC break
enable_mobile()
in src/Core/Addon/Module/ModuleManager.phpdisable_mobile()
in src/Core/Addon/Module/ModuleManager.phpThis change is