In Lost Password email template Able Commerce provides ${resetPasswordLink} variable, which results in something like
http://mystore.com/PasswordHelp.aspx?Ke ... 73x0cdMxSC , where mystore.com is a store URL setting value in AbleCommerce.
We use only checkout portion of AbleCommerce and have two sites: mystore.com and mycheckout.com. mycheckout.com is based on AbleCommerce Framework.
We need to modify ${resetPasswordLink} to point to mycheckout.com, not mystore.com.
Right now we use this ${resetPasswordLink.Replace("mystore.com", "mycheckout.com")} as a workaround.
But we don't like to hard-code "mystore.com" and "mycheckout.com" in email template. We have multi-environment deployment process and need to use dev.mystore.com and dev.mycheckout.com on dev environment; stg.mystore.com and stg.mycheckout.com on staging environment.
So we need a way to use AppSettings parameters to control resetPasswordLink.
I tried ${resetPasswordLink.Replace("mystore.com", System.Configuration.ConfigurationManager.AppSettings["CheckoutUrl"])} , but NVelocity doesn't like "["
Any idea?
Customize Reset Password Link in Forget Password Email
Re: Customize Reset Password Link in Forget Password Email
Simply logon on to your merchant admin panel and then go to Administration > Configure > Store page and change your store URL pointing to desired URL for example in your case it would be http://mycheckout.com/.
Re: Customize Reset Password Link in Forget Password Email
Store URL setting is used in many other places where we need it to point to http://mystore.com, not to http://mycheckout.com