Forums / Templates, Stylesheets, Page Layout / More Information Sidebox to appear only when logged in

More Information Sidebox to appear only when logged in

Locked

Started by mathgyrl on 9 Jan 2008, 10:56 PM · Views: 779

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
9 Jan 2008, 10:56 PM
#1
mathgyrl avatar

mathgyrl

New Zenner

Join Date:
Jan 2006
Posts:
12
Plugin Contributions:
0

More Information Sidebox to appear only when logged in

Hello,

I would like the more_information sidebox to appear only when a customer has logged in. I have attempted the suggestion found at tutorial 279 but it doesn't seem to work.

Perhaps I have chosen the wrong variable?
I changed this:

// test if box should display

unset($more_information);

to this:


// test if box should display
if (!$_SESSION['customer_id']) {
$show_more_information= false;
} else {
$show_more_information= true;
}

Needless to say it doesn't work. The more information box appears whether logged on or not. Any help would be appreciated.

10 Jan 2008, 7:25 PM
#2
mathgyrl avatar

mathgyrl

New Zenner

Join Date:
Jan 2006
Posts:
12
Plugin Contributions:
0

Re: More Information Sidebox to appear only when logged in

Thanks all,
I decided to use the blank_sidebox instead of the more_information sidebox.

For reasons unknown the instructions found at tutorial 279 work perfectly for blank_sidebox . As I said earlier perhaps I had the variable wrong.