Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Use Category Meta Info to Test for Adult Category?

Use Category Meta Info to Test for Adult Category?

Locked

Views: 1,740

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
16 Jul 2006, 4:42 AM
#1
dohertywa avatar

dohertywa

New Zenner

Join Date:
Jul 2006
Posts:
3
Plugin Contributions:
0

Use Category Meta Info to Test for Adult Category?

Hi All:

I am wondering if I can use category meta info to redirect the shopper to an age verification page, testing for the presence of the meta info. My shop has a section of adult items and I would like to redirect anyone who clicks on it, to a verification page, which only comes up once per session.

Any help, advice and suggestions are greatly appreciated.

TVKIA,
Adam

25 Jul 2006, 7:39 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Use Category Meta Info to Test for Adult Category?

Sure can.

  1. retrieve the category-meta-info for the category (or even the product) being viewed
  2. check whether it contains the word "adult" (or whatever you choose)
  3. check whether the there has been a verification during this session by checking a session variable
  4. if okay, proceed ... if not, set a navigation snapshot and redirect to verification page
  5. verification page will simply set the session variable upon confirmation, and restore the navigation snapshot to return to the page they came from

Could do this for categories or products

25 Sep 2006, 11:37 AM
#3
dohertywa avatar

dohertywa

New Zenner

Join Date:
Jul 2006
Posts:
3
Plugin Contributions:
0

Re: Use Category Meta Info to Test for Adult Category?

Thanks DrByte.

I must admit though, I am drawing a blank as to how I might go about getting the meta info for the category or product, and how I might do that re-direct. I've been through the forums, and the wiki and while the information I seek may be in those places I cannot seem to find it. :dontgetit

Again any assistance is greatly appreciated.

TVKIA,
dohertywa

14 Nov 2006, 2:24 PM
#4
mteicher avatar

mteicher

New Zenner

Join Date:
Oct 2006
Location:
Mechanicsburg, PA
Posts:
33
Plugin Contributions:
0

Re: Use Category Meta Info to Test for Adult Category?

I am looking for something similiar, I have some products that I would like to restrict from <18 from purchasing, is there a simple way of accomplishing this?