Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2008
    Posts
    170
    Plugin Contributions
    0

    Default Password Protecting a Category URL?

    I don't know if this is really doable with ZC but here's my dilemma. I have a series of categories to my store and two of them need to be password protected so not everyone can shop in this section of the store. For example:

    http://www.jamwestfoods.com/store/in...=index&cPath=5

    Is open to everyone.

    http://www.jamwestfoods.com/store/in...=index&cPath=6

    Is supposed to be password-protected before you can see the content in this area since it's for wholesalers only and the items are different to boot.

    So is it possible to assign a password prompt to appear when someone tries to attain this URL?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Password Protecting a Category URL?

    This would take some customization to control all of the products being displayed everywhere so that unless logged in and marked as a wholesaler no one can see the products in any section for New, Sales, Specials, Featured, Upcoming, Also Purchased etc. etc.

    This would take a bit of thought, but it can be done ...

    What version of Zen Cart are you running?
    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!

  3. #3
    Join Date
    Jun 2008
    Posts
    170
    Plugin Contributions
    0

    Default Re: Password Protecting a Category URL?

    I'm using 1.3.8. So it's the latest as of 9/21/08.

    I did check out some similar threads and found this one:
    http://www.zen-cart.com/forum/showth...ssword+protect

    and followed the code where I inserted:

    if (!$_SESSION['customer_id'] && ($cPath_new = '6')) {
    $_SESSION['navigation']->set_snapshot();
    zen_redirect(zen_href_link(FILENAME_LOGIN, '', 'SSL'));
    }

    prior to:

    return 'cPath=' . $cPath_new;

    on the file: /includes/functions/functions_categories.php

    But it didn't change anything. I uploaded the new file and clicked on Wholesale-->Retail which takes you to http://www.jamwestfoods.com/store/in...=index&cPath=6

    and nothing changed. Took me right to the page. Which isn't what I want at all.

 

 

Similar Threads

  1. v150 Password protecting subcategories?
    By forbish07 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 6 Sep 2012, 03:51 AM
  2. Password Protecting my site
    By nic678dog in forum General Questions
    Replies: 3
    Last Post: 31 Mar 2009, 06:02 PM
  3. Password Protecting a subdomain?
    By datatv in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 2 Oct 2008, 12:58 AM
  4. Password protecting a category
    By frank18 in forum General Questions
    Replies: 10
    Last Post: 3 Aug 2008, 10:50 AM
  5. Password Protecting a category
    By jewelsbyjewls in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 27 Nov 2006, 07:52 AM

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