WordPress.org

Ready to get started?Download WordPress

Forums

Fast Secure Contact Form Newsletter
[resolved] Interest update letter (3 posts)

  1. mvbaxter
    Member
    Posted 11 months ago #

    We have multiple lists for people to sign up. When a user signs up to a second list, their name is removed from the first list, and they receive a "Thank you for your Change in Interests" automated message from Constant Contact.

    Each list requests slightly different information, so we must have separate forms for each.

    We need users to be able to sign up on multiple lists, just not using a single form.

    Otherwise, this is a great plugin! It was really easy to configure and get working.

    http://wordpress.org/extend/plugins/contact-form-newsletter/

  2. mvbaxter
    Member
    Posted 11 months ago #

    Added the following code to the listSubscribe() function in CC_SuperClass. This allows me to add to my lists, rather than replacing them:

    // Check if email already exists; update if it does
     if($existingID = self::CC_Contact()->subscriberExists($params['email_address'])) {
    //added next three lines to ensure our new selection adds to our subscribed lists, instead of replacing them...
    	$contactDetails = self::CC_Contact()->getSubscriberDetails($params['email_address']);
    	$contactLists = $contactDetails['lists'];
    	$params["lists"] = array_unique(array_merge($contactLists, $params["lists"]));
    //end of new code
                $contactXML = self::CC_Contact()->createContactXML((string)$existingID,$params);
  3. Zack Katz
    Member
    Plugin Author

    Posted 8 months ago #

    Thanks, @mvbaxter - sorry I didn't see your code sooner!

    This is also fixed in version 2.0.1, released today.

Reply

You must log in to post.

About this Plugin

About this Topic