Developer forum

Forum » Development » Improvement of creating user in checkout

Improvement of creating user in checkout

Anders Ebdrup
Anders Ebdrup
Reply

Dear Dynamicweb,

 

We have some suggestions to the handling of user creation in the checkout.

 

First is will be great if you can change the behaviour of "Context.Current.Request("EcomUserCreateNew") IsNot Nothing" to actually check for a boolean and not only if the key exists in the post.

At the same time we have some issues with the logic of: "Context.Current.Session("EcomUserCreateInfo")" as when posting multiple times to the checkout with this parameter: EcomUserCreateNew, only values from the first request is stored even though the user changes the values of either the username or the password. In my opinion it would make sense to store the values if they are in the post and not only the first time.

The section to be improved is this one:

                Dim DoCreateNewUser As Boolean = Context.Current.Request("EcomUserCreateNew") IsNot Nothing OrElse Not IsNothing(Context.Current.Session("EcomUserCreateInfo"))
                If DoCreateNewUser AndAlso IsNothing(Context.Current.Session("EcomUserCreateInfo")) Then
                    Context.Current.Session("EcomUserCreateInfo") = New Tuple(Of String, String, String)(Context.Current.Request("EcomUserCreateUserName"), Context.Current.Request("EcomUserCreatePassword"), Context.Current.Request("EcomUserCreateConfirmPassword"))
                End If

Best regards,

Anders


Replies

 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Dynamicweb,

 

Any thoughts on this one?

 
Nicolai Pedersen
Reply

Deep thoughts... wink

I have send this to QA and a developer and they will look into it.

BR Nicolai

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi,

The issue is reproduced on DW9.9 in fact, it's now bugged by TFS 88767 created. Thanks for finding.

BR, Oleg QA

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Anders

The problem TFS#88767 regarding first request stored on posting multiple times in checkout has now been fixed in Package "Dynamicweb.Ecommerce" version 1.9.53

You are able to find this update in the backend Package update section.

Also the correction are part of the 9.9.6 release 

You are able to find this build in the download section:

https://doc.dynamicweb.com/downloads/releases

Please contact Dynamicweb Support if you need any additional help regarding this.

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

You must be logged in to post in the forum