e commerce - Hotcakes 1.10 - Password has been reset email is begin sent when using checkout as a guest -


we having issue on website. when customer checkouts guest, system sends email random generated password user.

after trying follow guide @ https://hotcakescommerce.zendesk.com/hc/en-us/articles/209539786-replacing-the-user-account-creation-workflow-task customize behavior no emails sent, realized demo code not compile. functions seem missing (probably breaking changes in earlier versions). code not work inside loginnewuser().

private static void loginnewuser(ordertaskcontext context, customeraccount n) {   string errormessage = string.empty;   string userid = string.empty;   useraccount useracc = null;   hotcakes.commerce.dnn.dnnaccountservice.logindnnuser(n.username, n.password, context.hccapp.currentrequestcontext.routingcontext.httpcontext, out errormessage, out useracc); } 

the errors here :

  • useraccount class not defined.
  • logindnnuser method not defined.

does know how fix these 2 errors? after that, custom workflow allow me not send emails.

thanks

try changing loginnewuser method example below:

private static void loginnewuser(ordertaskcontext context, customeraccount n) {     string errormessage = string.empty;     string userid = string.empty;      context.hccapp.membershipservices.loginuser(n.username, n.password, out errormessage, out userid); } 

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

c# - Json.Net Serialize String from URI -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -