Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Hide modules on checkout page
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:
checkout page:
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.
24-Oct-11 22:51:28
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:
i see that in link shows shop.cart.
and how i made that is menu look like originaly one.
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
Re: Hide modules on checkout page
Thank you Metamodguy for replay, but i had quotes but still show on checkout page.
Like this;
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
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
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
- Index
- » MetaMod
- » MetaMod General Support
- » Hide modules on checkout page
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5944
- Posts this week:
- 2
- User Info:
- Total Users:
- 7658
- Newest User:
- carre82601
- Members Online:
- 0
- Guests Online:
- 180
- 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