Results 1 to 10 of 32

Threaded View

  1. #1
    Join Date
    Sep 2009
    Posts
    13
    Plugin Contributions
    0

    Default Password Protected Categories (PPC) - Support Thread

    This is my first editing experience with ZenCart, and I would really appreciate it if a few of you gurus out there would try applying this and give it a once-over to see if it's all done right. I don't really have time to do much support for this, I just did it because I needed it myself, and I wanted to share it with the community. So if anyone else out there gets the gumption to take this over, I'd be happy to let you.

    Anyways, below is the official description (from the readme file)

    The install files are attached.

    ##########################################

    Password Protected Categories!

    Current Version 1.0

    Work so far done by Stevish

    ##########################################

    This mod creates a new field for categories in the admin called "Password". When this field is left blank, nothing is changed from a basic install of ZC. When a password is entered, that category becomes locked, and neither the category nor any of its contained products (just in case someone gets a direct link to a product) can be viewed without the password.

    Due to the use of the $_Session variable, this is based on a per-visit access. This also means that anyone who has the password, whether or not they have a user, can gain access to the locked category. If a visitor enters the correct password, and then logs in or registers, they will not have to re-enter the category password until their session expires.

    This addon was designed with photographers (like my wife) in mind. It is perfectly suited for taking private pictures, putting them in a categore (say "Mike & Trish Wedding"), then password protecting them. You can then give Mike and Trish the password, and they can order prints right from your site, as well as handing out the password to all their family and friends so they can buy prints directly from you as well. All the while, no strangers browsing your site can even see what Mike and Trish look like without the password.


    LIMITATIONS:
    This is fairly simply done as I'm brand new to ZC. I tried to make sure I kept the code consistent with the rest, and as a result, multiple languages can be supported (though I only know english...). So because of my lack of knowledge and wanting to keep it simple, I ended up with the following limitations:
    1. The password is stored in plain text. This should not be too big a deal, because if someone is able to hack your database, and all they gain is access to "private" pictures (which they still have to pay for if they want them), there's really no harm done.
    2. Failed password attempts are not logged. Someone could sit at the site all day trying password after password until they get it right. And even if they try a million times, nobody will even know they were trying. Again, the amount of work this would take vs the "reward" is not very tempting even for the most desperate hackers.
    3. I wanted to add a little lock symbol next to the locked categories, but I never got around to it. I just don't see it being worth the work for me.


    If anyone has the time/know-how to fix these limitations, or add more functionality, feel free to contact me (stevish [at] gmail [dot] com) with what is required and I will get this thing updated and give you credit. I also might just hand off the whole project to you if you are willing to take it on. I just don't think I'll have the time to provide support for this.
    Attached Files Attached Files

 

 

Similar Threads

  1. v151 Password Protect Categories by Ausgirl [Support Thread]
    By Ausgirl in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 20 Feb 2016, 06:33 PM
  2. v150 Admin Password Change Alert Message Display -- Support Thread
    By lat9 in forum All Other Contributions/Addons
    Replies: 13
    Last Post: 24 Dec 2015, 04:53 PM
  3. v151 Password Protected Categories Question
    By KrisTX in forum General Questions
    Replies: 5
    Last Post: 25 Sep 2014, 02:30 PM
  4. Products/Categories URLs Exporter Support Thread
    By joshuayang in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 28 Mar 2010, 05:33 PM
  5. Password Protected Categories
    By shonny in forum General Questions
    Replies: 5
    Last Post: 11 Jan 2008, 08:45 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR