Page 1 of 3

[vQmod] - Force Login/Register to see site (1.5.x/2.x)

Posted: Sun Apr 29, 2012 9:06 am
by Qphoria
UPDATED for 3.x!
Supports OpenCart 1.5x - 3.0

This simply forces logged out customers to the account login/register page.
Customers won't be able to visit any other pages until they login.

So I'm releasing this as a vQmod for free.

How to do it
1. Install vQmod from http://vQmod.com if you haven't already
2. Upload the attached xml file to your vqmod/xml folder
3. In your store, Goto Admin->Setting->Design->Layouts
4. If you don't already have an "Account" layout, Create a new layout. Otherwise edit it:
Name: Account
Route: account/
5. Do not assign any modules to this layout.

That's it. Now people who aren't logged in will be redirected to the account/login page before they can access any other part of the site. There they can register, login, forgot password, etc. rendering my old customer login mod useless.

Re: [vQmod] - Force Login/Register to see site (1.5.x only)

Posted: Wed May 30, 2012 4:24 am
by norwall
I have upgraded to ver 1.5.3.1 and can not seem to get the Force Login work.

Re: [vQmod] - Force Login/Register to see site (1.5.x only)

Posted: Tue Jul 03, 2012 2:35 pm
by martigen
I tried it and it works perfect, however how can i make it that when someone registers i need to pre-approve the registration first in order to avoid anyone registering. Thank you

Re: [vQmod] - Force Login/Register to see site (1.5.x only)

Posted: Wed Jul 04, 2012 1:21 pm
by Qphoria
martigen wrote:I tried it and it works perfect, however how can i make it that when someone registers i need to pre-approve the registration first in order to avoid anyone registering. Thank you
Set that in the Admin->Sales->Customer Groups

Re: [vQmod] - Force Login/Register to see site (1.5.x only)

Posted: Wed Jul 04, 2012 2:16 pm
by martigen
Thank you, now it works perfect, much better than the one you had before.

Re: [vQmod] - Force Login/Register to see site (1.5.x only)

Posted: Wed Aug 15, 2012 6:59 am
by kismitt
Multi-store Environment for 1.5.1.3 - force login/register

Is there a way to have the same functionality as the admin login screen, but for customers to get to the store frontend base on their email address that they have register with that store?

For example:

share login screen -> CustA (automatically redirect and log onto) -> StoreA (base on email address and register store)
share login screen -> CustB (automatically redirect and log onto) -> StoreB

Currently, Qphoria Customer Login screen kind of does this but it doesn't log into the store it just redirect the url to the store. Then you would have to log in one more time to get to the storefront.

Therefore, If anyone has a mod or could customize Qphoria Customer Login screen to do this I would pay for their service or show me how to do it. I would greatly appreciate the help!!!

Re: [vQmod] - Force Login/Register to see site (1.5.x only)

Posted: Thu Aug 23, 2012 4:10 pm
by zedy_2000
hi, how the customer can be recorded using this module on the main page? What you need to add the code? Or where I need to change the code

Re: [vQmod] - Force Login/Register to see site (1.5.x only)

Posted: Tue Aug 28, 2012 11:34 pm
by martigen
After upgrading to 1.5.4.1 is not working anymore, do you have an updated version?

Re: [vQmod] - Force Login/Register to see site (1.5.x only)

Posted: Tue Sep 11, 2012 3:19 pm
by viswa.lak
If you want Connect with Gmail in your login page

This simple and yet powerful extension will follow your users to use gmail login to gain access to your online store.

Download Link:
http://www.opencart.com/index.php?route ... arch=Gmail

Thanks,
Viswanathan L
Saadhvi Technology

Re: [vQmod] - Force Login/Register to see site (1.5.x only)

Posted: Wed Sep 19, 2012 7:12 pm
by incan
Does it work in 1.5.4.1?

Re: [vQmod] - Force Login/Register to see site (1.5.x only)

Posted: Tue Oct 02, 2012 6:48 am
by zennit
i've added common and information to the skip array

Code: Select all

$skip = array(
'payment',
'feed',
'forgotten',
'login',
'register',
'common',
'information',
);
Which lets users view non shop pages. The problem is if I got the the root address www.domain.com it redirects to www.domain.com/index.php?route=account/login&SSL but when I click on home in the menu it goes to www.domain.com/index.php?route=common/home and shows the homepage ok. Is there a way to make the root www.domain.com address show the homepage and not redirect to the login?

Cheers, great script btw :)

Re: [vQmod] - Force Login/Register to see site (1.5.x only)

Posted: Wed Oct 10, 2012 4:38 pm
by zennit
Anyone able to help with this?

Re: [vQmod] - Force Login/Register to see site (1.5.x only)

Posted: Thu Oct 11, 2012 1:58 am
by Qphoria
zennit wrote:Anyone able to help with this?
As a silly guess.. try adding a blank in the array:

Code: Select all

$skip = array(
'payment',
'feed',
'forgotten',
'login',
'register',
'common',
'information',
''
);
I really don't expect it to work, but just curious if it would.

Re: [vQmod] - Force Login/Register to see site (1.5.x only)

Posted: Thu Oct 11, 2012 2:20 am
by zennit
nope :(

Re: [vQmod] - Force Login/Register to see site (1.5.x only)

Posted: Thu Oct 11, 2012 2:26 am
by zennit
As a hack I supposed I could redirect the root to index.php?route=common/home

Re: [vQmod] - Force Login/Register to see site (1.5.x only)

Posted: Thu Oct 11, 2012 2:37 am
by zennit
Maybe i'm looking at this the wrong way, all I want is them to be routed to the login if they access anything with

Code: Select all

?route=product

Re: [vQmod] - Force Login/Register to see site (1.5.x only)

Posted: Wed Oct 24, 2012 3:56 am
by a6bains
Hi, I tried this and it works great! Thanks!

Just one question. I wanted to change the "common/home" link in the XML file to link to a particular Information Page. What would I change it to in order to do so?

Thanks in advance!

Re: [vQmod] - Force Login/Register to see site (1.5.x only)

Posted: Thu Dec 13, 2012 6:03 pm
by cuneytc
Hi, I tried it and it works like a charm.
But I have a question, I would be so appreciate if you answer.
Is there a way to show only a complete blank screen with login box instead of header and footer?

Thanks a lot by now

Re: [vQmod] - Force Login/Register to see site (1.5.x only)

Posted: Wed Dec 19, 2012 5:06 pm
by DannyMacD
running a store with 1.5.4.1 really need this feature.. cant find an extension for it.

any chance anyone has this working?

Re: [vQmod] - Force Login/Register to see site (1.5.x only)

Posted: Sat Dec 22, 2012 12:27 am
by Qphoria
DannyMacD wrote:running a store with 1.5.4.1 really need this feature.. cant find an extension for it.

any chance anyone has this working?
It's in the first post and works fine.