Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Notification of customer registration Rate Topic   - - - - -

 
  • YouRockDaddy
  • Senior Member
  • Members
  • Join Date: 11-Apr 06
  • 319 posts

Posted 11 May 2012 - 04:12 PM #1

Is there some way an admin can be notified (by email) when a customer registers on the site?

 
  • johnbol1
  • Never Re
  • Members
  • Join Date: 23-Feb 10
  • 4926 posts

Posted 11 May 2012 - 04:56 PM #2

Have tried to add the code that CS gave me for this to the post but wont save??? Ill try again later.

John

Custom printed hi visibility clothing sale the UK's online hivis safety shop
v4.5.2


 
  • YouRockDaddy
  • Senior Member
  • Members
  • Join Date: 11-Apr 06
  • 319 posts

Posted 11 May 2012 - 08:34 PM #3

I can try to can get it to work. If you can send the code, and tell me what page(s) they want you to edit.

 
  • johnbol1
  • Never Re
  • Members
  • Join Date: 23-Feb 10
  • 4926 posts

Posted 12 May 2012 - 07:40 AM #4

Create the register.tpl file in the skins/[CUSTOMER_ACTIVE_SKIN]/mail/profiles directory of your CS-Cart installation (where [CUSTOMER_ACTIVE_SKIN] is an active skin of your storefront) with the following content:
{* $Id$ *}

{include file="letter_header.tpl"}

{$lang.hello},<br /><br />{assign var="_url" value="profiles.update?user_id=`$user_data.user_id`"|fn_url:'A':'https':'&'}
{if $settings.General.use_email_as_login == "Y"}
{assign var="user_login" value=$user_data.email}
{else}
{assign var="user_login" value=$user_data.user_login}
{/if}
{$lang.text_new_user_added|replace:"[user_login]":$user_login}

{include file="letter_footer.tpl" user_type='A'}

2) Create the register_subj.tpl file in the skins/[CUSTOMER_ACTIVE_SKIN]/mail/profiles directory of your CS-Cart installation (where [CUSTOMER_ACTIVE_SKIN] is an active skin of your storefront) with the following content:
{* $Id$ *}

{$settings.Company.company_name|unescape}: {$lang.new_user_profile}

3) Add the following part of the code:
fn_send_mail(Registry::get('settings.Company.company_users_department'), Registry::get('settings.Company.company_users_department'), 'profiles/register_subj.tpl', 'profiles/register.tpl', '', Registry::get('settings.Appearance.admin_default_language'), $user_data['email']);
below this one:
// Notify administrator about new profile
	fn_send_mail(Registry::get('settings.Company.company_users_department'), Registry::get('settings.Company.company_users_department'), 'profiles/activate_profile_subj.tpl', 'profiles/activate_profile.tpl', '', Registry::get('settings.Appearance.admin_default_language'), $user_data['email']);

	$skip_auth = true;
} else {
in the fn.users.php file located in the core directory of your CS-Cart installation.

4) In the administration panel, go to Administration > Languages.
5) Click the Add Language Variable button.
6) In the opened window, enter text_new_user_added into the Language Variable field and enter The profile owned by "[user_login]" has been newly created into the Value text area.
7) Click the Create button

Custom printed hi visibility clothing sale the UK's online hivis safety shop
v4.5.2


 
  • Jmamelia
  • Member
  • Members
  • Join Date: 21-Mar 12
  • 40 posts

Posted 30 May 2012 - 07:12 PM #5

Will this work for affiliates that register or only for users? Thank you.

 
  • johnbol1
  • Never Re
  • Members
  • Join Date: 23-Feb 10
  • 4926 posts

Posted 30 May 2012 - 07:51 PM #6

Not sure, give it a try and backup the files first so you can replace them if it doesnt
John

Custom printed hi visibility clothing sale the UK's online hivis safety shop
v4.5.2