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 modules on checkout page

Hide modules on checkout page

Hello,
im realy happy that i found this site and this great module.
I need help. Have site and i want to hide some module on right on VM checkout page.
IM using joomla 1.5.23 and metamood v2.11.
I use home page as order page.
I make screen shoots how i want to look if is possible:
home page:
http://www.shrani.si/f/34/5X/1idZd3Af/1.jpg
checkout page:
http://www.shrani.si/f/2m/Df/mi9dST6/3.jpg

I try few recepies from your page, but non of i didnt know to set up right.
Module ID on the right are 488,489,499,501,506. On live page http://www.misruedas.es/ i disable right column now.


Hope for help.
Thank you in advance.

Edited By: Manta
24-Oct-11 21:51:28

Manta
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: Hide modules on checkout page

I try this way:
i create new position right-non-vm and put all modules in right position to this one and metamod put to right position and in all modules thats show in none pages.
And then i put this code:

$vm = JomGenius("virtuemart"); // need this at the start of every rule
if ( $vm->check("pagetype not starts with checkout") ) return XXX;
/* replace XXX with the module id or position you want
* to display <em>except</em> on any of the checkout pages
*/

i replace xxx with right-non-vm.
but still not works...
its look like this:
http://www.shrani.si/t/g/Lh/3OgPqAyh/4.jpg

i see that in link shows shop.cart.
and how i made that is menu look like originaly one.

Manta
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: Hide modules on checkout page

Hi,

I think you are going in the right direction. I wonder if you just needed to have quotes around the module position name?

Like this:

$vm = JomGenius("virtuemart"); // need this at the start of every rule
if ( $vm->check("pagetype not starts with checkout") ) return "right-non-vm";


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

Re: Hide modules on checkout page

Thank you Metamodguy for replay, but i had quotes but still show on checkout page.
Like this;
http://www.shrani.si/f/g/Lh/3OgPqAyh/4.jpg

But as you see, in the link its shop.cart and no checkout word. I try also to remove checkout work in code and replace it with shop.cat but still didnt work...

And its possible that show same style menus lik eon 1st picture in 1st posst? not like in this picture where is only one block?

thank you

Manta
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: Hide modules on checkout page

Hi Manta,

I think now that the reason is this: the page you are looking at is not the checkout page. It's the shopping cart page.

So, try this, which should remove the modules for both the shopping cart page AND any checkout pages:

$vm = JomGenius("virtuemart"); // need this at the start of every rule
if ( $vm->check("pagetype starts with none of checkout, shop.cart") ) return "right-non-vm";


Hope that does the right thing this time!

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

Re: Hide modules on checkout page

Hey Stephen,

thank you, but still dont work and still show in checkout page.

Manta
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: Hide modules on checkout page

[taking this offline; hope to take a look at your site to see what's going on]

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: Hide modules on checkout page

I see that you have One Step Checkout installed for VirtueMart. I had never tested with that before, and I found that it was messing up the page detection a bit. I've now fixed that on your site and will be releasing the new version (2.12) today.

In v2.12 with One Step Checkout, when you go to the shopping cart page, JomGenius now detects this as pagetype "checkout.index#1". For any other checkout steps, like after you have confirmed the order, it detects it as "checkout.onepage".

Note that on your template, the right column does not collapse even when MetaMod does not put the module onto the page. This is because the MetaMod itself is assigned into that module position, even when it's "empty". MetaMod Pro is the best way to avoid this problem. With MetaMod Pro, if the MetaMod does not include any other module, then the MetaMod gets removed from the module position completely, allowing it to collapse if there's no other module in there.

Thanks for letting me look at your site - it was valuable to be able to test MetaMod with VM One Page Checkout.

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: Hide modules on checkout page

Stephen thank you for your help smile

Manta
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1684
Total Polls:
6
Total Posts:
5940
Posts this week:
1
User Info:
 
Total Users:
5174
Newest User:
frashaomran
Members Online:
0
Guests Online:
189

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