• Hi, not much of a code (thus I am not into figuring out submitting this suggestion through svn), but I would really appreciate if you can include into your great plugin the following modifications, which will:
    1. put a proper recognizable name at the GF menu
    2. allow for already subscribed people to be added to new lists.

    Change file class-gfnewmailpoetaddon.php as follows
    1. Line 12: change to protected $_short_title = 'Mailpoet';
    2. Substitute lines 109 – 112 by the following:

    		try {
    		  $subscriber_data = \MailPoet\API\API::MP('v1')->addSubscriber($subscriber_data, $mailpoetlists);
    		} catch(Exception $exception) {
    			
    			if ( 'This subscriber already exists.' == $exception->getMessage() ){
    			
    			try {
    
    				$subscriber = \MailPoet\API\API::MP('v1')->subscribeToLists($subscriber_data['email'], $mailpoetlists);
    				  
    				} catch(Exception $exception) {
    				// log error	}
    			} else {
    				// log error
    			}
    		}
    • This topic was modified 6 years, 9 months ago by santiazpi2.
    • This topic was modified 6 years, 9 months ago by santiazpi2.
    • This topic was modified 6 years, 9 months ago by santiazpi2.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter santiazpi2

    (@santiazpi2)

    PS. Thanks for the awesome job!

    • This reply was modified 6 years, 9 months ago by santiazpi2. Reason: unnecessary as I edited the previous post so deleting this one
    • This reply was modified 6 years, 9 months ago by santiazpi2.

    Hi @santiazpi2,

    There is no word to thank you for your help. A new version has been released. Please let me know if you have any problem.

    Thanks

    Manu

    (@manuanseriforma)

    Hi @ehsantikweb.

    I have the same problem. Maybe one of my suscribers will want to contact me through a form to become a client. So, this suscriber/new client would be at two lists. But she/he won’t be able because the message “Subscriber already exists“.

    I have just updated mailpoet to the last version, as you said, but problem still remains.

    ?Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Modification to allow adding to lists’ is closed to new replies.