Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » [solved] using it with...
[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
ps: yes my virtuemart category exists, it is published.
05-May-13 22:15:12
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
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.
Re: [solved] using it with virtuemart...no success, please help :)
Thanks guys for taking the time
-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
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
Re: [solved] using it with virtuemart...no success, please help :)
Thank you Stephen
something clicked in my mind 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 fantastic module !!!
- Index
- » MetaMod
- » MetaMod General Support
- » [solved] using it with...
Board Info
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked