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.

 

Weird Confusion how to hide in Checkout Page

Weird Confusion how to hide in Checkout Page

Hi..
I have a module position called "VIDEO" , which loads on all over the site , for store and everything.
They are 2 modules on this position with ID 105 and 106.


Now, what I want is,
Just deactivate those 2 modules on cart and checkout page, so that my VM cart shows full width, instead of squeezed bcz of this sidebar 2 modules.

So, how do we do that ?

The module parametsr page is very long and hard to understand.
Cna you tell me, whats the basic configuration to keep ?

Very very confusing sad

soamz
Beginner Modder
ranks
useravatar
Offline
14 Posts
Administrator has disabled public posting

Re: Weird Confusion how to hide in Checkout Page

Let me explain my situation :
Earlier I had a CARt module published on VIDEO module position.
Then the client asked that, he needs a way, so that he can assign a module to each product details page.
Thats way impossible , since VM works on one ItemID.

But my developer did something on index.php and he did that,
We can just enter videoID , where ID = product ID and then that module shows on VIDEO position on that product page of 19.

here is the code ,

Code:

    <?php if ($this->countModules('video or inner_ad')) : ?>


                <div id="sidebar">

                   
                   
                    <?php if($videox != "video") :?>
                        <jdoc:include type="modules" name="<?php echo $videox; ?>" style="xhtml" />
                    <?php endif;?>

                    <jdoc:include type="modules" name="inner_ad" style="xhtml" />

                </div>

            <?php endif; ?>

       

        <?php endif; ?>

So, earlier the cart module use to come on right VIDEO position always.
Now the client wants that, the cart should display full width and no sidebar modules.

So, I deactivated the cart module. But after that, I saw the customized modules with video19, video18 and so on, doesnt come anymore.

So, that means, something needs to be activated on VIDEO position always to make that come.

So, I made a blank mod_custom module and published it on VIDEO position.

But alas, the CART and CHECKOUT page shows this way now,

http://yfrog.com/2mscreenshot20100711at131p

That means, that blank module is getting loaded here.

I need it to show this way ,
http://yfrog.com/3dscreenshot20100711at131p

Just need a way, so that moduleID=106 can be deactivated while on CART or CHECKOUT pages.

soamz
Beginner Modder
ranks
useravatar
Offline
14 Posts
Administrator has disabled public posting

Re: Weird Confusion how to hide in Checkout Page

Hello. Any help ?

soamz
Beginner Modder
ranks
useravatar
Offline
14 Posts
Administrator has disabled public posting

Re: Weird Confusion how to hide in Checkout Page

Ok, I think, I did it.
First deactivated that blank module and added it to MoetaMod with this rule,


Code:

/* first, always return them both on any page that's not a virtuemart page */


if ($option != 'com_virtuemart') return "106";

/* now, since we know we're on Virtuemart, check the exact pages */

$page = JRequest::getVar('page');

/* if we're not on the cart page or any of the checkout pages, return our modules */

if ($page != "shop.cart" and $page != "checkout.index" ) return "106";

Now, its all good.
But I see, on checkout and cart page , its a <div id=sidebar></div> coming on right sidebar and so the situation stays the same!

I also did this with simple Joomla.

Then what did MetaMod do ?

Is there a rule, so that metaMod just wont show anything and eliminate the <div id=sidebar></div> also, so that my cart page goes full width.

soamz
Beginner Modder
ranks
useravatar
Offline
14 Posts
Administrator has disabled public posting

Re: Weird Confusion how to hide in Checkout Page

I just bought the MetaMod Pro thinking ot may solve the problem..

But it has created way more problems.
Now that blank module is gone on product details page also, leading to my video19, video18 modules to vanish.

Damn..
Can anyone help personally, since I have bought the plugin ?

soamz
Beginner Modder
ranks
useravatar
Offline
14 Posts
Administrator has disabled public posting

Re: Weird Confusion how to hide in Checkout Page

Your MetaMod Pro says, it will eliminate the template wrap code.

But since in the rule, its done that, it should show on every VM page and not just cart and checkout page, then howcome its VANISHING n that pages also ??

Can anyone reply please ?

soamz
Beginner Modder
ranks
useravatar
Offline
14 Posts
Administrator has disabled public posting

Re: Weird Confusion how to hide in Checkout Page

All different behavious happening on different browsers now.
Safari show the video19, video18 modules on cart pages now.
Firefox shows it sometimes, Firefox doesnt show it sometime.
I dont know, whether the MetaMod is working or not.

This is frustrating.

Enabled Debug on module, but no debug msg anywhere.

soamz
Beginner Modder
ranks
useravatar
Offline
14 Posts
Administrator has disabled public posting

Re: Weird Confusion how to hide in Checkout Page

Anyone there ?
Stephen, you there man ?
Just sent you an email also. I see, its 5pm in your country.

Can you come online man?
I have wasted my 10 hours in looking into it. Ended up paying, but that creates more problem.

soamz
Beginner Modder
ranks
useravatar
Offline
14 Posts
Administrator has disabled public posting

Re: Weird Confusion how to hide in Checkout Page

After buying MetaMod Pro and activating, its started hiding my module id 106 on product details page, which I dont want.

all I need is, hide the 106 module on cart page and thats it.

Need a quick help please.

soamz
Beginner Modder
ranks
useravatar
Offline
14 Posts
Administrator has disabled public posting

Re: Weird Confusion how to hide in Checkout Page

I need 106 to show on all VM pages.
And I need 106 to be hidden from cart and checkout page.

Thats it.


NOTE : 106 is a blank mod_custom module. Blank means no data at all in that module.

soamz
Beginner Modder
ranks
useravatar
Offline
14 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5933
Posts this week:
3
User Info:
 
Total Users:
4412
Newest User:
doyal54741
Members Online:
1
Guests Online:
161

Online: 
doyal54741

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked