Closed (fixed)
Project:
Mailchimp
Version:
7.x-2.4
Component:
Lists
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Mar 2012 at 14:29 UTC
Updated:
25 Jul 2012 at 11:21 UTC
Hi there,
I have the following use-case:
From what I gather from the mail chimp module settings, auto-syncing users is only possible with required lists, as are Interest Groups and user manipulation for active subscriptions. Does anyone with a similar use case have some best practices on how to achieve this?
Comments
Comment #1
a.ross commentedThis should be pretty straightforward to achieve using Rules, although that feels like a bit of a workaround. You can create a rule like this:
In case you don't use admin approval of an account, the rule will be simpler:
Only I can't seem to get the actual action working. What exactly are we supposed to fill in for "list"? I tried the name of the list and the ID, both aren't working. What am I missing? Additionally, the module doesn't provide any integration with Rules to change interest groups for a user.
Comment #2
a.ross commentedCould it be due to this issue (#1593224: provide rules integration for 7.x-2.x) not being resolved yet?
Comment #3
a.ross commentedAh, I've been able to resolve the first issue, which is what to fill in for the "List" the user will be added to. You should use the machine name of the list, as displayed in
admin/config/services/mailchimp/lists/<ID>/editright next to the Label field. It's confusing though, and it still qualifies as a bug IMO.Comment #4
antipex commentedThis seems to work fine with Rules.
Comment #5
a.ross commentedUh, why are you closing this issue? No, it does not work as expected. In fact, this issue covers not 1, but 2 bugs.
Comment #6
levelos commented@a.ross, the module is not designed to automatically subscribe users to optional lists, hence the name, and we will not make that change at this time. You can accomplish something similar on your own using Rules or custom code. If this issue does cover 2 bugs, as you put it, then post a focused issue for each issue. But something not working like you want is not a bug.
Comment #7
a.ross commentedThe OP was addressing 2 issues. The first was subscribing someone to a list upon registration. I wanted something similar so I ran into this thread. Personally, I notably do not want to auto-subscribe new users to an optional list, I just want the checkbox to be checked by default, as opposed to unchecked, as it is now. However I can live with using Rules as a workaround.
Even though this isn't possible, I haven't been arguing to "fix" this at all, as you can read. The only thing I argued needs fixing is the Rules integration. It does work, but there is no documentation how it works in the absence of a proper form component (like a dropdown with all mail lists). I didn't even go as far as saying that the absence of said form component was a bug, merely that it needs to be documented how the direct input works. Not everybody will figure it out on their own that one needs to use the machine name of the list, and not the label or the ID.
The second issue was automatically adding someone to an interest group. It would be enough if this could be achieved with Rules, however that feature currently doesn't exist. I'm ok with branching that off to another thread, but this issue still shouldn't be closed.
Comment #8
levelos commentedThe title of this issue is
That is a feature request. As discussed here, it can be accomplished using Rules and will not be done in another way. If you feel it should be documented better, than add a feature request under a documentation component. Or better, add some documentation in the form a patch.
The fact that Rules integration doesn't support interest groups is also a feature request, or arguably a bug. Either way, it doesn't belong in this thread.
Comment #9
a.ross commentedNo, I'm done on this issue queue...
Comment #10
tobias.grasse commentedThanks to a.ross for pointing me to Rules, and to levelos for reminding everyone that "optional list" is named adequately :) I do not want to reopen this issue, but to leave some hints for people with the same problem:
My original problem was that the list should be optional in order that users can unsubscribe in their account settings (after they've registered), but that the initial subscription is somewhat "mandatory" and you should only have to choose one or more interest groups. If I set the list to "required", users can neither unsubscribe through their account settings page nor can they choose interest groups while signing up, as IG only work with optional lists.
So Rules does not cover the IG part here, but I finally achieved it with a form_alter, setting the default for "subscribe to list" checkbox to TRUE. If you want the signup to be really "required", you could set the default to true and unset the form element afterwards. I strongly recommend taking a look at Form API for setting default values.