Forums / Managing Customers and Orders / Disable customer accounts when e-mail is no longer valid

Disable customer accounts when e-mail is no longer valid

Locked

Views: 3,519

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
28 Jul 2006, 1:43 PM
#1
Join Date:
Apr 2006
Location:
Cambridge, Ontario, Canada
Posts:
48
Plugin Contributions:
0

Disable customer accounts when e-mail is no longer valid

I have an issue where customers have bought form me and now the e-mails that they provided when they setup the accounts are bouncing back to me when I do a mass mailout.

I cannot delete the customer data as I need to keep any and all order information for 7 years, so is there a way to disablke the account so that when I do a mail out these accounts will not get the email?

Please advise

Thanks

David Moody

28 Jul 2006, 7:50 PM
#2
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Disable customer accounts when e-mail is no longer valid

I have already posted this report under an official topic, since the past few weeks, but I will post it here as well.

I have recently created a MOD called: Delete your account from store catalog's interface. Customers can definitely delete their own account but all the orders are being kept in the database - no transactions are being deleted (for security reasons). Only their personal preferences are being affected (such as address book ect ...) as their entire profile account.

Is this the type of feature you were actually looking for ?

28 Jul 2006, 8:01 PM
#3
Join Date:
Apr 2006
Location:
Cambridge, Ontario, Canada
Posts:
48
Plugin Contributions:
0

Re: Disable customer accounts when e-mail is no longer valid

Thanks you but where would I find the mod and the load instructions?

28 Jul 2006, 8:05 PM
#4
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Disable customer accounts when e-mail is no longer valid

This MOD has not been distributed yet.

28 Jul 2006, 8:32 PM
#5
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,672
Plugin Contributions:
0

Re: Disable customer accounts when e-mail is no longer valid

If you are not distributing it- WHY did you just tell the gentleman you have it?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

28 Jul 2006, 8:36 PM
#6
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Disable customer accounts when e-mail is no longer valid

Please re-read the above.

28 Jul 2006, 9:51 PM
#7
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,672
Plugin Contributions:
0

Re: Disable customer accounts when e-mail is no longer valid

You are trying my patience again- He asked where he could get the mod- you said you haven't distributed it- Either put it in the downloads section or don't talk about it.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

28 Jul 2006, 10:06 PM
#8
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Disable customer accounts when e-mail is no longer valid

Very well. If it's that much of a deal, I guess I should not announce them at all.

29 Jul 2006, 2:59 AM
#9
Join Date:
Apr 2006
Location:
Cambridge, Ontario, Canada
Posts:
48
Plugin Contributions:
0

Re: Disable customer accounts when e-mail is no longer valid

I just want to get my hands on the Mod as I need to have this done as I have about 75 invaild emails. So if its anywhere I would like ot get it and use it. When will this be released so I can use it or is there something you can sendf me so I can use the Mod.

Thanks

29 Jul 2006, 6:18 AM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Disable customer accounts when e-mail is no longer valid

David,

You have three options:

  1. Via the Admin->Customers area, edit the customer record and unsubscribe them from your newsletter. Then when you send your newsletters to "subscribers only", they will not get it.

  2. Via the Admin->Customers area, delete the customer. This will leave the customers' orders intact, but will delete the product reviews and all the customers address-book entries. Since they're deleted, they will no longer get your mailings.

  3. Do some fancy coding to set email-preferences for these customers to "NONE" instead of TEXT or HTML, as NONE opts them out of ALL mailings, including order confirmations etc. This would have to be done via raw edits in the database. There is no admin-interface to make this easy.

I'm not sure that the mod suggested above is usable in this case, because you should need the customer's password in order to pretend to be the customer and do self-serve account deletions.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

1 Jan 2007, 11:02 PM
#11
mshultise avatar

mshultise

Zen Follower

Join Date:
Feb 2005
Location:
Captain Cook, Hawaii
Posts:
172
Plugin Contributions:
0

Re: Disable customer accounts when e-mail is no longer valid

It looks like this was planned and not installed yet.

In ver 1.3.6 admin/includes/languages/english

I see:

define('ENTRY_EMAIL_HTML_DISPLAY','HTML');
define('ENTRY_EMAIL_TEXT_DISPLAY','TEXT-Only');
define('ENTRY_EMAIL_NONE_DISPLAY','Never');

All I did was go to admin/customers.php and change the following:

in admin/customer.php around line 790

Change this


} else {
$email_pref_text = ($cInfo->customers_email_format == 'TEXT') ? true : false;
$email_pref_html = !$email_pref_text;
echo zen_draw_radio_field('customers_email_format', 'HTML', $email_pref_html) . ' ' . ENTRY_EMAIL_HTML_DISPLAY . '   ' . zen_draw_radio_field('customers_email_format', 'TEXT', $email_pref_text) . ' ' . ENTRY_EMAIL_TEXT_DISPLAY ;
}

to this


} else {
$email_pref_text = ($cInfo->customers_email_format == 'TEXT') ? true : false;
$email_pref_html = !$email_pref_text;
echo zen_draw_radio_field('customers_email_format', 'HTML', $email_pref_html) . ' ' .

ENTRY_EMAIL_HTML_DISPLAY . '   ' .
zen_draw_radio_field('customers_email_format', 'TEXT', $email_pref_html) . ' ' .

ENTRY_EMAIL_TEXT_DISPLAY . '   ' .

zen_draw_radio_field('customers_email_format', 'NONE', $email_pref_none) . ' ' .

ENTRY_EMAIL_NONE_DISPLAY ;
}

I inserted the last option "NONE". When I go into Admin, bring up the Customer and click Edit, I can set this to put NONE in the database.

One cleanup would be to make this a dropdown box and to initially set the item to be whatever the database is currently showing as the value. In this case, when a person is set to NONE and you bring up the screen, NONE is not shown as the current value.

Aloha from Hawaii! (its a dirty job, but SOMEBODY has to live here...)

22 Jan 2007, 10:15 AM
#12
mshultise avatar

mshultise

Zen Follower

Join Date:
Feb 2005
Location:
Captain Cook, Hawaii
Posts:
172
Plugin Contributions:
0

Re: Disable customer accounts when e-mail is no longer valid

I finally revisited this and have made the above a bit better. It still uses radio buttons, but at least it looks up the current value and sets the button appropriately.

} else {

$email_pref_html = false;
$email_pref_text = false;
$email_pref_none = false;

switch ($cInfo->customers_email_format) {

case 'HTML':
  $email_pref_html = true;
  break;

case 'TEXT':
$email_pref_text = true;
break;

case 'NONE':
  $email_pref_none = true;
  break;

default:
  echo 'ERROR: email format selection error.';
  break;

}
echo zen_draw_radio_field('customers_email_format', 'HTML', $email_pref_html) . ' ' .

ENTRY_EMAIL_HTML_DISPLAY . '   ' .
zen_draw_radio_field('customers_email_format', 'TEXT', $email_pref_text) . ' ' .

ENTRY_EMAIL_TEXT_DISPLAY . '   ' .

zen_draw_radio_field('customers_email_format', 'NONE', $email_pref_none) . ' ' .

ENTRY_EMAIL_NONE_DISPLAY ;

}

Aloha from Hawaii! (its a dirty job, but SOMEBODY has to live here...)