Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Module on few virtuemart categories...
Page:
1
Module on few virtuemart categories and product pages
Module on few virtuemart categories and product pages
Hello.
I want to display few different modules on virtuemart categories and product pages.
Example:
- module ID 111 display on categories 111;112;113;114;115 and product pages in this categories;
- module ID 222 display on categories 222;223;224;225;226 and product pages in this categories;
I have modules (didn't assigned them to menu, they are published).
Could You please give me the recipe for this?
Edited By: PreArt
02-Oct-12 23:22:01
02-Oct-12 23:22:01
Administrator has disabled public posting
Re: Module on few virtuemart categories and product pages
I found a solution to display specific module on list of categories:
Code:
$vm = JomGenius("virtuemart");
if ($vm->check("category_ids = 1, 2, 3 ")) return 111;
but I need code to display the same module on product pages in those categories. Please help me with that.
Edit:
eh. It was a simple solution:
Code:
$vm = JomGenius("virtuemart");
if ($vm->check("ancestor_category_ids = 123")) return 111;
Administrator has disabled public posting
Administrator has disabled public posting
Page:
1
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Module on few virtuemart categories...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5943
- Posts this week:
- 2
- User Info:
- Total Users:
- 7639
- Newest User:
- corwin8669
- Members Online:
- 0
- Guests Online:
- 151
- 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