fransjaeger Posted February 4, 2015 Share Posted February 4, 2015 (edited) Hi I need prestashop to be more userfriendly on login. Lets say a user is logged out and visit this url/history?DoThisAndDoThat=1&id_order=12he will then be redirected to auth login/auth?back=historyand after login he will be redirected to/history This means that this is lost during login: ?DoThisAndDoThat=1&id_order=12 Result is, that Im linking to something, but leading customer to something else. Not cool !!! How to fix this problem? Edited February 4, 2015 by michaelhjulskov (see edit history) Link to comment Share on other sites More sharing options...
fransjaeger Posted February 4, 2015 Author Share Posted February 4, 2015 I made this solution: https://gist.github.com/michaelhjulskov/e9ad06a5218ab1ff2bb1 Please comment if you can improve it or if you see any conflictings in it, thanks Hope it helps others with taste for human friendly solutions 1 Link to comment Share on other sites More sharing options...
feuerbach Posted April 2, 2015 Share Posted April 2, 2015 Unfortunately your solution does not work on my website - I must admit we have a "Private Sales" module and a "Social Login" module installed, so this might be a bit of a conflict. It's still a big turn-down for Prestashop: a simple ajax login without all this troubles was implemented even on Magento like 2 years ago... Link to comment Share on other sites More sharing options...
fransjaeger Posted April 2, 2015 Author Share Posted April 2, 2015 So help me improve it hire a developer and share the fix with me I spent time on this hack and shared it, and i aggree its not okay as is. but i tried my best with this and you can maybe contrib now a bit too Link to comment Share on other sites More sharing options...
fransjaeger Posted April 2, 2015 Author Share Posted April 2, 2015 Sorry im not wanting to be rood or scare you away, im just tired of nobody taking it serious to share. I share a lot and i totally aggre presta stinks in many ways, but lets solve things together okay. Your maybe can improve my code just a little bit now or you got a better idea, cool. OR at least write how to reproduce what is not working correctly. Link to comment Share on other sites More sharing options...
feuerbach Posted April 3, 2015 Share Posted April 3, 2015 Sorry im not wanting to be rood or scare you away, im just tired of nobody taking it serious to share. I share a lot and i totally aggre presta stinks in many ways, but lets solve things together okay. Your maybe can improve my code just a little bit now or you got a better idea, cool. OR at least write how to reproduce what is not working correctly. No offence taken, I am just disappointed because of this and because I tried all the solutions/ideas posted here and none of them worked (a lot were meant for PS 1.5 and I tried to adapt them). Obviously I will share the working one (if I find one), but after 8 months working on Prestashop I really feel trapped... Link to comment Share on other sites More sharing options...
fransjaeger Posted May 12, 2015 Author Share Posted May 12, 2015 Anyone who can improve my code is welcome - i too sometimes experience that its not redirecting correctly. 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