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

  1. mvbaxter
    Posted 3 years 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.


  2. mvbaxter
    Posted 3 years 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
    Plugin Author

    Posted 3 years ago #

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

    This is also fixed in version 2.0.1, released today.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Fast Secure Contact Form Newsletter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic