Hello. Please tell me, there is an online store, for some reason letters do not come to woocommerce after registration to activate an account. Apparently there is no such function. Practical everywhere is on online stores. After registration, just a letter arrives, Welcome, and you can immediately go to the personal account website. And you need to do this as follows: So that when the buyer on the site passed the registration, a letter was sent with a link, only when clicking on the link the account was activated. Registration will be only in your account. In the checkout will not be.

Thank you in advance.

  • I do not know why such troubles should be delivered to customers, but for regular registration there are plugins. Perhaps there is something for WC. - SeVlad

1 answer 1

I would do as follows. Add 2 fields to DB

 `activate = 0`
 and 
 `act_link = saudnyi7nyxnehkunoq7qye2w` - link, 

which will be generated during registration. Next you do the handler, that if the user came and the login coincides with the link that is in the database, then overwrite 0 with 1 in the activate field. Well, after registering for mail, send a link to a processor that accepts a login and a unique activation link.

  • one
    Add: in order not to clog the database, you can create a trigger, which with a certain periodicity will delete the credentials of all records with activate = 0 and the registration date no later than the one that was, for example, a month ago. - ߊߚߤߘ
  • No need to add anything anywhere. The database already has everything. - SeVlad
  • Is there a plugin that performs this function? - Dos771