Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.



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


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

Beginner Modder
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 Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

3330 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
Total Topics:
Total Polls:
Total Posts:
Total Posts Today:
User Info:
Total Users:
Newest User:
Members Online:
Guests Online:

There are no members online

Forum Legend:

 New Sticky