If this is your first visit, check our documentation. To post, register or login.

Can I password protect a catagory?

Started by medicman47 on 15 Feb 2007, 5:34 PM · Views: 12,254

Results 21 to 28 of 28
21 Sep 2009, 4:16 PM
#21
javier avatar

javier

New Zenner

Join Date:
Jun 2007
Posts:
79
Plugin Contributions:
0

Post #21 by javier

stevish:

I think the OSCommerce contribution protects ALL the password protected categories with the same username/pass combo, meaning that Joe and Sue could access not only their own wedding pics, but also John and Rachel's pics (not a good situation).

You can password protect categories with the same password for all or set up passwords for each category.

11 Nov 2009, 12:37 AM
#22
prestigeproducts avatar

prestigeproducts

New Zenner

Join Date:
Nov 2009
Posts:
3
Plugin Contributions:
0

Post #22 by prestigeproducts

mrgtih2:

:clap:I just did this for my site! Good news for everybody!

I installed the HideCategories addon from zen cart downloads,
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=391

Then,

I found this contribution (password protect categories)on oscommerce addons.oscommerce.com/info/6800

It is fairly straight forward and they work great together for this purpose!:clap:

You can leave the category public if you want and when someone clicks the link they will have to enter a password to access the page. Or you can hide the category and use a direct URL to it.

Hope this can Help someone!

You helped me! Thanks! :clap:

7 May 2010, 6:31 AM
#23
ed7501 avatar

ed7501

New Zenner

Join Date:
Jun 2009
Location:
Hong Kong
Posts:
12
Plugin Contributions:
0

Post #23 by ed7501

stevish:

Ok, I've come up with a Zen-cart specific add-on for this problem.

http://www.zen-cart.com/forum/showthread.php?t=137248

It involves one line of a SQL patch, one new file, and 7 files to edit. But it's simplicity at work, and I haven't found a problem with it yet, so let me know what you think.

Hi there, I just downloaded your add-on and trying to install it right now and have run into my first problem while adding the tpl_category_pass_check.php" file.

I don't have a "templates" folder in my CUSTOM folder. In my CUSTOM folder, there is only a CSS folder and an IMAGES folder.

The path to my CUSTOM folder is catalog/includes/templates/custom

Am I even in the right folder?

7 May 2010, 2:15 PM
#24
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #24 by ajeh

Your templates and overrides directory is something you "build" on based on your changes to files ...

If you look at the structure of:
/includes/templates/template_default

you will see all of the directories and files used related to the template ...

You can add the directories and files you need to your custom directory:
/includes/templates/your_template_dir

as you need them ...

The idea is to only add directories and files that you actually are customizing ...

Otherwise, what is not found there will use the defaults in:
/includes/templates/template_default

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!

15 Nov 2010, 8:23 AM
#25
d1c2w3 avatar

d1c2w3

New Zenner

Join Date:
Nov 2010
Posts:
3
Plugin Contributions:
0

Post #25 by d1c2w3

stevish:

Ok, I've come up with a Zen-cart specific add-on for this problem.

http://www.zen-cart.com/forum/showthread.php?t=137248

It involves one line of a SQL patch, one new file, and 7 files to edit. But it's simplicity at work, and I haven't found a problem with it yet, so let me know what you think.

This add-on works great, except one hiccup I discovered with it. I hope someone out there can advise on how this can be corrected or worked around.

I created a category, applied a PW, and it works fine. But, when I create any sub-cats within the main category, the PW prompt does not appear. It just lets you in the category, even though from the admin side there is a PW listed in the PW field of the category details screen.

I can create a main cat + multiple subs, PW protecting each sub individually, but this is not really user friendly for the clients to have to re-enter the same password multiple times.

Just FYI for why I need this - It's also for a photographer's store. The main category (client's name/ID) needs to be PW protected. Within the client's category would be sub-cats of prints, albums, novelty gifts, etc. and then within each of those would need to be even more sub-cats, ie: Albums>small, Albums>medium, Albums>large, or Novelties>keychains, Novelties>coasters, Novelties>coffee mugs, etc.

I realize I could simply have a single category PW protected & within that have ALL the products available, various print sizes, various album types, but it would be a much better presentation & user experience if I could organize the products as above.

I set up 2 client areas on my store for you to view if needed, both PW protected. Gallery #1 has no sub-cats, Gallery #2 does. Any advice would be greatly appreciated! The link is:http://boundlessbeautystudio.com/store/index.php?main_page=index&cPath=2

I hope someone can help!
Thanks in advance,

Dan

16 Nov 2010, 4:10 AM
#26
d1c2w3 avatar

d1c2w3

New Zenner

Join Date:
Nov 2010
Posts:
3
Plugin Contributions:
0

Post #26 by d1c2w3

FOLLOW UP Success!

For those who may have been having a similar issue to my above post...

I may have committed a ZC sin, but I took the above post of Javier saying the OSC add-on does protect main & sub cats and ran with it.

I found the OSCommerce add-on & downloaded it. http://addons.oscommerce.com/info/6800

It WILL apply to ZC, too! Luckily, if I understand right, ZC was derived from OSC and the OSC PW add-on file makes modifications to the SAME files in OSC as it does in ZC - the file names (and folder navigations in a standard install) are all identically named!

The one thing to keep in mind though is the line # of where to modify the index.php code is in a slightly different location on the ZC index.php than the OSC index.php.

The OSC specific instructions say to modify the index.php file on or about line 33 after ```
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT);


Instead, for ZC, you should add the line of code in the instructions right below the following, which you should find on or about lines 28 - 38.

$language_page_directory = DIR_WS_LANGUAGES . $_SESSION['language'] . '/';
$directory_array = $template->get_template_part($code_page_directory, '/^header_php/');
foreach ($directory_array as $value) {
/**

  • We now load header code for a given page.
  • Page code is stored in includes/modules/pages/PAGE_NAME/directory
  • 'header_php.php' files in that directory are loaded now.
    */
    require($code_page_directory . '/' . $value);
    }

And that's the only difference. Follow the instructions included with the OSC add-on as normal (including uploading the password_protect01.php file to the store/includes/ folder of ZC) and you should have it.

Not that I'm knocking Stevish's hard work creating the password protect for ZC - I really liked what he had made, it just didn't quite do what I needed. The thing I miss about Stevish's add-on was that it could all be done from the admin. With the OSC add-on, you do have to hack the code for each new password and/or category or sub-cat that you want to protect, but its not that huge a deal, though. (And yes, as Javier said, it CAN protect main cats & sub cats with the same or unique user name/pw combos with minimal effort)

(NOTE: To help repent my ZC sin, I did a test install of OSC on my site to see if the OSC password add-on worked the way I needed it to. I considered staying with OSC, since the PW add-on worked, but after going through the OSC admin, I realized I REALLY liked ZC much, much better, which prompted me to stare at the code for awhile to see if they were interchangeable.)

Happy Zenning!

Dan
2 Feb 2011, 10:43 PM
#27
melissamiller8 avatar

melissamiller8

New Zenner

Join Date:
Jan 2011
Location:
Iowa
Posts:
87
Plugin Contributions:
0

Post #27 by melissamiller8

Anything new on this subject of password-protecting a store category? I need this for wholesale vs retail.

24 Jun 2011, 11:11 AM
#28
party_girl avatar

party_girl

New Zenner

Join Date:
Jun 2011
Posts:
1
Plugin Contributions:
0

Post #28 by party_girl

I'm also looking for an up to date an addon for password protecting a category is there an up to date maintained version available? Currently using v.1.3.8a