Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » how to display a module in VM ONLY...
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;
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
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.
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
- Index
- » MetaMod
- » MetaMod General Support
- » how to display a module in VM ONLY...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5944
- Posts this week:
- 2
- User Info:
- Total Users:
- 7655
- Newest User:
- martha48
- Members Online:
- 0
- Guests Online:
- 136
- 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