Page 1 of 2 12 LastLast
Results 1 to 10 of 32

Hybrid 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

  2. #2
    Join Date
    Oct 2008
    Posts
    24
    Plugin Contributions
    0

    Default Re: Password Protected Categories (PPC) - Official Thread

    Thank you so much for this contribution. Installed and works flawless with hideCategories mod (just in case someone stumbles upon the hidden category or product).

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

    Default Re: Password Protected Categories (PPC) - Official Thread

    Quote Originally Posted by kachana View Post
    Thank you so much for this contribution. Installed and works flawless with hideCategories mod (just in case someone stumbles upon the hidden category or product).
    Good! I'm glad to hear there's no conflicts with that mod as they'll probably be used together a lot.

  4. #4
    Join Date
    Sep 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: Password Protected Categories (PPC) - Official Thread

    Hi there, this sounds very promising for a site I'm setting up. how does this perform in connection with the search function? Does the 'hide categories' deal with keeping them out of that?

  5. #5
    Join Date
    Sep 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: Password Protected Categories (PPC) - Official Thread

    Actually i've just read that it can be hidden from the search with the other mod. In which case I think I better get cracking! Thanks for posting this btw, it will come in very handy for building a trade section to my clients site.

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

    Default Re: Password Protected Categories (PPC) - Official Thread

    Quote Originally Posted by Noncents View Post
    Hi there, this sounds very promising for a site I'm setting up. how does this perform in connection with the search function? Does the 'hide categories' deal with keeping them out of that?
    Thanks for the comment, I need to edit this to make it so it will lock people out from searches as well... though I'm not sure how I will do that. I guess the current fix is to use the "Hide Categories" mod along with this one.

  7. #7
    Join Date
    Jul 2009
    Posts
    48
    Plugin Contributions
    0

    Default Re: Password Protected Categories (PPC) - Official Thread

    I'm trying to install your mod, but can not find some of the directories you say need to be modified.

    /includes/languages/english/CUSTOM/index.php
    /includes/languages/english/CUSTOM/product_info.php
    /includes/templates/CUSTOM/templates/tpl_index_product_list.php
    /includes/templates/CUSTOM/templates/tpl_product_info_display.php

    It appears I do not have a CUSTOM folder in my install. Is the mod version specific or am I missing something?

    Any help would be greatly appreciated!!

  8. #8
    Join Date
    Jul 2009
    Posts
    48
    Plugin Contributions
    0

    Default Re: Password Protected Categories (PPC) - Official Thread

    Ok I'm stupid....

    I cannot find some of the lines to change

    /includes/languages/english/CUSTOM/index.php
    -->define('TEXT_PRODUCT_MODEL', 'Model: ');

    /includes/languages/english/CUSTOM/product_info.php
    -->define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

    I cannot find the following files
    /includes/templates/CUSTOM/templates/tpl_index_product_list.php
    /includes/templates/CUSTOM/templates/tpl_product_info_display.php


    Am I missing something?

    Any help would be greatly appreciated!!

  9. #9
    Join Date
    Jul 2009
    Posts
    48
    Plugin Contributions
    0

    Default Re: Password Protected Categories (PPC) - Official Thread

    Ok, I found the files but when I go to categories, I can't add a new category. I don't have the option to add anything...

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

    Default Re: Password Protected Categories (PPC) - Official Thread

    Quote Originally Posted by robbinsgj View Post
    Ok, I found the files but when I go to categories, I can't add a new category. I don't have the option to add anything...
    Zen cart will only add categories if there are no products in that category. So if you've added products in the "root" category, you may have to delete them and add some categories instead... I'm not really sure if there's an easier way to do that.

 

 
Page 1 of 2 12 LastLast

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