Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RainLab.User Integration #23

Open
greggh opened this issue Aug 25, 2016 · 6 comments
Open

RainLab.User Integration #23

greggh opened this issue Aug 25, 2016 · 6 comments

Comments

@greggh
Copy link

greggh commented Aug 25, 2016

Is there currently a way to let people signing up as a user via RainLab.User to also signup for your mailing list?

Is there a way for them to manage the lists they are subscribed to from their account screen?

If neither of these currently exist they would make great additions. I would specifically want to add a checkbox to signup, that is by default checked, to have them added to the list.

@kdoonboli
Copy link

I would like to see the feature for new users to be automatically subscribed to a mailing list on registration.

@daftspunk
Copy link
Member

It's possible today by creating your own component, or even in the page code. This is a good idea and we will look at including a solution in a future version.

@kdoonboli
Copy link

Seems like all you need is a new column called 'user_id' in responsiv_campaign_subscribers table, which would correspond to the id column from the users table.
When getting subscriber data, if user_id is filled, you get user info from the users table instead of responsiv_campaign_subscribers table.

Another thing to add: to link existing subscription to user when non-user becomes a user
We can catch the registration event in the plugin, then query the email column from responsiv_campaign_subscribers against the new user's email. If matched, then update the user_id column with the new user's user id. Then the new user will see all his previous subscription linked to the new account.

@daftspunk
Copy link
Member

There are two parts to this that will get added:

(a) Automatic list registration upon user registration.

(b) Marrying existing users to existing subscribers (to collect first + last name and sync email).

It's on the TODO list.

@kdoonboli
Copy link

OK. I'd add (c)
If you are still keeping a separate user database and reading from it (the subscriber table), i.e. not linking to the users table with a new user_id column, then you'd also need to sync the First + Last names (possibly the email address) when rainlab users table on updates.

@jamiegrand
Copy link

this gets +1 from me...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants