You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Is there any way I can set the store to go to the Account Login page instead of the storefront page?
So instead of http://name.com/store it would go to https://name.com/AccountLogin ?
Was thinking htaccess, but worried that might affect category navigation.
Offline
You can change the default application to System/Core, and the default namespace to 'login', however I wouldn't recommend it. Probably a better approach is to replace your HTML splash page content with this:
<?php if (!($this->globals('core_user.id'))) {return $this->include_namespace('core', 'login');} else {return $this->include_namespace('core', 'accountconf');} ?>
It will present a login screen on your splash page when accessed by non-logged-in users and the account overview for logged-in users. The bad thing about forcing the login page as the homepage is that the login page auto-logs-out users who access it who are logged in. So don't do that. My suggestion is safe.
Offline
That worked great. Now, how do I add some text below the login content? I need to add a line of verbiage and it needs to be below the username / password content. I can easily add it above, but it's not working below.
Offline
<?php if (!($this->globals('core_user.id'))) { $this->include_namespace('core', 'login'); print 'text after login!'; } else { $this->include_namespace('core', 'accountconf'); print 'text after account conf!'; } ?>
No real need for the 'return' statements there.
Offline
Thanks Nick. Worked like a charm!
Offline
One last (hopefully) request on this subject. If someone logs out (domain.com/AccountLogout)and then goes to log back in (domain.com/AccountLogout) how would I add some text to those pages? I need to add one line of text below the login section of those pages.
Offline
Thanks. Got it and working great!
Offline