Zen Cart Logo
Forums / Basic Configuration / is there a way to block categories on register page?

is there a way to block categories on register page?

Locked

Views: 1,304

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
26 Feb 2009, 4:43 PM
#1
kuka avatar

kuka

New Zenner

Join Date:
Oct 2008
Posts:
7
Plugin Contributions:
0

is there a way to block categories on register page?

I hope this has not already been asked but I could not find the answer. My client wants to restrict the content of his stock photos site until a perspective customer registers (most of these types of sites do this).

I need to be able to turn off the "Categories: box for the one page showing "Sign up" and "returning customers".

Here is the link to make sure you know what I am talking about...

http://www.davidneel.com/cart/index.php?main_page=login

Once they have registered they should get full access.

Anyone have a clue if this is possible?

Thanks in advance

Kuka from Bangkok

26 Feb 2009, 6:45 PM
#2
bunyip avatar

bunyip

Totally Zenned

Join Date:
Sep 2004
Location:
Western Massachusetts
Posts:
2,361
Plugin Contributions:
1

Re: is there a way to block categories on register page?

There's a lot more to this than simply turning the categories box off on the login page - what about all the other pages? If I go to the login page, and from there click on any of the other internal links on the page, I'll then see the categories sidebox and have access to the site content. The best solution is probably to do some custom coding that uses the customer authorization system that already exists in the cart.

Neville
An assumption is what you arrive at when you get tired of thinking...

26 Feb 2009, 10:11 PM
#3
kuka avatar

kuka

New Zenner

Join Date:
Oct 2008
Posts:
7
Plugin Contributions:
0

Re: is there a way to block categories on register page?

Hi: I am a native American speaker but have not clue what that is....

HELP

Kuka

27 Feb 2009, 4:13 PM
#4
kuka avatar

kuka

New Zenner

Join Date:
Oct 2008
Posts:
7
Plugin Contributions:
0

Re: is there a way to block categories on register page?

Ok, I do understand now......I cant code.. :(

27 Feb 2009, 5:21 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: is there a way to block categories on register page?

You might peek at this thread on turning off the categories sidebox ...
http://www.zen-cart.com/forum/showthread.php?t=121318

It is similar to what you are trying to do and may help point you in the right direction ...

Your goal is to not show it when either on Secure Pages or when specifically on the login page ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

27 Feb 2009, 6:19 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: is there a way to block categories on register page?

As I understand it, you want to not show the categories sidebox at all until a customer has an account (i.e. is logged in).

When a customer logs in, they get their customer id in the session, so you can use that in the test in /includes/modules/sideboxes/CUSTOM/categories.php:```php
if ($_SESSION['customer_id']) {
$show_categories = true;
} else {
$show_categories = false;
}