Cart Emptied on forgot Password Reset - v7.0.4

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
Intelliflex
Lieutenant (LT)
Lieutenant (LT)
Posts: 78
Joined: Tue Feb 17, 2004 7:51 pm

Cart Emptied on forgot Password Reset - v7.0.4

Post by Intelliflex » Fri Apr 23, 2010 11:42 pm

Just upgraded a site from 7.0.0 to 7.0.4 a week ago, and are having customer complaints that they went to checkout, couldn't login, clicked the forgot password, reset the password through the email link, and their cart was empty when they logged in. Since several customers indicated they spent significant time shopping, they were very frustrated losing what they had in the cart. I was able to recreate this issue.

The abandoned baskets increased from several a day upto 50. Both issues started around the time of the update. Some customers said that they knew their password, but the system kept saying wrong password. Sales have dropped significantly in the same time period as well.

Anyone else having any of these issues?

Thanks in advance for your time...
Dave

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Cart Emptied on forgot Password Reset - v7.0.4

Post by mazhar » Mon Apr 26, 2010 9:20 am

Yes its there I am able to reproduce the case. I have logged the issue here in our logs viewtopic.php?f=42&t=13498
The reason behind this issue is that we are not migerating user's old basket upon password reset. Here is the fix for you

Edit ConLIb/PasswordHelp.ascx.cs control file and locate following code in it

Code: Select all

_User.SetPassword(Password.Text);
                _User.Comment = string.Empty;
                _User.Save();
and then update is as below

Code: Select all

_User.SetPassword(Password.Text);
_User.Comment = string.Empty;
_User.Save();
User.Migrate(Token.Instance.User, _User);
Save the file and try again to reproduce the case.

User avatar
Intelliflex
Lieutenant (LT)
Lieutenant (LT)
Posts: 78
Joined: Tue Feb 17, 2004 7:51 pm

Re: Cart Emptied on forgot Password Reset - v7.0.4

Post by Intelliflex » Mon Apr 26, 2010 7:50 pm

Mazhar

Thanks for confirming the issue and for the code.

I'll make the code changes and let you know how it goes.

I appreciate your help!
Dave

User avatar
Intelliflex
Lieutenant (LT)
Lieutenant (LT)
Posts: 78
Joined: Tue Feb 17, 2004 7:51 pm

Re: Cart Emptied on forgot Password Reset - v7.0.4

Post by Intelliflex » Mon Apr 26, 2010 11:14 pm

Mazhar...

I modified the code and got this error:

Your identity has been verified. Please set a new password now. [[ConLib:PasswordHelpPage]]
c:\Inetpub\wwwroot\Site1\www\ConLib\PasswordHelpPage.ascx.cs(69): error CS0103:
The name 'Token' does not exist in the current context

Aside from the code issue, this brings up a security concern, this error reports a file path to a non local computer.
Dave

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Cart Emptied on forgot Password Reset - v7.0.4

Post by mazhar » Tue Apr 27, 2010 5:41 am

Sorry I forgot to mention one more change. In ConLib/PasswordHelpPage.ascx.cs file locate the using statements section on very top and add this one at the end of this section on new line

Code: Select all

using CommerceBuilder.Common;
save the file and test again.

User avatar
Intelliflex
Lieutenant (LT)
Lieutenant (LT)
Posts: 78
Joined: Tue Feb 17, 2004 7:51 pm

Re: Cart Emptied on forgot Password Reset - v7.0.4

Post by Intelliflex » Tue Apr 27, 2010 11:25 am

Mazhar

It appears to work.

I appreciate your help, thank you.
Dave

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Cart Emptied on forgot Password Reset - v7.0.4

Post by mazhar » Wed Apr 28, 2010 4:25 am

Yes you need to make this code change in order to make it work properly.

roadkill
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 34
Joined: Tue Feb 09, 2010 5:45 pm

Re: Cart Emptied on forgot Password Reset - v7.0.4

Post by roadkill » Sat Dec 31, 2011 10:37 am

MAZHAR, we have the same issue with v7.0.3 with that code fix it? It didn't happen ALL the time....just often.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Cart Emptied on forgot Password Reset - v7.0.4

Post by mazhar » Wed Jan 25, 2012 10:46 am

I hope it will work. I don't remember if anything related to these codes can be different between 7.0.3 and 7.0.4.

Post Reply