Jump to content
tunetti

Password Protect private Shop for 2.3

Recommended Posts

Trying to install the password protect addon to protect entire shop. I also have the member approval addon installed. The addon was created for 2.2, I am installing on 2.3 and get the following error:

 

When you click on continue button for creating a new account, it does nothing. Seems to refresh the page.

 

 

http://classicbeautysupply.com/oscom/login.php

Share this post


Link to post
Share on other sites

An add-on built for osC 2.2 is unlikely to properly install on 2.3, and will have to be modified by a programmer. What are you trying to accomplish here? That no one except signed-on members can see your products (much less fill the cart)? I think I've heard of add-ons to do that. There may also be add-ons that suppress prices so that competitors can't spy on you. That no one can get past the initial screen without an ID and password? That could be done with your hosting control panel to .htaccess password protect directory access (separate IDs and passwords from the member/customer login within osC). It's a lot of work to issue and revoke such IDs, and customers have to log in twice, so I would suggest that you not go that route.

Share this post


Link to post
Share on other sites

you could just add a tep_session_registered into all files other than;

 

login.php

and

create_account.php

 

That should do it ? Look at how this is done in (for example) account.php.


Help shape the future of Phoenix; join the Phoenix Club

Share this post


Link to post
Share on other sites

I want to restrict access to entire store unless they have an account that has been approved using the member approval add-on. I am going to try the tep_session_registered approach.

 

If I can't find a solution, I may try the hidden price approach. This a beauty supply store so all customers must first be verified as licensed beauticians.

Share this post


Link to post
Share on other sites

Yes, it works. I added the following to all pages except login and create_account (many already had code).

 

if (!tep_session_is_registered('customer_id')) {

$navigation->set_snapshot();

tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));

}

 

Thank you so much for your help.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×