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.

 

MetaMod on Shop.Pricelist page

MetaMod on Shop.Pricelist page

I've set up a module with ID 70 - which provides clients with terms and conditions of purchase on Virtuemart.
For some stupid reason, that module wont display on my Pricelist page (page=shop.pricelist), so I want to try and use MetaMod to see if this fixes my problem.

I've put the following code in to the MetaMod Module


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

However, thats not working either.. What am I doing wrong?

CreativeDesigns
Junior Modder
ranks
useravatar
Offline
24 Posts
Administrator has disabled public posting

Re: MetaMod on Shop.Pricelist page

scratch that.. I deleted the old menu item. Recreated the menu item, ensuring that the page parameters were set to shop.pricelist and now it works smile
I'm getting the hang of this! haha!

CreativeDesigns
Junior Modder
ranks
useravatar
Offline
24 Posts
Administrator has disabled public posting

Re: MetaMod on Shop.Pricelist page

The thing is with JomGenius for VirtueMart, that it only knows about the standard built-in page types. shop.pricelist is not one of those. Perhaps I should build in something so that if it can't work out what VM page it's on, it should just take the value of the "page" URL parameter. Yes, I should add that... (will put it into an upcoming version).

Meanwhile, you can still use MetaMod to isolate this page by doing it this way:

if ($option == "com_virtuemart" and JRequest::getVar("page") == "shop.pricelist") return 70;

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

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5933
Posts this week:
3
User Info:
 
Total Users:
4397
Newest User:
tull687318
Members Online:
0
Guests Online:
163

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