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.

 

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 sad
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.

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

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;

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

Board Info

Board Stats:
 
Total Topics:
1696
Total Polls:
6
Total Posts:
5941
Posts this week:
7
User Info:
 
Total Users:
5408
Newest User:
obtoc67505
Members Online:
1
Guests Online:
3550

Online: 
obtoc67505

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked