ConfirmOptIn works half way

I am happy that the confimOpt Mails are sent, but I can not find the small marks as described in the user dokumentation in contact list.
Is some work necessary to enable the display as seen in https://docs.suitecrm.com/user/modules/confirmed-opt-in-settings/#_email_opt_in_indication

And I want to modify the page that is shown to the user after confirmation.
Can this be done in the studio?
Or CSS?

I would love to show a thankyou page or modify the page where it lands in general

I think this is a known issue:

https://github.com/salesagility/SuiteCRM/issues/5859

About the landing page, please paste here the exact text in English that it shows, so I can search the code for where it is.

1 Like

Thank you for the first hint - what a relief.

What I get is a pure text line:

You have confirmed that your email address "test@correctmailadres.com" has been opted in

Created with the URL:

https://(domain)/index.php?entryPoint=ConfirmOptIn&from=(code)

I think I got a an idea:

include/EntryPointConfirmOptIn.tpl

found with:

grep -rnisI “You have confirmed that your email address” *

Yes, that’s the file.

Try creating a custom copy like taught here.

1 Like

No, forget it, the custom file won’t get picked up, this needs to be improved here

https://github.com/salesagility/SuiteCRM/blob/81a0321fcbbb9a8275cea9556f582172599e5355/include/EntryPointConfirmOptInHandler.php#L169

You’ll have to customize the original, it won’t be upgrade-safe, you’ll have to check after each upgrade and perhaps re-edit the file if it happens to be overwritten by the upgrade…

which other data could be shown there?
the email is referenced with $FOCUS->email_address in the template,
how to show Name or other data?

is this difficult or just use common place holders?
(Its my first approach tp modify SuiteCRM)

The template will replace only variables that have been passed into it by the calling function.

So that variable is prepared here:

https://github.com/salesagility/SuiteCRM/blob/81a0321fcbbb9a8275cea9556f582172599e5355/include/EntryPointConfirmOptInHandler.php#L167

You will need to add any variable you want from $this, which is a EmailAddress Bean. If you need to, you can do more work in PHP and go around the other beans in order to get more data from other records.

(Read the Developer guide, Beans chapter, for an introduction).

Please post your results here, this is a new feature and possibly what you’re doing can be of use to more people, or even to merge into the product. Thanks.

1 Like

This was very valuable for me.
Thank you!