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.

 

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

riga75
Beginner Modder
ranks
useravatar
Offline
10 Posts
Administrator has disabled public posting

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

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

Re: Problem displaying modules in the subheadings of menu

1 -

Code:

$vm = JomGenius("virtuemart"); 

if ( $vm->check("pagetype not starts with checkout") ) return 171;

2- see the screenshot
http://imageshack.us/photo/my-images/687/schermata20130116alle08.png/

riga75
Beginner Modder
ranks
useravatar
Offline
10 Posts
Administrator has disabled public posting

Re: Problem displaying modules in the subheadings of menu

Hi Stefano,

sorry to ask again, but can you please be more precise about what the problem is? I still don't get it.

Thanks

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

Re: Problem displaying modules in the subheadings of menu

The problem is that the modules that I would not be displayed during the checkout process

riga75
Beginner Modder
ranks
useravatar
Offline
10 Posts
Administrator has disabled public posting

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?

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

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

riga75
Beginner Modder
ranks
useravatar
Offline
10 Posts
Administrator has disabled public posting

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

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

Re: Problem displaying modules in the subheadings of menu

The id is the 178, I did quallo you say it does not work, if you try to put a product in your shopping cart and then go into the cart module appears.
thanks a lot

stefano

riga75
Beginner Modder
ranks
useravatar
Offline
10 Posts
Administrator has disabled public posting

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

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

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5913
Dormant:
User Info:
 
Total Users:
10783
Newest User:
weatti4qx
Members Online:
0
Guests Online:
178

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