osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Password Protect a Single Category

This is a discussion on Password Protect a Single Category within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hey all! First I am totally new at thisso be kind to me I am really hoping someone can help ...



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Reply

 

LinkBack Thread Tools
  #1  
Old 05-29-2009, 04:55 AM
Lurker
 
Join Date: May 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
luvubeauty is on a distinguished road
Default Password Protect a Single Category

Hey all! First I am totally new at thisso be kind to me
I am really hoping someone can help me with this because it will save me loads of work (not to mention I have been looking for days!) and I am the new subscriber of websites for dummies books if that says anything!
I am looking for a way to password protect a single category. I would like to have a wholesale category on my main site and protect it so only ppl with the username and password (ie wholesalers) have access to the contents. I have tried the sppc and creating a second store but I am just not that literate to get anywhere. I did find a girl who did this but didn't really go into detail about how. This is what she posted if anyone can explain this alittle better for me!

"I think I got it figured out. What I ended up doing was creating a category named "Wholesale". Then setting up a wholesale password string in languages/english.php. I changed includes/boxes/categories.php to only display the "Wholesale" category if the user's password matches the special wholesale password string I set up in english.php. I also had to bypass encryption of that particular password by modifying password_funcs.php and account_password.php. By using the password instead of user name for displaying the "Wholesale" category, any number of user accounts can access it if I just give them the preselected wholesale password.
It may not be too elegant, but it was fairly simple and is working great."

Thank you all in advance!
Tira
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 05-31-2009, 03:05 AM
pgmarshall's Avatar
osCMax Development Team
 
Join Date: Feb 2009
Location: London
Posts: 948
Thanks: 59
Thanked 192 Times in 165 Posts
Rep Power: 11
pgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to behold
Default Re: Password Protect a Single Category

Try looking at this

Basically you could have two stores pointing at the same database - one for your wholesalers and the other for your retail customers.

Might be worth a look,
__________________
pgmarshall
_______________________________
Test Site: www.cottonbarn.info
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 06-01-2009, 09:22 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 2,681
Thanks: 12
Thanked 214 Times in 196 Posts
Rep Power: 20
jpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud of
Default Re: Password Protect a Single Category

All you need to do is install category for groups

Hide products from customer groups for SPPC

Which will do EXACTLY what you want. They have to use the user login and be part of the a certain "group" like "Wholesale" to see items in that category.
__________________
JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Password protect entire shop michael_s New osCommerce Contributions 0 04-19-2008 03:13 PM
Password Protect Admin michael_s New osCommerce Contributions 0 12-28-2007 05:32 PM
Password Protect Admin michael_s New osCommerce Contributions 0 03-30-2007 07:52 AM
Password Protect Admin michael_s New osCommerce Contributions 0 03-26-2007 10:13 PM
Password Protect Your Admin Directory michael_s New osCommerce Contributions 0 02-23-2007 08:10 PM


All times are GMT -8. The time now is 09:09 AM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design