Mailchimp - optional sign up to list

  • Jonathan Colls
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 9 months ago #83585 by Jonathan Colls
Mailchimp - optional sign up to list was created by Jonathan Colls
I would like to use the MailChimp integration but would like the user to Opt-in.

Is there a way to have a tick box on plan sign up that asks if the user would like to sign up and then act upon it?

Thanks

Please Log in or Create an account to join the conversation.

More
7 years 9 months ago #83594 by Calum
Replied by Calum on topic Mailchimp - optional sign up to list

Jonathan Colls wrote: I would like to use the MailChimp integration but would like the user to Opt-in.

Is there a way to have a tick box on plan sign up that asks if the user would like to sign up and then act upon it?

I don't think its an option in the current code, **BUT** I doubt it would be that hard to add. Very roughly off the top of my head...

Assuming its just an opt-in out you'd have a field called Newsletter, with drop down Yes / No options.

In the MailChimp code at the start of the function for "onSubscription" you'd add a statement like:
Code:
if ($row->plan["newsletter"] != "Yes") { return false; }

As I say this is abit off the top of my head... ..you'd need to check exactly how $row->plan presents the "newsletter" field. And depending if you use a radio or drop down etc it might be holding a numeric value instead of a text value. You could beef this up a lot more and have the specific lists to subscribe to named in the field and mapped over, and you could add config value in the plugin to identify the field name that lists the newsletters...
The following user(s) said Thank You: Jonathan Colls

Please Log in or Create an account to join the conversation.

  • Jonathan Colls
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 9 months ago #83614 by Jonathan Colls
Replied by Jonathan Colls on topic Mailchimp - optional sign up to list
Thank you Calum, that make sense, I will give it a go.

Please Log in or Create an account to join the conversation.

  • Jonathan Colls
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 4 months ago #91911 by Jonathan Colls
Replied by Jonathan Colls on topic Mailchimp - optional sign up to list
I've tried to get this working but with no luck. I came across this forum post from Tuan which says that custom values are not directly available. www.joomdonation.com/forum/membership-pr...-on-plans.html#74246

Any alternatives or advice on only registering to a mailchimp list only if a custom field is ticked. It seems like a common thing that would be needed.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
7 years 4 months ago #91946 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Mailchimp - optional sign up to list
It is not supported for now. Give me one or two more weeks, I will add this option for now

Regards,

Tuan
The following user(s) said Thank You: Jonathan Colls

Please Log in or Create an account to join the conversation.

  • Jonathan Colls
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 4 months ago #91948 by Jonathan Colls
Replied by Jonathan Colls on topic Mailchimp - optional sign up to list
Thanks Tuan. I hope you get some time for Christmas first though ;-)

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
7 years 4 months ago #91949 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Mailchimp - optional sign up to list
Thanks Jonathan

Actually, Christmas is not a holiday here, even new year is not a holiday here

Our new year holiday will come later, usually about one month after the new year of the most countries in the world

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Jonathan Colls
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 11 months ago #99092 by Jonathan Colls
Replied by Jonathan Colls on topic Mailchimp - optional sign up to list
Hi Tuan,

Would you be able to add this feature to your to do list. I think it would be very useful/EU compliant to be able to optionally add a user to a mailchimp list based on a custom field being TRUE.

Kind regards

Jonathan

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
6 years 10 months ago #99116 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Mailchimp - optional sign up to list
OK Jonathan. Will do.

Please Log in or Create an account to join the conversation.