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.

 

Only show at checkout, VM search and logout pages.

Only show at checkout, VM search and logout pages.

Hi, I am a newbie, I have metamod up and running with a few recipes. I am looking to have a module load only at checkout, the VM search results page and the VM logout page. I have the following code for checkout:

$vm = JomGenius("virtuemart"); // need this at the start of every rule
if ( $vm->check( "pagetype = checkout.index, shop.cart" ) ) return 131;

For  VM search results page- I am using:

$vm = JomGenius("virtuemart"); // need this at the start of every rule
if ( $vm->check( "pagetype = shop.ask" ) ) return 130;

For the logout page I have nothing so far.

Would you be able to guide me as to where I am going wrong?

Many thanks
Andre

MetaMod v2.11, 2011-10-03
Joomla Version 1.5.25
VM 1.1.9
www.whoartnow.co.uk

Edited By: andredenito
18-Oct-12 11:10:37

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

Re: Only show at checkout, VM search and logout pages.

update: I cleared the cache and have got the show at checkout mod working now.

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

Re: Only show at checkout, VM search and logout pages.

Yes, the page cache (plugin) will affect modules for non logged-in users! In this case it will be fine to use the cache, as the contents of the module depend only on what page is being viewed. If the MetaMod depends on something like the time of day, or type of browser, or other external factors then the page cache can't deal with those and would have to be turned off.

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:
1698
Total Polls:
6
Total Posts:
5944
Posts this week:
4
User Info:
 
Total Users:
5533
Newest User:
gregg25476
Members Online:
1
Guests Online:
141

Online: 
gregg25476

Forum Legend:

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