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
- » Show module in specific virtuemart...
Show module in specific virtuemart Category
Show module in specific virtuemart Category
Hi,
I have virtuemart 3.6.2 and i like to have rule for showing a simple module in a specific category VM
This category has sub categories with articles.
I don't want that the module appears when i go to adetails product of this category or sub categories.
Only in the category that displays all products
I create a custom module with id 140 - Meu assignement : None - position right
I enable metamod - Menu assignement : the position i want - Position right
Itry specific url but not success
I try this code and the page showw syntax error, u
$vm = JomGenius("virtuemart");
if ( $vm->check("pagetype = category") ) {
$category_id = $vm->info( "category_id" );
if ($category_id == "7") return 140;
My last version metamod pro i bought is 3.13b
Regards.
Re: Show module in specific virtuemart Category
Hi, i try different rules i have seen in the forum but nothing works.
My metamod vertsion is 3.13b
The modul is 140
The category id i want to show this module is 7
$vm = JomGenius("virtuemart");
if ($vm->check("pagetype = category")
and $vm->check("category_id != 7")) return "140";
$vm = JomGenius("virtuemart");
if ($vm and $vm->check("pagetype = shop.browse") and $vm->check("category_id = 7") ) return140;
if ($core_genius->check("pagetype startswith category")) return 140;
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Show module in specific virtuemart...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5944
- Posts this week:
- 2
- User Info:
- Total Users:
- 7655
- Newest User:
- martha48
- Members Online:
- 0
- Guests Online:
- 166
- 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