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.

 

how to display a module in VM ONLY when I have a product page

how to display a module in VM ONLY when I have a product page

Hello there

I just have a simple question:

how to display a module in virtuemart ONLY when I have a product page, I do not want that module in cart page category page or homepage.

I tried several PHP recipience and I was able to take it out form homepage and category page but not from cart page.

Also my receipe is quate complicate as I want it ONLY in product description page, not more then that.

==================================
$vm = JomGenius("virtuemart");
if ( $vm->check( "pagetype != category" )
and
$vm->check( "pagetype != frontpage" )
) return 118;

corrado
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: how to display a module in VM ONLY when I have a product page

I tryed also this code but not working


$vm = JomGenius("virtuemart");

if ( $vm->check( "pagetype = shop.product_details" ) ) return 118;

corrado
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: how to display a module in VM ONLY when I have a product page

Using VM 2.0.10  Joomla 2.5.7

corrado
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: how to display a module in VM ONLY when I have a product page

Ok, in VM2.0 it's this:


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

For the full list of keywords you can check for in VM2.0, please see http://www.metamodpro.com/jomgenius/parameters#vm2x

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

Re: how to display a module in VM ONLY when I have a product page

Thank you now is working...

corrado
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: how to display a module in VM ONLY when I have a product page

metamodguy wrote:

Ok, in VM2.0 it's this:


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

For the full list of keywords you can check for in VM2.0, please see http://www.metamodpro.com/jomgenius/parameters#vm2x

Cheers,
Stephen

This is my first attempt at using MetaMod, I used this code and called the Mod up to the product details and it showed up, I would like to take this one sep further and remove it from the category page.   The Mod I selected does not show up in the category page but their is a blank space on the category page when I enable the Meta Mod. Is there a way to not have it affect the Category page?  The category page has multiple product thumbnails going 3 acrross to fill space, when MetaMod with the code above is use the thubnaill are still three across but they are smaller and pushed over as if the Mod was there but its blank.

Thank you for any help.

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

Re: how to display a module in VM ONLY when I have a product page

Hi 7racecar7,

this is a FAQ:

http://www.metamodpro.com/metamod/faq/2 … etamod-was
http://www.metamodpro.com/metamod/faq/2 … th-matamod

Simple answer is to upgrade to Pro, but there may be other ways around it - see FAQs for details.

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

Board Info

Board Stats:
 
Total Topics:
1689
Total Polls:
6
Total Posts:
5941
Posts this week:
1
User Info:
 
Total Users:
5361
Newest User:
scotti64d
Members Online:
1
Guests Online:
149

Online: 
scotti64d

Forum Legend:

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