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.

 

extensions for use with VM

extensions for use with VM

Hello everyone.
Excuse my English.
MetaMod Pro Use to show and hide pages Virtuemart modules.
I installed the extension "product comparison"
http://www.virtuemart-extensions.com/in … p;Itemid=3
To show / hide a particular module use:

$vm = JomGenius("virtuemart"); // need this at the start of every rule
if ( $vm->check( "pagetype = none of frontpage, shop.product_details,shop.cart,shop.ask" ) ) return 115;

comparison page for the module is not shown, but is blank space.
shop.compare if I add the module to the restrictions the result is the same.
Can you help me?
Thanks in advance.
Alberto

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

Re: extensions for use with VM

Hi Alberto,

shop.compare isn't one of the standard VM pages (must be a 3rd party addin?), so it's not detected by JomGenius.

You can still detect it this way:

if (JRequest::getVar("page") == "shop.compare") return; // don't return an id
$vm = JomGenius("virtuemart"); // need this at the start of every rule
if ( $vm->check( "pagetype = none of frontpage, shop.product_details,shop.cart,shop.ask" ) ) return 115;


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

Re: extensions for use with VM

Hello.
Indeed, it is.
Perfect. Thanks again.
regards
Alberto

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

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5933
Posts this week:
4
User Info:
 
Total Users:
4378
Newest User:
miller2341
Members Online:
0
Guests Online:
95

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