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.

 

Virtuemart - rule - logical operators

Virtuemart - rule - logical operators

Hi

I would like to use Metamod to create rule that says: D not display module XXX on all VM pages that start with the words 'account' or 'cart' or checkout'.

Something similiar to this:
$vm = JomGenius("virtuemart"); // need this at the start of every rule
if ( $vm->check("pagetype not starts with checkout") ) return XXX;

I have tried: checkout,account,cart.
It doesnt work.

thanx
jodi

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

Re: Virtuemart - rule - logical operators

Hi Jodi,

looking at the page http://www.metamodpro.com/jomgenius/par … andcheckvm you'll see the list of known page types in VM:

frontpage, account.billing, account.index, account.order_details, account.orders, account.shipping, account.shipto, checkout.2Checkout_result, checkout.epay_result, checkout.ipayment_result, checkout.paysbuy, checkout.result, checkout.thankyou, shop.browse, shop.ask, shop.cart, shop.infopage, shop.manufacturer_page, shop.product_details, shop.registration, shop.savedcart, shop.search, shop.waiting_list, shop.waiting_thanks
checkout.index#1, checkout.index#2, checkout.index#3, checkout.index#4

So the only one that wasn't correct was "cart", as the page type is "shop.cart".

So try this:

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

Hope that helps,
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
3313 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5913
Dormant:
User Info:
 
Total Users:
10796
Newest User:
mokao3
Members Online:
0
Guests Online:
152

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