Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Showcase only when not logged in.

Showcase only when not logged in.

Locked

Views: 1,101

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
3 Feb 2007, 3:50 PM
#1
arpeggio avatar

arpeggio

Zen Follower

Join Date:
Dec 2006
Location:
Tokyo, Melbourne, Shanghai
Posts:
102
Plugin Contributions:
0

Showcase only when not logged in.

Dear Zenners,

I've been a searchin' high and low but there doesnt seem to be anyone that's posted about this. I would like to have only a showcase available if a user is not logged in. When they log in the entire categories with prices will be available.

is it possible and if you can give me a few pointers please.

Thank you in advance.

Arpeggio.

3 Feb 2007, 4:05 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Showcase only when not logged in.

There are settings in Customer Details for this ...

Customer Shop Status - View Shop and Prices
Customer must be approved to shop
0= Not required
1= Must login to browse
2= May browse but no prices unless logged in
3= Showroom Only

4 Feb 2007, 10:11 AM
#3
arpeggio avatar

arpeggio

Zen Follower

Join Date:
Dec 2006
Location:
Tokyo, Melbourne, Shanghai
Posts:
102
Plugin Contributions:
0

Re: Showcase only when not logged in.

sou da ne. arigato Ajeh oba sama. for talking some sense into me. I was trying to achieve something a little different than what the admin settings could acheive (i think!:sleepy:) but ya right I was startin" to do mental backflips and cartwheels!! Now I've changed back now and my life is easier!! Am still curious about why it didn't work but.... Any ideas?:sleepy: xie xie ni.

4 Feb 2007, 2:44 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Showcase only when not logged in.

I haven't a clue what you tried nor what precisely "didn't work" ... could you elaborate a bit? :smile:

7 Feb 2007, 4:29 AM
#5
arpeggio avatar

arpeggio

Zen Follower

Join Date:
Dec 2006
Location:
Tokyo, Melbourne, Shanghai
Posts:
102
Plugin Contributions:
0

Re: Showcase only when not logged in.

Konichiwa Ajeh obaa sama. Whoops I thought I had posted some IF statements here but it was another forum thread (http://www.zen-cart.com/forum/showthread.php?t=57161)
and that was what i was referring to when I stated "I'm still curious why it didn't work". Sorry about that. but if you could explain i would be very interested to know why it didnt work. arigato.

7 Feb 2007, 4:36 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Showcase only when not logged in.

You try to make things to complicated ...

In the Categories sidebox if you don't want that showing unless logged in ... note this includes the All, Specials, New and Featured Link ...

You could use an IF on the sidebox itself ...

Find this line in the categories.php sidebox ...

    if ($check_categories->RecordCount() > 0) {

Change to read:

    if ($_SESSION['customer_id'] > 0 && $check_categories->RecordCount() > 0) {

Now, you will see the categories sidebox with links if customer is logged in ... otherwise just see the box only with the links to All, Specials, New and Featured ...

Or, use the same concept to turn off the whole box ...

7 Feb 2007, 6:08 AM
#7
arpeggio avatar

arpeggio

Zen Follower

Join Date:
Dec 2006
Location:
Tokyo, Melbourne, Shanghai
Posts:
102
Plugin Contributions:
0

Re: Showcase only when not logged in.

Wow! Ajeh nenai no?!! ohenji arigato. (not sleeping?!! thank you for your reply) Ohio ni nanji ka na? (i wonder what time it is in Ohio?)
Well yes, complicated but I think complication is the sign of the beginner at their limit!! Certainly Me!!
With the above I actually got rid of the whole category box!! with the IF statement. then i was just working on eliminating the Category Box Title. But anyway I gave away the idea and am now just not showing prices as per your original suggestion. I can see your advice working though. xie xie. Now I'm working on another seeming challenge: http://www.zen-cart.com/forum/showthread.php?p=325439#post325439

feel free to shed some light on possibilties. Thank you very much Ajeh sama.