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] using it with virtuemart...no success, please help :)

[solved] using it with virtuemart...no success, please help :)

Hello all,

I've installed metamod, looks interresting...can't wait to get it to work.

I have virtuemart 2.0.20b with joomla 2.5.9 installed

I would like a certain module to appear, when a certain category of virtuemart is selected.

In the metamod module configurations, I've setup all right, and in php section, I've put :

$vm = JomGenius("virtuemart");
if ($vm->check("category_ids = 47")) return 244;

nothing is appearing,

can someone please shed a light on this
much appreciated
Sandra
smile

ps: yes my virtuemart category exists, it is published.

Edited By: metamodguy
05-May-13 21:15:12

serazoo
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Re: [solved] using it with virtuemart...no success, please help :)

I'm not an expert but you could try this:

Code:

$vm = JomGenius("virtuemart");

if ( $vm->check("pagetype = category") ) {
  $category_id = $vm->info( "category_id" );
  if ($category_id == "47") return 244;
}

http://www.metamodpro.com/metamod/recip … mart-pages

Outbreaker
Beginner Modder
ranks
useravatar
Offline
8 Posts
Administrator has disabled public posting

Re: [solved] using it with virtuemart...no success, please help :)

Also, ensure the MetaMod is published and in a valid module position. To check this, turn on MetaMod's debug mode and see if you can see any debug output from the MetaMod. If so, you've got that part set up right.

Outbreaker's code is also correct but will only operate on category pages. The poster's original code would work on both category pages AND product pages where the product is in category 47.

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] using it with virtuemart...no success, please help :)

Thanks guys for taking the time smile

-The metamod module is published and in a valid position, I've turned on debug..I don't even see that also...

I'm willing to buy pro version if this is my problem...

I know it's mind boggling...I'm not saying something is wrong with metamod...can certain joomla templates prevent metamod from functioning ?

Sandra smile

serazoo
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Re: [solved] using it with virtuemart...no success, please help :)

Ok, so if the MetaMod is published and in a valid module position, it should show something if Debug mode is turned on. Is it assigned to some menu items as well? It needs to be assigned to either ALL pages or at least some pages where VM is operating.

Joomla templates can't prevent module output from appearing from MetaMod, (e.g. in debug mode) - it's pretty much a completely standard Joomla module producing some output, at that point. So once you get that set up right the rest of it should just work!

Best regards,
Stephen

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] using it with virtuemart...no success, please help :)

Thank you Stephen smile

something clicked in my mind smile for those who are having the same issue, I just had to assign metamod module to the virtuemart button in the main menu...now everything is working like it should. YES !!!

did I miss this little notion in the tutorials somewhere ?

thanks again smile fantastic module !!!

serazoo
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Re: [solved] using it with virtuemart...no success, please help :)

Great, glad it was something so simple :-)

Best regards,
Stephen

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

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5933
Posts this week:
3
User Info:
 
Total Users:
4401
Newest User:
jason59312
Members Online:
0
Guests Online:
181

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