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.

 

Fatal error

Fatal error

Hello,

Today I bought your joomla extension MetaModPro, but I get this error when the plugin is enabled:

Fatal error: Call to undefined method JModuleHelper::addIncludePath() in /var/www/xxxxx/xxxxxx/xxxxx/xxx/xxxxxxx/plugins/system/mvcoverride/mvcoverride.php on line 61
(an email is sent to you with the complete details)

I am working on a website:
http://buildaweb.dk/shoetime/
http://buildaweb.dk/shoetime/administrator/
Login:
username: xxxxx (I have sent you an email with the details)
Password: xxxxx

All I wanna do, is to be able to hide the VM-productslide modules (id: 94, 175, 176, 177, 178) in the shopping cart.

Can you help me/advice me how to set this up?

... This is not my livesite, I am working on a copy of the life site, the original site is found on: http://shoetime.dk/


!!!!!! I have fixed the error by disable the MCV Override plugin, I don't know what it does, but now I got no fatal error anymore...

Best regards
Martin Sund

martsund
Beginner Modder
ranks
useravatar
Offline
1 Posts
Administrator has disabled public posting

Re: Fatal error

Hi Martin,

sorry for the delayed response. I'm glad we got to the bottom of the MVC override issue.

There are 2 ways to hide modules with MetaMod Pro. The first is to set things up so that the modules are only shown on pages *except* for the ones you want to hide it on. The other way (Pro only) is to use the MetaMod to detect those pages and unpublish the modules on those pages.

So we'll go for the 2nd way as it's easier to set up.

1 - Create a MetaMod and assign it to any valid module position on your site. Assign it to ALL pages. Nothing will actually show up in the MetaMod - it will only be used to house the PHP code that turns off the other modules.

2 - in the MetaMod's PHP box, use the following code:

$vm = JomGenius("virtuemart");
if ($vm->check("pagetype startswith cart")) {
  $changes->mod(94)->disable();
  $changes->mod(175)->disable();
  $changes->mod(176)->disable();
  $changes->mod(177)->disable();
  $changes->mod(178)->disable();
}

That should do it smile

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:
4
User Info:
 
Total Users:
4384
Newest User:
rash39381
Members Online:
0
Guests Online:
236

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