Page 1 of 1

Lock site until user login

Posted: Sat Nov 11, 2017 8:29 pm
by hrevis25
Hello,
I have the following question.
I want to create a B2B site using Opencart. The only thing i want about the site is for users to have access to the site after logging in! In general when a customer enter my site e.g. www.testb2b.com to see a login page and after entering the correct credentials to be able to use the site.

Is this possible?

Thank you in advance!

Re: Lock site until user login

Posted: Sat Nov 11, 2017 8:37 pm
by webcorvo
Yes is possible.
Just crate a php file with one login and pwd form and then redirect to OC ;o)

Re: Lock site until user login

Posted: Sat Nov 11, 2017 9:15 pm
by thekrotek
The easiest way is to restrict access to your site via .htaccess. It's not as pretty as additional login page, but does the job very well and commonly used.

Re: Lock site until user login

Posted: Sat Nov 11, 2017 9:32 pm
by hrevis25
thekrotek wrote:
Sat Nov 11, 2017 9:15 pm
The easiest way is to restrict access to your site via .htaccess. It's not as pretty as additional login page, but does the job very well and commonly used.
Any help on that please??

Re: Lock site until user login

Posted: Sat Nov 11, 2017 9:58 pm
by thekrotek
Just google for "restrict site access htaccess" or something like that.

Re: Lock site until user login

Posted: Sun Nov 12, 2017 5:30 am
by IP_CAM
Or then, use something like this, it's only 20 bucks ! :D
only logged
Vqmod is required to use this extension
This extension blocks all customers that are not logged.They can see only register,login and
success page after login. When he will try to access to other page and he is not loged he will
be redirected to login/register page
There are 2 extensions. Use only one. With first guest can't see anything until login.
With the second Mod, he can see information pages including contact us Page.
Demo: http://demo.plusmotiv.com/onlyloged
---
https://www.opencart.com/index.php?rout ... n_id=19065
---
And this OC v.3.x Mod even comes for free! And I just found out, that it works
perfect with my OC v.1.5.6.5_rc as well ! :D

Opencart Members Only
This extension will force users to login or register before they can
view any part of your website.
If they are not logged, then it will redirects them to the login page.
---
https://www.opencart.com/index.php?rout ... n_id=27897
---
Ernie

Re: Lock site until user login

Posted: Tue Mar 05, 2019 6:33 pm
by stavrosa
Thanks for that Ernie!
IP_CAM wrote:
Sun Nov 12, 2017 5:30 am
Or then, use something like this, it's only 20 bucks ! :D
only logged
Vqmod is required to use this extension
This extension blocks all customers that are not logged.They can see only register,login and
success page after login. When he will try to access to other page and he is not loged he will
be redirected to login/register page
There are 2 extensions. Use only one. With first guest can't see anything until login.
With the second Mod, he can see information pages including contact us Page.
Demo: http://demo.plusmotiv.com/onlyloged
---
https://www.opencart.com/index.php?rout ... n_id=19065
---
And this OC v.3.x Mod even comes for free! And I just found out, that it works
perfect with my OC v.1.5.6.5_rc as well ! :D

Opencart Members Only
This extension will force users to login or register before they can
view any part of your website.
If they are not logged, then it will redirects them to the login page.
---
https://www.opencart.com/index.php?rout ... n_id=27897
---
Ernie

Re: Lock site until user login

Posted: Wed Mar 06, 2019 10:46 am
by IP_CAM
Your'e Welcome ! ;)
Ernie