Customize Reset Password Link in Forget Password Email

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
hylkovski
Ensign (ENS)
Ensign (ENS)
Posts: 5
Joined: Mon Dec 07, 2009 4:16 pm

Customize Reset Password Link in Forget Password Email

Post by hylkovski » Mon Jan 04, 2010 6:34 pm

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?

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

Re: Customize Reset Password Link in Forget Password Email

Post by mazhar » Tue Jan 05, 2010 4:40 am

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/.

hylkovski
Ensign (ENS)
Ensign (ENS)
Posts: 5
Joined: Mon Dec 07, 2009 4:16 pm

Re: Customize Reset Password Link in Forget Password Email

Post by hylkovski » Tue Jan 05, 2010 10:57 am

Store URL setting is used in many other places where we need it to point to http://mystore.com, not to http://mycheckout.com

Post Reply