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.

 

Disable module on specific categories Virtuemart

Disable module on specific categories Virtuemart

Hello there,
i recently bought a component for having zoom effect on Virtuemart products images.
It have to work in some categories only, and i'm not really into PHP language.
So, how can i use Metamod to disable that module on specific categories (or enable it excluding the other categories?) ?

Please help me i'm loosing my head.
Thank you very much!
Cheers
M.

johndeer
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: Disable module on specific categories Virtuemart

Hi,

Answer: Yes, you can.

I suggest the following pages:

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

Also, there are lots of other posts on the forum here about VM. Do a site search and see what you can some up with.

If you have any questions after that, please don't hesitate to write back.

Cheers,
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
3319 Posts
User info in posts
Administrator has disabled public posting

Re: Disable module on specific categories Virtuemart

Thanks Stephen for your reply.
I'm really newbie on PHP, plus my english is not so good and maybe i don't understand something from the pages you linked.

Basically:

I've got this module/component, called MagicZoom, and it should work only on some Virtuemart category products details.

I installed the mod_metamod module, i enabled it and disabled the menu assignment. I set the position as the MagicZoom module.

Then i wrote that on PHP form:

$vm = JomGenius("virtuemart");
if ($vm->check("category_ids = 18, 19, 20")) return 60;

// replace XXX with the module id to use on categories 4, 5 and 6


I replaced the ID from categories and modules as well, and obviously nothing changed.

NOW: How i can disable the module on all the other categories??

Thank for your patience.
M.

johndeer
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: Disable module on specific categories Virtuemart

The MetaMod has to be published and set to a real position on real menus. It's the *target* module (the one that you are trying to control) that has to be set to "none" menu assignment. Please look through the Quick Start guide again.

The PHP code looks fine I think.

Hope that works now...

Cheers,
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
3319 Posts
User info in posts
Administrator has disabled public posting

Re: Disable module on specific categories Virtuemart

thank you stephen!!!
i've done what you said and it works now.
really apprecciate your help.
great module!
cheers
m.

johndeer
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: Disable module on specific categories Virtuemart

there's one little thing more....
i set the metamod module's position on the left, and everything works but i see a blank button on the left menu when the zoom effect is enabled.
when i try to change position the module doesn't work more.
how can i fix this?
thanks again
m.

johndeer
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: Disable module on specific categories Virtuemart

Please check the FAQs.

http://www.metamodpro.com/metamod/faq

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
3319 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1675
Total Polls:
6
Total Posts:
5917
Posts this week:
6
User Info:
 
Total Users:
11577
Newest User:
owens65784
Members Online:
0
Guests Online:
164

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