Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » [solved] Virtuemart and mobile view...
[solved] Virtuemart and mobile view combined
[solved] Virtuemart and mobile view combined
Hello,
I load a module on my front page with this line:
$vm = JomGenius("virtuemart"); // need this at the start of every rule
if ( $vm->check( "pagetype = frontpage" ) ) return XXX;
This module also has setting to "hide mobile view" on the module CSS file however the metamod is loading it also on mobile.
Is there a way to load the module except on mobile?
Thank you.
06-Nov-13 19:32:14
Re: [solved] Virtuemart and mobile view combined
Sure, try this:
$vm = JomGenius("virtuemart"); // need this at the start of every rule
if ( $vm->check( "pagetype = frontpage" ) and $core_genius->check("categorizr != mobile") ) return XXX;
Re: [solved] Virtuemart and mobile view combined
1 - do you have the system cache plugin enabled? If so, you'll need to disable it as it can't distinguish between mobile and desktop access, and will cache 1 version of both of them.
2 - make sure you test it with 2 different browsers, and clear cookies before testing. Categorizr caches the browser type in the session, so if you just change the user agent in your browser then it will cache the original user agent. Try to use an actual mobile device for your testing, just to be on the safe side.
If it's neither of those things please get back to me.
Cheers,
Stephen
- Index
- » MetaMod
- » MetaMod General Support
- » [solved] Virtuemart and mobile view...
Board Info
- Board Stats:
- Total Topics:
- 1700
- Total Polls:
- 6
- Total Posts:
- 5967
- Posts this week:
- 3
- User Info:
- Total Users:
- 8056
- Newest User:
- no21an
- Members Online:
- 0
- Guests Online:
- 191
- Online:
- There are no members online
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked