vdub Posted January 16, 2009 Share Posted January 16, 2009 I am new to PrestaShop and have been using virtuemart. I have imported the virtuemart customers information into the Prestashop database. However the password is proving a problemIs is possible to run some php that when a returning customer types their password it will be verifyed against Virtuermart format and automatically converted to Prestashop format on their first login.I have come across a similar solution for Zen-Cart to Virtuemart //AKS> Check for ZC password $query = "SELECT password FROM #__users WHERE username = '$username'"; $this->_db->setQuery( $query ); $this->_db->loadObject( $aks); $aks_stack = explode(':', $aks->password); if (sizeof($aks_stack) == 2) { $orgpasswd = strval( mosGetParam( $_POST, 'passwd', '' ) ); if (md5($aks_stack[1] . $orgpasswd) == $aks_stack[0]) { // Valid password $query = "UPDATE #__users SET password = '$passwd' WHERE username = '$username'"; $this->_db->setQuery( $query ); $this->_db->query(); } } //AKS< // query used for login via login module Link to comment Share on other sites More sharing options...
emanuele@crmvillage Posted March 12, 2012 Share Posted March 12, 2012 did you found any solution? Link to comment Share on other sites More sharing options...
revolving Posted May 9, 2012 Share Posted May 9, 2012 hello, i'm also very interested by the solution of your problem. Thanks a lot for your share... Franck Link to comment Share on other sites More sharing options...
Zimba Posted January 28, 2013 Share Posted January 28, 2013 +1 Anyone knows were to find a password patch to handle VM hash vs PS hash ? Link to comment Share on other sites More sharing options...
orojnar Posted February 27, 2014 Share Posted February 27, 2014 me too...So did someone have already the solution? 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