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.

 

Hide module in virtuemart and joomla in the same time, how?

Hide module in virtuemart and joomla in the same time, how?

Hello, metamodguy, I solve my problem to hide modules on virtuemart, but now he is appearing in the pages of joomla, how do I hide this same module in the category pages that are apart from virtuemart?

linhos
Beginner Modder
ranks
useravatar
Offline
8 Posts
Administrator has disabled public posting

Re: Hide module in virtuemart and joomla in the same time, how?

Hi linhos,

can you please post the code that you're using in the MetaMod?

Also can you post a couple of URLs: one where the MetaMod is displaying correctly, and one where it is not displaying correctly?

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: Hide module in virtuemart and joomla in the same time, how?

Hi MetamodGuy follows the code that you gave me to hide the modules on virtuemart:

if ($core_genius->check("pagetype not = frontpage")) {

$vm = JomGenius("virtuemart");

if ($vm->check("pagetype = none of checkout.index#1,checkout.index#2,checkout.index#3,checkout.index#4, shopp.cart, account.index,shop.product_details") ) return 144;
}


  Below is the url of the page you are working normal or the pages of virtuemart that the above code, example:

http://www.neymefreeshop.com.br/index.p … ;Itemid=65

-------------------------------------------------- ---------------------
Now the page joomla module that keeps popping up, and this page is not of virtuemart and joomla but from itself, example:

  -------------------------------------------------- --------------------
http://www.neymefreeshop.com.br/index.p … ;Itemid=77

As you can see, the module filter products appear in the pages of JOOMLA, I want that same module tbm not appear in the pages of his own.

Thanks for the quick responses Metamod, your module is a success!

cheers

linhos
Beginner Modder
ranks
useravatar
Offline
8 Posts
Administrator has disabled public posting

Re: Hide module in virtuemart and joomla in the same time, how?

Thanks for the clarification - that makes more sense now.

I think what you want is for the module to appear only on VM pages, not on other pages on the site.

In the PHP above, it only checks these:
- the front page of the site is excluded
- certain VM pages are excluded
- all other pages are included.

So let's change this to ALSO exclude any pages that are not VM:

if ( $option == "com_virtuemart" and $core_genius->check("pagetype not = frontpage") ) {
  $vm = JomGenius("virtuemart");
  if ($vm->check("pagetype = none of checkout.index#1,checkout.index#2,checkout.index#3,checkout.index#4, shopp.cart, account.index,shop.product_details") ) return 144;
}


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: Hide module in virtuemart and joomla in the same time, how?

Stephen, you really fabulous guy and it was exactly what I wanted, now my site is the way I wanted, thank you very much

linhos
Beginner Modder
ranks
useravatar
Offline
8 Posts
Administrator has disabled public posting

Re: Hide module in virtuemart and joomla in the same time, how?

You're welcome smile

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:
10746
Newest User:
victor1234
Members Online:
0
Guests Online:
124

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