VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: kratzi on July 11, 2012, 22:54:41 PM

Title: Showing module depending on Category
Post by: kratzi on July 11, 2012, 22:54:41 PM
Hi,

I have a Nivo Slider - Module in my shop. However I would like to load a different slider depending on the top category which is active.
What I mean is f.e. I have 3 top categories.

-Car
  -...
  -...
-Bike
-Boat

As the "car" category is active I would like to load a slider which just contains pictures of cars.

Is there any (preferably) PHP solution for that??

I've found this page however I am a total PHP noob so even not able to adjust this code.

Thank you in advance


Simon
Title: Re: Showing module depending on Category
Post by: PRO on July 11, 2012, 23:15:26 PM
http://www.kaizenmediaworks.com/virtuemart-template-and-module-control
http://www.metamodpro.com/metamod/metamod-pro
Title: Re: Showing module depending on Category
Post by: kratzi on July 11, 2012, 23:59:00 PM
Thanks its working.

Perfect!!!

However is there a way that all subcategories show the module which was defined for the topcategory??

Thank you
Title: Re: Showing module depending on Category
Post by: PRO on July 12, 2012, 12:54:50 PM
Quote from: kratzi on July 11, 2012, 23:59:00 PM
Thanks its working.

Perfect!!!

However is there a way that all subcategories show the module which was defined for the topcategory??

Thank you

no, not with my code,

but metamod can do this
Title: Re: Showing module depending on Category
Post by: kratzi on July 12, 2012, 13:41:41 PM
thanks a lot :)