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.

 

I can´t hide a module in confirm page in virtuemart

I can´t hide a module in confirm page in virtuemart

I want hide some modules in confirm page in virtuemart but i can´t...the web is

http://www.marioelectrodomesticos.com/

This module has the options:
-Module pages assign: all pages
-PHP CODE:

$vm = JomGenius("virtuemart");
if ($vm->check( "pagetype != cart") && $vm->check( "pagetype != user") && $vm->check( "pagetype != orders") && $vm->check( "pagetype startswith none of shop.cart, shop.savedcart, checkout" ) ) && $option == 'com_virtuemart'){
return 253;
}
if ($option == 'com_k2'){
return 253;
}
if ($option == 'com_xmap'){
return 253;
}

But i see the module when i confirm the order...

i saw this topic of you http://www.metamodpro.com/forums/topic?id=550 but not works for me...i do:
$vm = JomGenius("virtuemart");
if ($vm->check( "pagetype != cart") && $vm->check( "pagetype != user") && $vm->check( "pagetype != orders") && $vm->check( "pagetype startswith none of shop.cart, shop.savedcart, checkout"&&  $option == 'com_virtuemart'){
return 253;
}
if ($option == 'com_k2'){
return 253;
}
if ($option == 'com_xmap'){
return 253;
}


How can i hide this module?.....

Thanks

mknofler
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: I can´t hide a module in confirm page in virtuemart

Hi,

I can't immediately see why the module is not hiding for you in this case. I just did some testing on Joomla 2.5 and the pagetype appears to be "cart" on the confirmation page. Perhaps it's not the same on your setup for some reason...

Could you please do the following:

1 - let me know your exact version of Joomla, MetaMod and VM

2 - put the following at the top of your MetaMod module:

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

3 - navigate to the confirmation page again, and see what appears in the MetaMod. Which pagetype does it think it's on? You can use this to modify your rule to include this pagetype.

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
3314 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1691
Total Polls:
6
Total Posts:
5912
Total Posts Today:
6
User Info:
 
Total Users:
11515
Newest User:
velis415
Members Online:
0
Guests Online:
147

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