Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.



Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.


Itemid + Menus + VirtueMart

Itemid + Menus + VirtueMart

Hi all

Im trying to display Lateral Menus in specific positions inside Virtuemart.

Something like this :
Main Menu => Categories A, B, C, ...
Menu A => Category A
Menu B => Category B
etc ...


I dont want to display these menus in Product Details.

I tried :

Menu A Module > Show Title Yes > Enabled > Position A ( dont exists in template ) > Menus None
Menu B Module > Show Title Yes > Enabled > Position B ( dont exists in template ) > Menus None

MetaMod Module > Show Title No > Enabled > Position Left ( exists in template ) > Menus > Some positions in MainMenu & All positions in Menu A and Menu B

In PHP I tried this :

$vm = JomGenius("virtuemart");
$category_id = $vm->info( "category_id" );
if ( $vm->check( "pagetype != shop.product_details" ) ) {
  if ($category_id == "1") return 10;
  if ($category_id == "2") return 20;
  if ($category_id == "3") return 30;

Works fine in all page except in Product Details !!

Menus (A,B,...) dont show but I still have a "blank space" in position Left.

I changed Menu assigns to MetaMod module and tested changing Itemid ( from Principal Menu ) in url.
When I change to Itemid not assigned for MetaMod works perfect.

What Im doing wrong ?
How I can "break" this relation between Itemid ( Main Menu ) and MetaMod ?

Thanks in advance

Beginner Modder
1 Posts
Administrator has disabled public posting

Re: Itemid + Menus + VirtueMart

Hi webcorp,

The problem that you are seeing is that the left and right columns normally (in most templates) collapse when there are no modules assigned to them.

I think that the Itemid thing is a red herring in this case.

When you assign a MetaMod to a module position (e.g. left or right), then there's a module assigned in that position, and this will cause the columns to not collapse, and you get left with the blank space there, even if the MetaMod doesn't contain any other modules. This is what you are seeing.

The answer? MetaMod Pro. It's a plugin that you use in addition to MetaMod. If the MetaMod does not contain any modules, it causes the MetaMod itself to be removed from the list of modules in that position. Therefore the template will see the left or right columns as truly empty, and they will collapse properly.

You can read more the situation in these FAQs:
http://www.metamodpro.com/metamod/faq/2 … etamod-was
http://www.metamodpro.com/metamod/faq/2 … th-matamod

Hope that helps,

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

3330 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
Total Topics:
Total Polls:
Total Posts:
Total Posts Today:
User Info:
Total Users:
Newest User:
Members Online:
Guests Online:

There are no members online

Forum Legend:

 New Sticky