Forums / Templates, Stylesheets, Page Layout / Log In To See Newest Products, but see all others if not

Log In To See Newest Products, but see all others if not

Locked

Views: 2,158

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
15 Jan 2007, 10:29 AM
#1
outlawlb avatar

outlawlb

New Zenner

Join Date:
Jan 2007
Posts:
86
Plugin Contributions:
0

Log In To See Newest Products, but see all others if not

Again, I was searching for this but could not find it.

What I want is for people to have to log in to see the newest products, but otherwise they can see it all.

How would I go about doing this?

15 Jan 2007, 3:55 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Log In To See Newest Products, but see all others if not

You would need to customize the:

New Products link in the Categories sidebox
What's New Sidebox
New Products Centerbox
New Products Listing

To not show when the customer is not logged in ...

Then you would need to add a filter or exclude to the where statements on all the other functions of the site to prevent New Products from showing in Featured, Specials, Product Listing, Product _info on Prev/Next etc. as well ...

After you have customized all of the code everywhere ... this should work for you ... :eek:

In other words, it would require a heck of a lot of code to prevent guests from seeing new products ...

It can be done, but it is a lot of work ...

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!

15 Jan 2007, 4:18 PM
#3
outlawlb avatar

outlawlb

New Zenner

Join Date:
Jan 2007
Posts:
86
Plugin Contributions:
0

Re: Log In To See Newest Products, but see all others if not

So what kind of code would I have to put in?

Such as what defines a logged in person?

And just to be sure where would I find the exact files I need?

Finally (for this post anyway) would this be able to be toggled on and off, or should I just not worry about that?

15 Jan 2007, 4:23 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Log In To See Newest Products, but see all others if not

Find every select statement and add something to block the new products by date when the customer is not logged in ...

IF statements can be used on the existing New Product information as those already are set for selecting the New Products and just need to be blocked when the $_SESSION['customer_id'] == 0

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!

15 Jan 2007, 4:34 PM
#5
outlawlb avatar

outlawlb

New Zenner

Join Date:
Jan 2007
Posts:
86
Plugin Contributions:
0

Re: Log In To See Newest Products, but see all others if not

Ajeh:

You would need to customize the:

New Products link in the Categories sidebox
What's New Sidebox
New Products Centerbox
New Products Listing

Sorry to ask, but where would I find the files for those?

15 Jan 2007, 4:39 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Log In To See Newest Products, but see all others if not

Look in the:
/includes/modules
/includes/modules/pages
/includes/modules/sideboxes

Anything with the word NEW in it would need code to be altered ... using your templates and overrides directories ...

Then you can start narrowing down all of the other locations by moving through the site and looking at the URL as it contains part of the filename where you can use that to find the files to customize for each page you are displaying ...

This will let you locate the select statements that are used and you can customize it so that when the customer is logged in, it uses the current statement, and when the customer is not logged in it would use a customized select statement to exclude the new products ...

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!

15 Jan 2007, 7:58 PM
#7
outlawlb avatar

outlawlb

New Zenner

Join Date:
Jan 2007
Posts:
86
Plugin Contributions:
0

Re: Log In To See Newest Products, but see all others if not

Thank you I will start to work on this and see what I can do.

21 Jan 2007, 11:24 PM
#8
outlawlb avatar

outlawlb

New Zenner

Join Date:
Jan 2007
Posts:
86
Plugin Contributions:
0

Re: Log In To See Newest Products, but see all others if not

I am actually getting very lost with this. There are a lot of "NEW"s.

22 Jan 2007, 2:21 AM
#9
ajeh avatar

ajeh

Oba-san

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

Re: Log In To See Newest Products, but see all others if not

It can be confusing ... there are a lot of files to customize to prevent people from seeing just the new products ...

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!

22 Jan 2007, 3:38 PM
#10
outlawlb avatar

outlawlb

New Zenner

Join Date:
Jan 2007
Posts:
86
Plugin Contributions:
0

Re: Log In To See Newest Products, but see all others if not

Would creating a plugin be simpler?

23 Jan 2007, 12:28 AM
#11
ajeh avatar

ajeh

Oba-san

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

Re: Log In To See Newest Products, but see all others if not

No matter how you do it, there are a lot of files to address ...

Where ever a select is done that is going to display products there has to be an added condition to manage the new products ... and only allow logged in customers to see them ...

Perhaps if you explained the point of allowing only logged in customers to see new products it will strike a spark with me on a better method to do this ...

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 Jan 2007, 1:15 AM
#12
rush_woman avatar

rush_woman

Zen Follower

Join Date:
Jan 2007
Location:
California
Posts:
328
Plugin Contributions:
0

Re: Log In To See Newest Products, but see all others if not

I have a thought, may or may not work and I'm very new and not a programmer. But, since you want only the new products to show when someone is logged in, would it not be simpler/easier to code something into the log-in to turn on the new products? Or generate a new products box?

Just a thought which may be way off base.

Cheryl

Cheryl

16 Feb 2007, 5:33 PM
#13
outlawlb avatar

outlawlb

New Zenner

Join Date:
Jan 2007
Posts:
86
Plugin Contributions:
0

Re: Log In To See Newest Products, but see all others if not

That might actually work.

17 Mar 2007, 1:33 AM
#14
outlawlb avatar

outlawlb

New Zenner

Join Date:
Jan 2007
Posts:
86
Plugin Contributions:
0

Re: Log In To See Newest Products, but see all others if not

Ajeh:

No matter how you do it, there are a lot of files to address ...

Where ever a select is done that is going to display products there has to be an added condition to manage the new products ... and only allow logged in customers to see them ...

Perhaps if you explained the point of allowing only logged in customers to see new products it will strike a spark with me on a better method to do this ...

I have been working on this but it has still been problematic:
The point would be from competitors from stealing original products until these products have become more common with the member customers.

What I am concerned with would be the competitors coming in and taking the product, copying it, and then selling it themselves. They can do this simply based on the images and the data.

I know the solution to this would be to require all people to just login, but then there would be no way for just interested customers to look around with the widely known items.

And that situation is what is needed to be avoided.

I hope this makes sense, and thank you for the help.