CS-Cart - Change login URL in notification email -


i testing user account registration system.

when new users sign accounts, sent notification email. email, default, includes line:

login url: http://mystore.com/  

the problem is, that's not login url. login url http://mystore.com/login/

the url seems generated line in email template (profiles_info.tpl):

{if $user_data.company_id}{"?company_id=`$user_data.company_id`"|fn_url:'c':'http'}{else}{""|fn_url:'c':'http'}{/if} 

but don't understand how fn_url works (there doesn't seem documentation). how can fix login url - or best way so?

this function define in /app/functions/fn.common.php

/**  * prepares parameters before building url  *  * @param  string $url           urn (uniform resource name or query string)  * @param  string $area          area ('a' - admin or 'c' - client)  * @param  string $protocol      output url protocol (protocol://). if equals 'rel', no protocol included  * @param  string $lang_code     2 letters language code  * @param  bool   $override_area  * @return bool   true  */ 

change:

{if $user_data.company_id}{"?company_id=$user_data.company_id"|fn_url:'c':'http'}{else}{""|fn_url:'c':'http'}{/if}

to this:

{''|fn_url:'c':'http'}login/


Comments

Popular posts from this blog

cron - how to properly run Python script with crontab on every system startup -

elasticsearch - Is the order of operations guaranteed in a bulk update? -