Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2006
    Posts
    3
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default 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
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jul 2006
    Posts
    3
    Plugin Contributions
    0

    Default 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.

    Again any assistance is greatly appreciated.

    TVKIA,
    dohertywa

  4. #4
    Join Date
    Oct 2006
    Location
    Mechanicsburg, PA
    Posts
    33
    Plugin Contributions
    0

    Default 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?

 

 

Similar Threads

  1. Bulk Upload Category Description & Meta Tag Info for Category and Product Level
    By kikboxr777 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 25 Jan 2011, 04:29 AM
  2. Use category images but not have them show up in category
    By miabullitt in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 6 Sep 2010, 02:21 PM
  3. category info for specific category only
    By ctcentralinfo in forum Basic Configuration
    Replies: 5
    Last Post: 11 May 2008, 01:16 AM
  4. Replies: 9
    Last Post: 3 Mar 2008, 04:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg