Changing the URL in the Customer.EmailValidation template

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 Jahre weitere
Hi i need to change this  line

To activate your account <a href="%Customer.AccountActivationURL%">click here</a>.

but i want it to reroute to /order/history

changing that line to this
To activate your account <a href='/order/history'>click here</a>.


will send me in my email.  Somehow it was not converted as link
To activate your account [/order/history]click here.
6 Jahre weitere
junedc wrote:
Hi i need to change this  line

To activate your account <a href="%Customer.AccountActivationURL%">click here</a>.

but i want it to reroute to /order/history

changing that line to this
To activate your account <a href='/order/history'>click here</a>.


will send me in my email.  Somehow it was not converted as link
To activate your account [/order/history]click here.


I don't think this is the issue, but you have single-quotes encapsulating your URL...should be double-quotes.

The normal function of the emailed activation link in the Customer.EmailValidationMessage message template is that when the new customer reaches the link, his account is set to "ACTIVE"..so...the new customer MUST go there before he can get into his account...understand?

I have not tried it, but perhaps you can do this:
<a href="%Customer.AccountActivationURL%?ReturnUrl=%2forder%2fhistory">click here</a>
6 Jahre weitere
Also...
Your other alternative is to edit this View:
/Views/Customer/AccountActivation.cshtml

Open with notepad and add your link to account there:
    <div class="page-body">
        <strong>
            @Model.Result
<br><a href="/order/history/">Click here</a> to view your Order History.
        </strong>


Also...I am not sure why you want the new customer to reach this exact URL.
This new customer has no order history yet...so he will see an empty list.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.