Hello,
I was wondering if there is a way to make modifications to opencart mobile version only
so the modification do not affect the desktop version
is it possible ?
Yes.
Basically, it depends on what you want to modify.
If its only the layout, use CSS.
If functions are affected, you have to use a 3PD library to check if mobile or not.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Well,
Thank you for this answer
I have a library to check if mobile or not
but how to enable or disable modification if mobile
i am thinking about editing startup.php
but i can't figure out the function
We're talking here only theoretically.
If you have a modification, where is the problem?
Simply call with the modfication your module/extension/library and check there if mobile or not.
Of course, you can do it complicated (as many are doing this) and create the modification with hundreds of lines, many functions and so on.
Or just 1 simple line which call the new file - and everything inside this file (which of course can call several others).
If you have a modification, where is the problem?
Simply call with the modfication your module/extension/library and check there if mobile or not.
Of course, you can do it complicated (as many are doing this) and create the modification with hundreds of lines, many functions and so on.
Or just 1 simple line which call the new file - and everything inside this file (which of course can call several others).
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Mission accomplishedOSWorX wrote: ↑Thu May 02, 2019 3:36 amWe're talking here only theoretically.
If you have a modification, where is the problem?
Simply call with the modfication your module/extension/library and check there if mobile or not.
Of course, you can do it complicated (as many are doing this) and create the modification with hundreds of lines, many functions and so on.
Or just 1 simple line which call the new file - and everything inside this file (which of course can call several others).
thank you <3
Who is online
Users browsing this forum: No registered users and 97 guests