Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

[solved] Hide slider module on Virtuemart's product details

[solved] Hide slider module on Virtuemart's product details

Hello, i have a slider on my frontpage, and my frontpage is a Virtuemart category. My problem is that this slider is being displayed not only at the frontpage but in the product details layout related to this category as well. I need it to be displayed only at the frontpage.

I've installed your module and followed the instructions on your site carefully, but the only result i'm getting is the slider being hidden not only in product details but at the frontpage too.

This is the code i'm using:

$vm = JomGenius("virtuemart");
if ( $vm->check( "pagetype = frontpage" ) ) return 123;

It's not working, i don't know why.

This is what shows up instead of the slider if i turn on debug:

MetaMod debug info:
Module ID: 137
$option: com_virtuemart
$view: category
$id:
$Itemid: 102
$timezone: UTC
$language: es-es
$language_code: es
$language_region: es
Including modules: Ninguno

Also, non-related with the above, i'd like to know if it is possible to hide child categories from the details page with your module, or if it works only with modules.

I'm using Joomla 2.5, Virtuemart 2.0.12f and the latest Metamod version.

Any help will be very much appreciated, thanks!

Edited By: metamodguy
18-Dec-13 01:48:26

oysterrgirl
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: [solved] Hide slider module on Virtuemart's product details

Hi,

can you please put the following into MetaMod, then view the front page of your site and see what it displays?

$vm = JomGenius("virtuemart");
echo "pagetype is " . $vm->info("pagetype") . "<br>";

It may come up with something different to "frontpage" - but whatever it comes up with is the pagetype you need to check for in the PHP code (instead of "frontpage"). If it doesn't come up with anything, please let me know and I'll look into it further.

Lastly, MetaMod only works with modules - it can't control internal VM things like the display of child categories.

Best regards,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3329 Posts
User info in posts
Administrator has disabled public posting

Re: [solved] Hide slider module on Virtuemart's product details

Turns out page type is category. I've changed the code to

"$vm = JomGenius("virtuemart");
if ( $vm->check( "pagetype = category" ) ) return 123;

and it works wonderfully now.

Thanks a lot, Stephen, i really needed this!!! : )

oysterrgirl
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: [solved] Hide slider module on Virtuemart's product details

Fantastic, so glad it's working for you.

Best regards
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3329 Posts
User info in posts
Administrator has disabled public posting

Re: [solved] Hide slider module on Virtuemart's product details

kekko
Beginner Modder
ranks
useravatar
Offline
6 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1684
Total Polls:
6
Total Posts:
5940
Posts this week:
1
User Info:
 
Total Users:
5174
Newest User:
frashaomran
Members Online:
0
Guests Online:
106

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