Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Metamod and Virtumart problem
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
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
- Index
- » MetaMod
- » MetaMod General Support
- » Metamod and Virtumart problem
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Posts this week:
- 2
- User Info:
- Total Users:
- 7633
- Newest User:
- mingle7855
- Members Online:
- 0
- Guests Online:
- 186
- 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