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.

 

Problems in excluding modules on cart virtuemart / joomla

Problems in excluding modules on cart virtuemart / joomla

Hi,
I have the module 717 and 758 in the sidebar position.
In cart i want to remove this 2 modules and have the 785 module instead.
I unpublished the 2 modules, put the metamodpro enabled in that position and in all pages.
In PHP i put the following:

$vm = JomGenius("virtuemart");
if ( ! $vm->check("pagetype starts with cart") ) return 785;

I published the 785 module in the sidebar and then the two modules i want to exclude in cart.
All the three modules apear in the cart and in every pages.
What am i doing wrong?

Also i want to put a module only in the cart page in the mainbody bottom. How do i do that?

Thanks in advance.

mdiniz
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: Problems in excluding modules on cart virtuemart / joomla

Hi,

Setup: for the 3 modules you want to publish/unpublish, make sure they are all set to "menu items: none" so they do not appear until MetaMod includes them.

Then publish the MetaMod into the sidebar position, and use the following:

$vm = JomGenius("virtuemart");
if ( $vm->check("pagetype starts with cart") ) return 785;
else return "717, 758";

That way you'll get module 785 on the cart pages and 717 & 758 on everything else.

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

Re: Problems in excluding modules on cart virtuemart / joomla

Thanks alot
it works perfect now

If i want to put a module just in the cart page what is the php for that?
Thanks

mdiniz
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1683
Total Polls:
6
Total Posts:
5940
Posts this week:
11
User Info:
 
Total Users:
5142
Newest User:
zaki98040
Members Online:
0
Guests Online:
173

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