Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Virtuemart Page: Hide a module :)
Virtuemart Page: Hide a module :)
Virtuemart Page: Hide a module :)
Hello All;
First: This is my first post; and really want to say: its a REALLY good project/module!
Alright. I have used metamod for control some modules when i use the VM webshop. Here is it:
if ($option == "com_virtuemart") {
$category_id = JRequest::getVar("category_id");
if ($category_id == "2") {
return 58;
}
}
It is working though, now is it so; that when i go to a product detail; i want to hide it How can i do that?
Re: Virtuemart Page: Hide a module :)
VirtueMart has a LOT of different types of pages... instead of hiding a module on just one of those pages, it would be better to decide which page(s) you want the modules on, and just include the modules on that/those page(s).
So is it just the main "category" pages that you want the modules on? Any others?
Re: Virtuemart Page: Hide a module :)
Sure, no problem. To modify your original recipe:
Code:
if ($option == "com_virtuemart") {
$category_id = JRequest::getVar("category_id");
if ($category_id == "2") {
$page = JRequest::getVar("page");
if ($page != 'shop.product_details') return 58;
}
}
Hope this helps,
Stephen
- Index
- » MetaMod
- » MetaMod General Support
- » Virtuemart Page: Hide a module :)
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Posts this week:
- 2
- User Info:
- Total Users:
- 7628
- Newest User:
- horlogekorting34
- Members Online:
- 0
- Guests Online:
- 138
- 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