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.

 

Virtuemart product detail page

Virtuemart product detail page

The module is working fine for one module, the moment I would like to add more then one module only the first one (id 127) in the code is displayed. My code is below. hopefully this is easy to solve.
Think I miss something.

$vm = JomGenius("virtuemart");
if ($vm->check("pagetype = category")) return 127; 
$vm = JomGenius("virtuemart");
if ($vm->check("pagetype = category")) return 130;
$vm = JomGenius("virtuemart");
if ($vm->check("pagetype = category")) return 127;

mkwaad
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: Virtuemart product detail page

Do it this way:

$vm = JomGenius("virtuemart");
if ($vm->check("pagetype = category")) return "127, 130, 131, 132"; 
// add as many as you like


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

Re: Virtuemart product detail page

Thanks! Issue solved

mkwaad
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5913
Dormant:
User Info:
 
Total Users:
10778
Newest User:
negina4qx
Members Online:
0
Guests Online:
149

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