Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » I can´t hide a module in confirm page...
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
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
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » I can´t hide a module in confirm page...
Board Info
- Board Stats:
- Total Topics:
- 1699
- Total Polls:
- 6
- Total Posts:
- 5967
- Total Posts Today:
- 2
- User Info:
- Total Users:
- 8028
- Newest User:
- musial8334
- 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