Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
Problem displaying modules in the subheadings of menu
Problem displaying modules in the subheadings of menu
I state that I have the latest version of joomla and virtuemart and that all I have to show the modules in your shopping cart and checkout process, I took the code from the "tutorial" and everything works perfectly, but if I'm going to tell the module metamod to be displayed in some sub-menu then a does not work and the form is displayed in the My Cart page.
What's wrong?
thanks a lot
stefano
Re: Problem displaying modules in the subheadings of menu
Hi Stefano,
Could you please supply a little more information?
1 - can you please post the PHP code that you are currently using?
2 - can you also explain more about what you mean by "tell the metamod to be displayed in some sub-menu then it does not work and the form [which form?] is displayed in the My Cart page"?
Thanks,
Stephen
Re: Problem displaying modules in the subheadings of menu
Re: Problem displaying modules in the subheadings of menu
Sorry, still not getting it. Could you describe the problem as precisely as you can in Italian, and I'll put it into Google Translate.
Here are some tips:
1 - describe what you WANT to happen. e.g. which modules should appear on what sort of pages, and on which menu items?
2 - describe what is ACTUALLY happening i.e. the parts that are working, and the parts that are not working. What do you see or not see? On which pages do you or do you not see them?
3 - what problem are you trying to avoid or work around by doing this?
Re: Problem displaying modules in the subheadings of menu
Sorry I'm late, but I wanted to go online so I could show you the problem.
The site is: www.inarteveritas.eu and the module is on the left and is called "Ricerca Avanzata"
if you try any product in the cart and then check out that module should disappear instead we always see.
Where did I go wrong?
thanks a lot
stefano
Re: Problem displaying modules in the subheadings of menu
Ok, so I take it that the "Ricerca Avanzata" module is module 171, and you want that to appear on all pages except VM checkout, correct?
Please check the following list:
1 - the target module (171) is assigned to "menu items: none" but is published. It doesn't matter what module position it is set to.
2 - the MetaMod is published and assigned to some or all pages on the site, and is assigned to the correct module position where you want the target module to appear, whatever that is.
3 - in the MetaMod, the "quick module id or position include" box should be left blank
4 - in the MetaMod, use the following PHP code:
$vm = JomGenius("virtuemart");
if ( $vm->check("pagetype not starts with checkout") ) return 171;
Does that work any better?
Cheers,
Stephen
Re: Problem displaying modules in the subheadings of menu
Ok, here's something to try, to see what's going on.
Use the following PHP code in the MetaMod:
$vm = JomGenius("virtuemart");
echo "page type is: " . $vm->info("pagetype") . "<br />";
if ( $vm->check("pagetype not starts with checkout") ) return 178;
(if 178 is not the id you want just swap it for the correct one)
Now view the pages that you were before, adding something to the cart then viewing the cart.
When you are on the cart page where the module is showing up when it is not supposed to, what does the module say the page type is?
Best regards,
Stephen
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Posts this week:
- 2
- User Info:
- Total Users:
- 7628
- Newest User:
- horlogekorting34
- Members Online:
- 0
- Guests Online:
- 86
- 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