yacorro Posted August 6, 2013 Share Posted August 6, 2013 Hi, I'd like to ask You guys, if it is possible for a customer to login directly from any page? Here's details: I've copied login and password inputs from authentication.tpl to user info module (blockuserinfo.tpl). I've also copied the "login" button. So on every page i got login and password form in tehe right top corenr. But nothing happens after I clik it (ofc. passing proper login and pass). Thx for any suggestions. Link to comment Share on other sites More sharing options...
vekia Posted August 6, 2013 Share Posted August 6, 2013 well, techically it is possible to create login form, but you have to be sure that you use correct action="" for <from> it is possible to check your website with this new form? Link to comment Share on other sites More sharing options...
yacorro Posted August 6, 2013 Author Share Posted August 6, 2013 Hi, Thx for fast reply. I've made some progres: I'm able to login form any page but...it redirect me to authentication page. I know it is beacuse of action You mentioned above. Here it is: <form action="{$link->getPageLink('authentication', true)}" method="post" id="login_form" class="std"> So now the question is : what should I place instead of 'authentication'. Leaving it blank doesnt work. Some kind of "current page" would be solution. Thx Link to comment Share on other sites More sharing options...
vekia Posted August 6, 2013 Share Posted August 6, 2013 can you show final code from page source ? correct action="" value appears there? Link to comment Share on other sites More sharing options...
vekia Posted August 6, 2013 Share Posted August 6, 2013 thanks for the PM and url to your website i created test account ([email protected]) and i tried to log in with form on your homepage (on top) i logged without any problems... hmmmm? Link to comment Share on other sites More sharing options...
yacorro Posted August 6, 2013 Author Share Posted August 6, 2013 Yeah its fine but after it redirected You to account info page right? I'd like to avoid this and stay at the page I'm at right now. Some kind of global variable like "current_page" would be great. I'v tried to put "{$smarty.server.REQUEST_URI}" instead of "{$link->getPageLink('authentication', false)}" in form action="" but nothing happens after press "Login" button. Link to comment Share on other sites More sharing options...
vekia Posted August 6, 2013 Share Posted August 6, 2013 in this case you have to modify the form and authentication controller to the form add additional param to the url: &back=url_to_the_page (page where customer fills and sends the form) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now