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.

 

[solved] How to Show Module on on Flypages?

[solved] How to Show Module on on Flypages?

Hi Stephen,

Can I get a recipe to show a module in Virtuemart 2 - only on product flypages? (and nowhere else)

Thank you!

Edited By: metamodguy
18-Jun-13 05:02:43

ironlion37
Beginner Modder
ranks
useravatar
Offline
7 Posts
Administrator has disabled public posting

Re: [solved] How to Show Module on on Flypages?

Sure. You can find all the keywords for VM2 on J2.5 from this page:

http://www.metamodpro.com/jomgenius/parameters#vm2x

The one you want, I think, is this:

$vm = JomGenius("virtuemart");
if ($vm->check("pagetype = productdetails")) return XXX;

Replace XXX with the module id of the module to display on flypages (flypages is the old VM1.x name for them; I think they are called product details pages now).
Don't forget to publish the MetaMod and assign it to either ALL pages, or at least to any menu items that VM uses.

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

Re: [solved] How to Show Module on on Flypages?

Beautiful! Thank you and thanks for the link smile

ironlion37
Beginner Modder
ranks
useravatar
Offline
7 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1691
Total Polls:
6
Total Posts:
5912
Total Posts Today:
6
User Info:
 
Total Users:
11527
Newest User:
david9684
Members Online:
3
Guests Online:
142


Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked