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 and Virtumart problem

Metamod and Virtumart problem

Hi,

I have installed metamod v2.6 on my joomla 1.5 site.(demo URL: http://www.s217794495.websitehome.co.uk … tClothing/ )

I have used the following recipe:
$vm = JomGenius("virtuemart"); // need this at the start of every rule
if ( $vm->check("pagetype = shop.browse") ) {
  $category_id = $vm->info( "category_id" );
  /* when browsing a specific category on browse page (e.g. category 2) */
  if ($category_id == "2") return WWW; /* module WWW for category 2 */
  if ($category_id == "3") return XXX; /* module XXX for category 3 */
  if ($category_id == "4") return YYY; /* module YYY for category 4 */

  /* when browsing any other category on browse page */
  return ZZZ;
}

I have used this to display different sideshow modules in the top level categories of virtumart. I only want to show sideshows on the top level categories and not the sub categories so i have only added top level ids into the recipe

When i click into the sub-categories (for example Gloves & Scarves, which is in accessories) this error displays, "Error loading Modules:".

How do i stop this error from displaying?


Thanks in advanced
Sean R

reders
Beginner Modder
ranks
useravatar
Offline
12 Posts
Administrator has disabled public posting

Re: Metamod and Virtumart problem

Hi Sean,

the error message is displayed when you return a module number that doesn't actually exist. Did you change the XXX, YYY ZZZ etc with real module numbers? It would pay to check the ID numbers against the list of modules in the MetaMod.

If you don't want to display ANY module for a particular event, then you can remove the XXX, YYY etc and just use a return with nothing after it. That effectively stops the rest of the rule from processing, and means that no module is displayed.

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

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5933
Total Posts Today:
2
User Info:
 
Total Users:
4367
Newest User:
dixon45621
Members Online:
3
Guests Online:
190


Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked