Skip to content

ENHANCEMENT Subscribe allowed to work stand alone#12

Open
camfindlay wants to merge 1 commit into
developfrom
features/standalone-subscribes
Open

ENHANCEMENT Subscribe allowed to work stand alone#12
camfindlay wants to merge 1 commit into
developfrom
features/standalone-subscribes

Conversation

@camfindlay
Copy link
Copy Markdown
Owner

This allows subscribes to work even if the developer doesn't implement a frontend form to trigger the initial subscription.

This will allow Mailchimp sync on any existing registration forms or via the CMS.

Will only run the sync if the Member isSubscribed OR if their status is false (which indicates they are not on the list and should be added).

@camfindlay
Copy link
Copy Markdown
Owner Author

Can you check my logic here @tractorcow I found an issue if the Member existed in SIlverStripe and not in Mailchimp and either the Member was updated via CMS or when using the MemberProfiles module (as it bypassed the API because the isSubscribed was always false).

@camfindlay camfindlay changed the title ENHANCEMENT Subscribes work stand alone ENHANCEMENT Subscribe allowed to work stand alone Dec 25, 2014
@tractorcow
Copy link
Copy Markdown
Contributor

Should you check not only for listStatus = false, but also listStatus = pending?

@camfindlay
Copy link
Copy Markdown
Owner Author

thanks @tractorcow good point as they could be waiting for confirm so we shouldn't trigger another subscribe call. I'll make the change.

@camfindlay camfindlay force-pushed the features/standalone-subscribes branch from 7ca28cb to afe6e7b Compare January 16, 2015 23:46
@camfindlay
Copy link
Copy Markdown
Owner Author

See if this is acceptable @tractorcow can you see any issues with it's use on ss.org?

@tractorcow
Copy link
Copy Markdown
Contributor

I would have done it the other way around... if a subscription is pending, and then the update their details, and following that approve their subscription, I would expect to see their updated details included. I think it's ok to subscribeUser during the pending process, since it only updates their personal details.

It doesn't trigger another subscription confirmation (from memory), but you can check that if you like.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants