woocommerce / woocommerce

A customizable, open-source ecommerce platform built on WordPress. Build any commerce solution you can imagine.
https://woocommerce.com
9.39k stars 10.77k forks source link

how to disable customer ? #645

Closed jcorreia closed 12 years ago

jcorreia commented 12 years ago

HI, we want to disable/ban some old user/customer, with some orders.

If we delete the user account we will lost track of his orders, and in admin area the "customer " info on the order will have "Guest".

How can we prevent an user to login on the store, avoiding deleting him, so we dont lose orders history ?

Thanks

mikejolley commented 12 years ago

You can't delete an account and expect orders to still link to said account :) Non-logged in users are guests - thats just how it works. Their billing/shipping info will remain in the order if deleted.

jcorreia commented 12 years ago

Hi, I know that I cant delete them, "How can we prevent an user to login on the store, avoiding deleting him......" :)

That´s why I asked for a solution, to disable\ban or some other option, so they can´t log In. Is there any ? Im sure this is a popular question.

jcorreia commented 12 years ago

reopen please...the question is not solved...

mikejolley commented 12 years ago

Sorry, but github is for bug reports only not general support. Your problem is a WordPress one, not a WooCommerce one. Try something like http://wordpress.org/extend/plugins/lockdown-wp-admin/

jcorreia commented 12 years ago

Hi, thanks but I disagree when you say that isn´t a woocomerce problem, because on wordpress you delete users without any problem. In woocomerce you can´t because they are your customers.

I agree this isn´t a bug, but could be an improvement. Thanks, I will search some woocommerce forum to ask this.

mikejolley commented 12 years ago

Same difference. Just tried it, after deletion the order just changes to guest, but email, billing, shipping etc remains intact which is fine.

jcorreia commented 12 years ago

yes..the order is keeped, I tried it. But the info regarding which costumer has bought is lost. Which is not okay...

This could be avoided if a user ban or deactivate was possible, like im trying to tell...

thanks

mikejolley commented 12 years ago

Its not lost though :) Billing and shipping (including their name/contact details) is all stored within the order, just like orders from non-logged in folk. Its no different to that.

jcorreia commented 12 years ago

The billing and shipping can be different, and not necessarily the same of the customer :) Imagine this deleted user, want to return an old order somewhere. How can you prove it was he who buy it ? ;)

mikejolley commented 12 years ago

Of course its the same information of the customer - they input it when placing the order. This is really no different to a guest purchase - all you're deleting is their ability to login.

jcorreia commented 12 years ago

lol.."Of course its the same information of the customer - they input it when placing the order." If they can edit, it might not be the same. I might bought something with my account, ship to my mother and bill to my father.

Suppose I do this to every purchase and use different adress.

Suppose you want statistics of the purchase by customer

I can suppose much other things...

You delete my account, and you lost track of who I am.

You can give up now...I´ve won :) You really should have a option to disable an user without deleting him...

kasunshashi commented 3 years ago

@jcorreia You are correct, @mikejolley , lucky you gave up, if you look at the thread after 8 years you will realize that @jcorreia 's complaint is still valid

stephenfeather commented 2 years ago

Make it 9 years and still valid. The other use case is a customer engaged in a pattern of fraud. You don't want to delete them, just freeze the account. All previous record relationships need to be maintained

Maarten112 commented 2 years ago

Make it 9 years and still valid. The other use case is a customer engaged in a pattern of fraud. You don't want to delete them, just freeze the account. All previous record relationships need to be maintained

Yups, I also look for this option for a fraudulent user.

anunay commented 1 year ago

+1 still valid for me to this date.

NikkaIt commented 7 months ago

+1 still valid I found the following plugin that works with WooCommerce customer login also. https://wordpress.org/plugins/disable-user-login/