Automatic registration for anonymous customers email

Les Girvan asked on March 3, 2022 17:55

Hi

Can you please advise if it is possible to intercept the automated email which is sent to a user when they are automatically registered when guest checkout is used?

Thanks Les

Recent Answers


vasu yerramsetti answered on March 3, 2022 19:13

Please check Enabling automatic registration for anonymous customers feature in Kentico. refer the following link -

https://docs.xperience.io/k11/e-commerce-features/configuring-your-store/checkout-process/enabling-automatic-registration-for-anonymous-customers

0 votesVote for this answer Mark as a Correct answer

Les Girvan answered on March 3, 2022 23:33

Hi Vasu

Thanks for your email, we have already configured guest checkout as per the article but we need to amend the automatic email before it is sent, do you know if this is possible?

Thanks Les

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on March 4, 2022 07:05

What exactly you want to amend? You can use object event handler and send the email on your own e.g. when the order is being saved to the DB. Get the template using the API, change its content and send the email using the API.

0 votesVote for this answer Mark as a Correct answer

Les Girvan answered on March 4, 2022 10:57

Hi Juraj

We need to update the automatically generated password to something we know as we need to pass it onto another EPOS system. We have been able to intercept the UserInfo After_Insert event and update the password but the email has already been sent with the generated password, so we need to update the email with the new password or somehow interact with the code which generates the automatic password?

Thanks Les

0 votesVote for this answer Mark as a Correct answer

vasu yerramsetti answered on March 5, 2022 06:59 (last edited on March 5, 2022 07:03)

Please check the following code file and debug with your scenario -

\CMS\CMSModules\Ecommerce\Controls\ShoppingCart\ShoppingCartCheckRegistration.ascx.cs

0 votesVote for this answer Mark as a Correct answer

Les Girvan answered on March 5, 2022 20:47

Hi Vasu

Thanks for that, we already checked that file but it is not rendered in our shopping cart when guest access is enabled.

Thanks Les

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on March 7, 2022 07:49

If the before user insert event does not help, then I will do not use the email template and rather create a custom logic to send the email, after you update the password.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.