Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » MetaMod on Shop.Pricelist page
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?
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
- Index
- » MetaMod
- » MetaMod General Support
- » MetaMod on Shop.Pricelist page
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5944
- Posts this week:
- 2
- User Info:
- Total Users:
- 7658
- Newest User:
- carre82601
- Members Online:
- 0
- Guests Online:
- 154
- 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