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.

 

[solved] Need help with Metamod configuration

[solved] Need help with Metamod configuration

Hi,
I´m using Joomla 2.5.6 and just installed Metamod mod_metamod-3-21 for Joomla 1.7-3.4  NOTE: FOR JOOMLA 1.7-3.4 ONLY.
URL  public. www.expoconstrudecor.es
I did not used a previous version.
Module just does not work properly – does not appear anyhow.
The module metamod is installed correctly.
Detalles
•    Título * MetaMod
•    Mostrar: Título Mostrar / show
•    Posición: right_top
•    Estatus:   enabled
•    Acceso:  public
Asigned menu: all     
•    PHP
$vm = JomGenius("virtuemart");
if ( $vm->check("pagetype = shop.browse") ) {
  $category_id = $vm->info( "category_id" );
  if ($category_id == "11") return 166;
  if ($category_id == "12") return 168;
}
Both Return modules  are enabled; 166 is custom HTML and 164 is mod banner, got ID from Available modules list.
Categories ID from Virtuemart component categories list .
http://www.expoconstrudecor.es/campanasactuales   id 11
http://www.expoconstrudecor.es/top-productos id 12
I checked and follow instructions from your page, from this other one http://www.webempresa.com/blog/item/828 … emart.html and youtube tutorial https://www.youtube.com/watch?v=TjTMJM9xJCg
I´ve tried with a few different categories and with diferent modules (from available module list).
Module simply just does not show. Any suggestions?
Thanks, best regards.

ESteban
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: [solved] Need help with Metamod configuration

Hi,

I think the issue is that "shop.browse" is VM 1.0 only. Internally the page types (names) changed for VM2.0. I think the page type you are after is going to be "category". Try it this way:

Code:

$vm = JomGenius("virtuemart"); 

if ( $vm->check("pagetype = category") ) {
  $category_id = $vm->info( "category_id" );
  if ($category_id == "11") return 166;
  if ($category_id == "12") return 168;
}

If you want to double check the names of the different page types, you could use this code to display the page names(types):

Code:

$vm = JomGenius("virtuemart");

echo "VM page type: " . $vm->info("pagetype")."<br>";

Then you can use this inside the check() method.

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

metamodguy
useravatar
Offline
3328 Posts
User info in posts
Administrator has disabled public posting

Re: [solved] Need help with Metamod configuration

Yes , many thanks, it works perfectly!

ESteban
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5933
Posts this week:
4
User Info:
 
Total Users:
4379
Newest User:
coates7891
Members Online:
2
Guests Online:
195


Forum Legend:

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